Skip to content

Commit 2d48175

Browse files
committed
Merge branch '2.11'
2 parents de0b69c + 5a0ad70 commit 2d48175

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/key/ZonedDateTimeAsKeyTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ public void testDeserialization2() throws Exception {
7777

7878
@Test
7979
public void testSerializationToInstantWithNanos() throws Exception {
80-
String value = newMapperBuilder().enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS).build()
80+
String value = mapperBuilder().enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS).build()
8181
.writerFor(TYPE_REF).writeValueAsString(asMap(DATE_TIME_1, "test"));
8282
Assert.assertEquals("Value is incorrect",
8383
mapAsString(String.valueOf(DATE_TIME_1.toEpochSecond()) + '.' + DATE_TIME_1.getNano(), "test"), value);
8484
}
8585

8686
@Test
8787
public void testSerializationToInstantWithoutNanos() throws Exception {
88-
String value = newMapperBuilder().enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS)
88+
String value = mapperBuilder().enable(SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS)
8989
.disable(SerializationFeature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS).build()
9090
.writerFor(TYPE_REF).writeValueAsString(asMap(DATE_TIME_1, "test"));
9191
Assert.assertEquals("Value is incorrect",

release-notes/CREDITS-2.x

+4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ Michael O'Keeffe (kupci@github)
7777
Michał Żmuda (zmumi@github)
7878
* Reported #127: ZonedDateTime in map keys ignores option to write Zone IDs
7979
(2.10.1)
80+
* Reported #128: Timestamp keys from `ZonedDateTime`
81+
(2.11.0)
8082

8183
Vetle Leinonen-Roeim (vetler@github)
8284
* Contributed fix for #127: ZonedDateTime in map keys ignores option to write Zone IDs
8385
(2.10.1)
86+
* Contributed fix for #128: Timestamp keys from `ZonedDateTime`
87+
(2.11.0)

release-notes/VERSION-2.x

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Modules:
1010

1111
2.11.0 (not yet released)
1212

13-
-
13+
#128: Timestamp keys from `ZonedDateTime`
14+
(reported by Michał Ż, fixed by Vetle L-R)
1415

1516
2.10.1 (not yet released)
1617

0 commit comments

Comments
 (0)