diff --git a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java index f1495e2d9e..479c0848e4 100644 --- a/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java +++ b/mvc/src/main/java/webmvc/org/springframework/web/servlet/view/JsonView.java @@ -26,7 +26,7 @@ public void render(final Map model, writer.flush(); } - private String getJsonString(Map model) { + private String getJsonString(final Map model) { if (model.size() == 1) { return model.values().stream() .map(this::writeValueAsString) @@ -36,7 +36,7 @@ private String getJsonString(Map model) { return writeValueAsString(model); } - private String writeValueAsString(Object object) { + private String writeValueAsString(final Object object) { try { return objectMapper.writeValueAsString(object); } catch (JsonProcessingException e) {