Skip to content

Commit da30c3c

Browse files
Doha2012davidmorley
authored andcommitted
minor fix
1 parent 044a7f1 commit da30c3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jackson/src/test/java/org/baeldung/jackson/date/CustomDateDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class CustomDateDeserializer extends JsonDeserializer<Date> {
1414

15-
private static SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
15+
private SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
1616

1717
@Override
1818
public Date deserialize(final JsonParser jsonparser, final DeserializationContext context) throws IOException, JsonProcessingException {

jackson/src/test/java/org/baeldung/jackson/date/CustomDateSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class CustomDateSerializer extends JsonSerializer<Date> {
1313

14-
private static SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
14+
private SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
1515

1616
@Override
1717
public void serialize(final Date value, final JsonGenerator gen, final SerializerProvider arg2) throws IOException, JsonProcessingException {

0 commit comments

Comments
 (0)