From 0df58255f14a267942faaa71c74624f93e04ebce Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 11 Aug 2023 17:16:46 -0400 Subject: [PATCH] Collapse string --- src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 4fffbd071..82f51061f 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -394,7 +394,7 @@ public class FastDateParser implements DateParser, Serializable { if (date == null) { // Add a note regarding supported date range if (locale.equals(JAPANESE_IMPERIAL)) { - throw new ParseException("(The " + locale + " locale does not support dates before 1868 AD)\n" + "Unparseable date: \"" + source, + throw new ParseException("(The " + locale + " locale does not support dates before 1868 AD)\nUnparseable date: \"" + source, pp.getErrorIndex()); } throw new ParseException("Unparseable date: " + source, pp.getErrorIndex());