diff --git a/pom.xml b/pom.xml index 33303e32b..2a35d6881 100644 --- a/pom.xml +++ b/pom.xml @@ -87,6 +87,10 @@ Dave Brosius https://github.com/mebigfatguy + + Cyril de Catheu + https://github.com/cyrilou242 + Dan Cavallaro https://github.com/dancavallaro diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5c54e0044..1823f02ae 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,15 @@ + + + Better error message in DateTimeFormat. + Fixes #731. + + + DateTimeZone data updated to version 2023dgtz. + + DateTimeZone data updated to version 2023cgtz. diff --git a/src/main/java/org/joda/time/format/DateTimeFormat.java b/src/main/java/org/joda/time/format/DateTimeFormat.java index b3f7ab681..11c1ae352 100644 --- a/src/main/java/org/joda/time/format/DateTimeFormat.java +++ b/src/main/java/org/joda/time/format/DateTimeFormat.java @@ -679,7 +679,7 @@ private static boolean isNumericToken(String token) { */ private static DateTimeFormatter createFormatterForPattern(String pattern) { if (pattern == null || pattern.length() == 0) { - throw new IllegalArgumentException("Invalid pattern specification. Pattern is null or empty."); + throw new IllegalArgumentException("Invalid pattern specification: Pattern is null or empty"); } DateTimeFormatter formatter = cPatternCache.get(pattern); if (formatter == null) {