Remove punctuation in all exception messages.

Closes #2603.
This commit is contained in:
jo
2022-06-04 16:05:30 +02:00
committed by John Blum
parent 6e9a3cdccf
commit 6a23723f07
99 changed files with 275 additions and 174 deletions

View File

@@ -41,6 +41,7 @@ import org.springframework.util.Assert;
* @author Ranie Jade Ramiso
* @author Oliver Gierke
* @author Christoph Strobl
* @author Johannes Englmeier
* @since 1.5
*/
final class AnnotationAuditingMetadata {
@@ -108,7 +109,7 @@ final class AnnotationAuditingMetadata {
}
throw new IllegalStateException(String.format(
"Found created/modified date field with type %s but only %s as well as java.time types are supported!", type,
"Found created/modified date field with type %s but only %s as well as java.time types are supported", type,
SUPPORTED_DATE_TYPES));
});
}

View File

@@ -38,6 +38,7 @@ import org.springframework.util.Assert;
* @author Christoph Strobl
* @author Jens Schauder
* @author Pavel Horal
* @author Johannes Englmeier
* @since 1.5
*/
class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory {
@@ -187,7 +188,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory
if (!conversionService.canConvert(value.getClass(), Date.class)) {
throw new IllegalArgumentException(
String.format("Cannot convert date type for member %s! From %s to java.util.Date to %s.", source,
String.format("Cannot convert date type for member %s! From %s to java.util.Date to %s", source,
value.getClass(), targetType));
}
@@ -227,7 +228,7 @@ class DefaultAuditableBeanWrapperFactory implements AuditableBeanWrapperFactory
}
private static IllegalArgumentException rejectUnsupportedType(Object source) {
return new IllegalArgumentException(String.format("Invalid date type %s for member %s! Supported types are %s.",
return new IllegalArgumentException(String.format("Invalid date type %s for member %s! Supported types are %s",
source.getClass(), source, AnnotationAuditingMetadata.SUPPORTED_DATE_TYPES));
}