Polishing

Issue: SPR-10752
Issue: SPR-10627
This commit is contained in:
Juergen Hoeller 2013-08-01 00:35:51 +02:00
parent ccb02a2355
commit d8e3ef7640
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ public class MappingJackson2JsonView extends AbstractView {
* @see #setJsonPrefix * @see #setJsonPrefix
*/ */
public void setPrefixJson(boolean prefixJson) { public void setPrefixJson(boolean prefixJson) {
this.jsonPrefix = (prefixJson ? "{} && " : ""); this.jsonPrefix = (prefixJson ? "{} && " : null);
} }
/** /**

View File

@ -142,13 +142,13 @@ public class MappingJacksonJsonView extends AbstractView {
* @see #setJsonPrefix * @see #setJsonPrefix
*/ */
public void setPrefixJson(boolean prefixJson) { public void setPrefixJson(boolean prefixJson) {
this.jsonPrefix = (prefixJson ? "{} && " : ""); this.jsonPrefix = (prefixJson ? "{} && " : null);
} }
/** /**
* Whether to use the default pretty printer when writing JSON. * Whether to use the default pretty printer when writing JSON.
* This is a shortcut for setting up an {@code ObjectMapper} as follows: * This is a shortcut for setting up an {@code ObjectMapper} as follows:
* <pre> * <pre class="code">
* ObjectMapper mapper = new ObjectMapper(); * ObjectMapper mapper = new ObjectMapper();
* mapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true); * mapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
* </pre> * </pre>