Compare different ways to customize date deserializer for objectMapper.
One case is not thread-safe
and generates incorrect dates.
- SDF = SimpleDateFormat
- FDF = FastDateFormat
Evaluate alternatives are
- SDF: objectMapper using setDateFormat with SDF.
- SDF by WRAPPER - NOT CLONE (not thread-safe!): objectMapper using setDateFormat with a DateFormat wrapper using SDF, with wrong clone implemtation.
- SDF by WRAPPER - FULL CLONE: objectMapper using setDateFormat with a DateFormat wrapper using SDF.
- FDF by WRAPPER: objectMapper using setDateFormat with a DateFormat wrapper using FDF.
- withCustomDateDeserializer (FDF): objectMapper using a custom module that defines a date deserializer with FDF.
- maven
- j11
mvn install
java -jar ./target/omd-jar-with-dependencies.jar
java -jar ./target/omd-jar-with-dependencies.jar {sample_size} {pool_thread_size}