Skip to content

Commit 4650c9c

Browse files
committed
Polishing.
Minor formatting changes. Original pull request #2874 See #2719
1 parent dc999a8 commit 4650c9c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactory.java

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ protected <S extends TemporalAccessor> Optional<S> getAsTemporalAccessor(Optiona
230230
}
231231

232232
private static IllegalArgumentException rejectUnsupportedType(Class<?> sourceType, Class<?> targetType) {
233+
233234
return new IllegalArgumentException(
234235
String.format("Cannot convert unsupported date type %s to %s; Supported types are %s", sourceType.getName(),
235236
targetType.getName(), AnnotationAuditingMetadata.SUPPORTED_DATE_TYPES));

src/test/java/org/springframework/data/auditing/DefaultAuditableBeanWrapperFactoryUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void lastModifiedAsLocalDateTimeDateIsAvailableViaWrapperAsLocalDateTime() {
137137
assertThat(result).hasValue(now);
138138
}
139139

140-
@Test
140+
@Test // GH-2719
141141
void shouldRejectUnsupportedTemporalConversion() {
142142

143143
var source = new WithZonedDateTime();

0 commit comments

Comments
 (0)