Skip to content

Commit 49c7b6e

Browse files
committed
fixing DurationDeserializer DateTimeException message
1 parent 91c2704 commit 49c7b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/DurationDeserializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public Duration deserialize(JsonParser parser, DeserializationContext context) t
5959
BigDecimal value = parser.getDecimalValue();
6060
// If the decimal isn't within the bounds of a duration, bail out
6161
if(value.compareTo(DURATION_MAX) > 0 ||
62-
value.compareTo(DURATION_MIN) < 0) {
62+
value.compareTo(DURATION_MAX) < 0) {
6363
throw new DateTimeException(
64-
"Instant exceeds minimum or maximum instant");
64+
"Instant exceeds minimum or maximum Duration");
6565
}
6666

6767
long seconds = value.longValue();

0 commit comments

Comments
 (0)