Skip to content

Commit ae9a6bf

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

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

33+
public DateTimeDeserializer(Class<?> cls) {
34+
super(cls, FormatConfig.DEFAULT_DATETIME_PARSER);
35+
}
36+
3337
@SuppressWarnings("unchecked")
3438
public static <T extends ReadableInstant> JsonDeserializer<T> forType(Class<T> cls)
3539
{

0 commit comments

Comments
 (0)