Skip to content

Commit a6a01ee

Browse files
committed
Fix for #1154 - indentation correction
1 parent 0251069 commit a6a01ee

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main/java/com/fasterxml/jackson/databind/ser/std/DateTimeSerializerBase.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ public JsonSerializer<?> createContextual(SerializerProvider serializers,
6161

6262
if (format.getShape() == JsonFormat.Shape.STRING || format.hasPattern()
6363
|| format.hasLocale() || format.hasTimeZone()) {
64-
TimeZone tz = format.getTimeZone();
65-
final String pattern = format.hasPattern()
66-
? format.getPattern()
67-
: StdDateFormat.DATE_FORMAT_STR_ISO8601;
68-
final Locale loc = format.hasLocale()
69-
? format.getLocale()
70-
: serializers.getLocale();
71-
SimpleDateFormat df = new SimpleDateFormat(pattern, loc);
72-
if (tz == null) {
73-
tz = serializers.getTimeZone();
74-
}
75-
df.setTimeZone(tz);
76-
return withFormat(Boolean.FALSE, df);
64+
TimeZone tz = format.getTimeZone();
65+
final String pattern = format.hasPattern()
66+
? format.getPattern()
67+
: StdDateFormat.DATE_FORMAT_STR_ISO8601;
68+
final Locale loc = format.hasLocale()
69+
? format.getLocale()
70+
: serializers.getLocale();
71+
SimpleDateFormat df = new SimpleDateFormat(pattern, loc);
72+
if (tz == null) {
73+
tz = serializers.getTimeZone();
74+
}
75+
df.setTimeZone(tz);
76+
return withFormat(Boolean.FALSE, df);
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)