Skip to content

Commit

Permalink
Update release notes wrt #1754, minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 7, 2017
1 parent 8860630 commit e54e9e0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions release-notes/CREDITS
Expand Up @@ -636,6 +636,8 @@ Bertrand Renuart (brenuart@github)
(2.9.1) (2.9.1)
* Contributed #1749: StdDateFormat: performance improvement of '_format(..)' method * Contributed #1749: StdDateFormat: performance improvement of '_format(..)' method
(2.9.1) (2.9.1)
* Contributed #1759: Reuse `Calendar` instance during parsing by `StdDateFormat`
(2.9.1)


Kevin Gallardo (newkek@github) Kevin Gallardo (newkek@github)
* Reported #1658: Infinite recursion when deserializing a class extending a Map, * Reported #1658: Infinite recursion when deserializing a class extending a Map,
Expand Down
2 changes: 2 additions & 0 deletions release-notes/VERSION
Expand Up @@ -17,6 +17,8 @@ Project: jackson-databind
(suggested by Bertrand R) (suggested by Bertrand R)
#1749: StdDateFormat: performance improvement of '_format(..)' method #1749: StdDateFormat: performance improvement of '_format(..)' method
(contributed by Bertrand R) (contributed by Bertrand R)
#1759: Reuse `Calendar` instance during parsing by `StdDateFormat`
(contributed by Bertrand R)
- Fix `DelegatingDeserializer` constructor to pass `handledType()` (and - Fix `DelegatingDeserializer` constructor to pass `handledType()` (and
not type of deserializer being delegated to!) not type of deserializer being delegated to!)


Expand Down
Expand Up @@ -599,6 +599,7 @@ protected Date _parseAsISO8601(String dateStr, ParsePosition bogus)
tz = _timezone; tz = _timezone;
} }
Calendar cal = _getCalendar(tz); Calendar cal = _getCalendar(tz);
cal.clear();
String formatStr; String formatStr;
if (totalLen <= 10) { if (totalLen <= 10) {
Matcher m = PATTERN_PLAIN.matcher(dateStr); Matcher m = PATTERN_PLAIN.matcher(dateStr);
Expand Down Expand Up @@ -756,8 +757,6 @@ protected Calendar _getCalendar(TimeZone tz) {
cal.setTimeZone(tz); cal.setTimeZone(tz);
} }
cal.setLenient(isLenient()); cal.setLenient(isLenient());
cal.clear();

return cal; return cal;
} }


Expand Down
Expand Up @@ -223,8 +223,8 @@ public void testIntBooleanMap() throws Exception
{ {
// to get typing, must use type reference // to get typing, must use type reference
String JSON = "{ \"1\" : true, \"-1\" : false }"; String JSON = "{ \"1\" : true, \"-1\" : false }";
Map<String,Integer> result = MAPPER.readValue Map<Integer,Object> result = MAPPER.readValue
(JSON, new TypeReference<HashMap<Integer,Boolean>>() { }); (JSON, new TypeReference<HashMap<Integer,Object>>() { });


assertNotNull(result); assertNotNull(result);
assertEquals(HashMap.class, result.getClass()); assertEquals(HashMap.class, result.getClass());
Expand Down
Expand Up @@ -176,6 +176,7 @@ public void testSampleDoc() throws Exception
// and that's all folks! // and that's all folks!
} }


@SuppressWarnings("unlikely-arg-type")
public void testUntypedMap() throws Exception public void testUntypedMap() throws Exception
{ {
// to get "untyped" default map-to-map, pass Object.class // to get "untyped" default map-to-map, pass Object.class
Expand Down

0 comments on commit e54e9e0

Please sign in to comment.