Skip to content

Commit

Permalink
Merge branch '2.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 12, 2024
2 parents 8729577 + 67cedd6 commit e6f0f12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public Wrapper() { }
@Test
public void testDeserializationAsString01_oneBased() throws Exception
{
assertEquals(Month.JANUARY, readerForOneBased().readValue("\"01\""));
assertEquals(Month.JANUARY, readerForOneBased().readValue("\"1\""));
}

@Test
public void testDeserializationAsString01_zeroBased() throws Exception
{
assertEquals(Month.FEBRUARY, readerForZeroBased().readValue("\"01\""));
assertEquals(Month.FEBRUARY, readerForZeroBased().readValue("\"1\""));
}


Expand Down Expand Up @@ -93,13 +93,13 @@ public void testDeserialization01_oneBased() throws Exception
@Test
public void testDeserialization02_zeroBased() throws Exception
{
assertEquals(Month.SEPTEMBER, readerForZeroBased().readValue("\"08\""));
assertEquals(Month.SEPTEMBER, readerForZeroBased().readValue("\"8\""));
}

@Test
public void testDeserialization02_oneBased() throws Exception
{
assertEquals(Month.AUGUST, readerForOneBased().readValue("\"08\""));
assertEquals(Month.AUGUST, readerForOneBased().readValue("\"8\""));
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Modules:
=== Releases ===
------------------------------------------------------------------------

2.17.0-rc1 (26-Feb-2024)
2.17.0 (12-Mar-2024)

#274: Deserializing `java.time.Month` from an int causes an off-by-one
error (`0`->`Jan`,`11`->`Dec`), because it's an enum
Expand Down

0 comments on commit e6f0f12

Please sign in to comment.