File tree Expand file tree Collapse file tree
main/java/com/maxmind/minfraud Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ CHANGELOG
1212 * ` PAYWAY `
1313* Updated ` geoip2 ` dependency to add support for GeoIP2 Precision
1414 Insights anonymizer fields.
15-
15+ * Replaced use of deprecated ` com.fasterxml.jackson.databind.util.ISO8601DateFormat `
16+ with ` com.fasterxml.jackson.databind.util.StdDateFormat ` where
17+ ` withColonInTimeZone ` is set to ` true ` .
18+
16191.6.0 (2017-09-08)
1720------------------
1821
Original file line number Diff line number Diff line change 44import com .fasterxml .jackson .databind .MapperFeature ;
55import com .fasterxml .jackson .databind .ObjectMapper ;
66import com .fasterxml .jackson .databind .SerializationFeature ;
7- import com .fasterxml .jackson .databind .util .ISO8601DateFormat ;
7+ import com .fasterxml .jackson .databind .util .StdDateFormat ;
88
99import java .io .IOException ;
1010
@@ -20,7 +20,7 @@ public final String toJson() throws IOException {
2020 mapper .setSerializationInclusion (JsonInclude .Include .NON_EMPTY );
2121 mapper .enable (SerializationFeature .WRITE_ENUMS_USING_TO_STRING );
2222 mapper .disable (MapperFeature .CAN_OVERRIDE_ACCESS_MODIFIERS );
23- mapper .setDateFormat (new ISO8601DateFormat ( ));
23+ mapper .setDateFormat (new StdDateFormat (). withColonInTimeZone ( true ));
2424 mapper .configure (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS , false );
2525
2626 return mapper .writeValueAsString (this );
Original file line number Diff line number Diff line change 66import com .fasterxml .jackson .databind .InjectableValues .Std ;
77import com .fasterxml .jackson .databind .MapperFeature ;
88import com .fasterxml .jackson .databind .ObjectMapper ;
9- import com .fasterxml .jackson .databind .util .ISO8601DateFormat ;
9+ import com .fasterxml .jackson .databind .util .StdDateFormat ;
1010import com .maxmind .minfraud .exception .*;
1111import com .maxmind .minfraud .request .Transaction ;
1212import com .maxmind .minfraud .response .FactorsResponse ;
@@ -62,7 +62,7 @@ private WebServiceClient(WebServiceClient.Builder builder) {
6262 mapper = new ObjectMapper ();
6363 mapper .disable (MapperFeature .CAN_OVERRIDE_ACCESS_MODIFIERS );
6464 mapper .disable (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES );
65- mapper .setDateFormat (new ISO8601DateFormat ( ));
65+ mapper .setDateFormat (new StdDateFormat (). withColonInTimeZone ( true ));
6666
6767 RequestConfig .Builder configBuilder = RequestConfig .custom ()
6868 .setConnectTimeout (builder .connectTimeout )
Original file line number Diff line number Diff line change 22 "event" : {
33 "transaction_id" : " txn3134133" ,
44 "shop_id" : " s2123" ,
5- "time" : " 2012-04-12T23:20:50Z " ,
5+ "time" : " 2012-04-12T23:20:50.052+00:00 " ,
66 "type" : " purchase"
77 },
88 "account" : {
Original file line number Diff line number Diff line change 22 "event" : {
33 "transaction_id" : " txn3134133" ,
44 "shop_id" : " s2123" ,
5- "time" : " 2012-04-12T23:20:50Z " ,
5+ "time" : " 2012-04-12T23:20:50.052+00:00 " ,
66 "type" : " purchase"
77 },
88 "account" : {
You can’t perform that action at this time.
0 commit comments