Skip to content

Commit 5677411

Browse files
author
Yu Hoi Chau
committed
fix no-arg constructor for DateTimeDeserializer
1 parent ae9a6bf commit 5677411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fasterxml/jackson/datatype/joda/deser/DateTimeDeserializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public DateTimeDeserializer(Class<?> cls, JacksonJodaDateFormat format) {
3030
super(cls, format);
3131
}
3232

33-
public DateTimeDeserializer(Class<?> cls) {
34-
super(cls, FormatConfig.DEFAULT_DATETIME_PARSER);
33+
public DateTimeDeserializer() {
34+
super(DateTime.class, FormatConfig.DEFAULT_DATETIME_PARSER);
3535
}
3636

3737
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)