Skip to content
Permalink
Browse files
MIME-298 DateTimeFieldLenientImpl: remove unneeded option
Removing it breaks no tests, as 0000 is the
default GMT.

This prevents one defensive copy of the
parsed entity thus gets parsing slightly
faster.
  • Loading branch information
chibenwa committed Jun 23, 2021
1 parent 3d2eeaf commit 8591c45571723ae3b336cad1532c548b2807d292
Showing 1 changed file with 0 additions and 6 deletions.
@@ -36,8 +36,6 @@
import java.time.format.DateTimeFormatterBuilder;
import java.time.format.ResolverStyle;
import java.time.format.SignStyle;
import java.time.temporal.ChronoField;
import java.time.temporal.TemporalField;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
@@ -85,10 +83,6 @@ public class DateTimeFieldLenientImpl extends AbstractField implements DateTimeF
.appendLiteral(' ')
.appendOffsetId()
.optionalEnd()
.optionalStart()
.appendLiteral(' ')
.appendPattern("0000")
.optionalEnd()
.toFormatter()
.withZone(ZoneId.of("GMT"))
.withResolverStyle(ResolverStyle.LENIENT)

0 comments on commit 8591c45

Please sign in to comment.