net.leanix.dropkit.api.DateTimeDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-dropkit Show documentation
Show all versions of leanix-dropkit Show documentation
Base functionality for leanIX dropwizard-based services
package net.leanix.dropkit.api;
import com.fasterxml.jackson.datatype.joda.cfg.FormatConfig;
import org.joda.time.DateTime;
/**
* This class can be used with the JsonDeserialize annotation.
*
* @link http://stackoverflow.com/questions/22643367/joda-time-datetime-deserialization-error
*/
public class DateTimeDeserializer extends com.fasterxml.jackson.datatype.joda.deser.DateTimeDeserializer {
private static final long serialVersionUID = 1L;
public DateTimeDeserializer() {
//super(DateTime.class);
// solution for jackson-core:2.6.4
super(DateTime.class, FormatConfig.DEFAULT_DATETIME_PARSER);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy