/*
 * Copyright (c) 2014, 2015 EBay Software Foundation and others. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.ovsdb.lib.jsonrpc;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

public final class JsonUtils {

    private static ObjectMapper mapper = new ObjectMapper();
    private static ObjectWriter prettyWriter = mapper.writerWithDefaultPrettyPrinter();

    private JsonUtils() {
    }

    public static String prettyString(Object jsonNode) {
        try {
            return prettyWriter.writeValueAsString(jsonNode);
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }
}

@@ -551,17 +551,16 @@
 Utils %7B%0A
-%0A
     priv
@@ -574,103 +574,61 @@
 tic 
-ObjectMapper mapper = new ObjectMapper();%0A    private static ObjectWriter prettyWriter = mapper
+final ObjectWriter PRETTY_WRITER = new ObjectMapper()
 .wri
@@ -730,16 +730,22 @@
 yString(
+final 
 Object j
@@ -792,20 +792,21 @@
 urn 
-prettyWriter
+PRETTY_WRITER
 .wri

Use proper constant in JsonUtils