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 ea9b2657f..e46dda785 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -441,11 +441,11 @@ public class FastDateParser implements DateParser, Serializable { * @param definingCalendar The calendar to obtain the short and long values * @return The Strategy that will handle parsing for the field */ - private Strategy getStrategy(String formatField, final Calendar definingCalendar) { + private Strategy getStrategy(final String formatField, final Calendar definingCalendar) { switch(formatField.charAt(0)) { case '\'': if(formatField.length()>2) { - formatField= formatField.substring(1, formatField.length()-1); + return new CopyQuotedStrategy(formatField.substring(1, formatField.length()-1)); } //$FALL-THROUGH$ default: