"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-web/src/main/java/org/springframework/http/codec/json/Jackson2CodecSupport.java" between
spring-framework-5.3.23.tar.gz and spring-framework-5.3.24.tar.gz

About: Spring Framework is an application framework for the Java platform and .NET Framework. Community edition.

Jackson2CodecSupport.java  (spring-framework-5.3.23):Jackson2CodecSupport.java  (spring-framework-5.3.24)
skipping to change at line 231 skipping to change at line 231
MethodParameter param = getParameter(resolvableType); MethodParameter param = getParameter(resolvableType);
if (param != null) { if (param != null) {
Map<String, Object> hints = null; Map<String, Object> hints = null;
if (resolvableType.hasGenerics()) { if (resolvableType.hasGenerics()) {
hints = new HashMap<>(2); hints = new HashMap<>(2);
hints.put(ACTUAL_TYPE_HINT, resolvableType); hints.put(ACTUAL_TYPE_HINT, resolvableType);
} }
JsonView annotation = getAnnotation(param, JsonView.class ); JsonView annotation = getAnnotation(param, JsonView.class );
if (annotation != null) { if (annotation != null) {
Class<?>[] classes = annotation.value(); Class<?>[] classes = annotation.value();
Assert.isTrue(classes.length == 1, JSON_VIEW_HINT _ERROR + param); Assert.isTrue(classes.length == 1, () -> JSON_VIE W_HINT_ERROR + param);
hints = (hints != null ? hints : new HashMap<>(1) ); hints = (hints != null ? hints : new HashMap<>(1) );
hints.put(JSON_VIEW_HINT, classes[0]); hints.put(JSON_VIEW_HINT, classes[0]);
} }
if (hints != null) { if (hints != null) {
return hints; return hints;
} }
} }
return Hints.none(); return Hints.none();
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)