Skip to content

Commit 9de85f1

Browse files
committed
MappingJackson2JsonView does not refer to "renderedAttributes" anymore
Issue: SPR-17182
1 parent 484a2f3 commit 9de85f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ protected boolean isValidJsonpQueryParam(String value) {
216216
* Filter out undesired attributes from the given model.
217217
* The return value can be either another {@link Map} or a single value object.
218218
* <p>The default implementation removes {@link BindingResult} instances and entries
219-
* not included in the {@link #setModelKeys renderedAttributes} property.
219+
* not included in the {@link #setModelKeys modelKeys} property.
220220
* @param model the model, as passed on to {@link #renderMergedOutputModel}
221221
* @return the value to be rendered
222222
*/
@@ -263,7 +263,7 @@ protected void writePrefix(JsonGenerator generator, Object object) throws IOExce
263263
}
264264
if (jsonpFunction != null) {
265265
generator.writeRaw("/**/");
266-
generator.writeRaw(jsonpFunction + "(" );
266+
generator.writeRaw(jsonpFunction + "(");
267267
}
268268
}
269269

src/asciidoc/web-view.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ The `MappingJackson2JsonView` uses the Jackson library's `ObjectMapper` to rende
26742674
content as JSON. By default, the entire contents of the model map (with the exception of
26752675
framework-specific classes) will be encoded as JSON. For cases where the contents of the
26762676
map need to be filtered, users may specify a specific set of model attributes to encode
2677-
via the `RenderedAttributes` property. The `extractValueFromSingleKeyModel` property may
2677+
via the `modelKeys` property. The `extractValueFromSingleKeyModel` property may
26782678
also be used to have the value in single-key models extracted and serialized directly
26792679
rather than as a map of model attributes.
26802680

0 commit comments

Comments
 (0)