Skip to content

Commit

Permalink
Update after PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed Jan 6, 2024
1 parent a804c5e commit 20384c3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
<name>Dave Brosius</name>
<url>https://github.com/mebigfatguy</url>
</contributor>
<contributor>
<name>Cyril de Catheu</name>
<url>https://github.com/cyrilou242</url>
</contributor>
<contributor>
<name>Dan Cavallaro</name>
<url>https://github.com/dancavallaro</url>
Expand Down
9 changes: 9 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
<body>

<!-- types are add, fix, remove, update -->
<release version="2.12.6" date="2024-01-06" description="v2.12.6">
<action dev="cyrilou242" type="update">
Better error message in DateTimeFormat.
Fixes #731.
</action>
<action dev="jodastephen" type="update">
DateTimeZone data updated to version 2023dgtz.
</action>
</release>
<release version="2.12.5" date="2023-03-30" description="v2.12.5">
<action dev="jodastephen" type="update">
DateTimeZone data updated to version 2023cgtz.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/joda/time/format/DateTimeFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 20384c3

Please sign in to comment.