File tree Expand file tree Collapse file tree 4 files changed +17
-42
lines changed
guava/src/test/java/com/fasterxml/jackson/datatype/guava Expand file tree Collapse file tree 4 files changed +17
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -34,4 +34,14 @@ public void testUntypedWithOptionalsNotNulls() throws Exception
3434 String jsonAct = mapper .writeValueAsString (new OptionalParent ());
3535 assertEquals (jsonExp , jsonAct );
3636 }
37+
38+ // Test for "old" settings (2.5 and earlier only option; available on later too)
39+ // Fixed via [datatypes-collections#136]
40+ public void testUntypedWithNullEqOptionals () throws Exception
41+ {
42+ final ObjectMapper mapper = mapperWithModule (true );
43+ String jsonExp = aposToQuotes ("{'XX.name':'Bob'}" );
44+ String jsonAct = mapper .writeValueAsString (new OptionalParent ());
45+ assertEquals (jsonExp , jsonAct );
46+ }
3747}
Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ Wolff Bock von Wülfingen (@wlfbck)
119119 (2.16.0 )
120120
121121Muhammad Khalikov (@mukham12)
122- * Contributed #118 : Support @JsonFormat(shape=STRING) on Range<T>
122+ * Contributed #118 : (guava) Support @JsonFormat(shape=STRING) on Range<T>
123+ (2.17.0 )
124+ * Contributed #136 : (guava) Fix for failing Guava `Optional` test
123125 (2.17.0 )
124126
125127Arthur Chan (@arthurscchan)
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ Active Maintainers:
1818
19192.17.0 (not yet released)
2020
21- #118 : Support @JsonFormat(shape=STRING) on Range<T>
21+ #118 : (guava) Support @JsonFormat(shape=STRING) on Range<T>
2222 (contributed by Muhammad K)
23- #124 : Some deserializers throw unexpected `NullPointerException` when
23+ #124 : (guava) Some deserializers throw unexpected `NullPointerException` when
2424 handling invalid input
2525 (contibuted by Arthur C)
26+ #136 (guava) Fix for failing Guava `Optional` test
27+ (contributed by Muhammad K)
2628
27292.16.0 (15 -Nov-2023 )
2830
You can’t perform that action at this time.
0 commit comments