All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.leanix.dropkit.api.DateTimeDeserializer Maven / Gradle / Ivy

There is a newer version: 2.0.10
Show newest version
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