Remove redundant modifiers
[yangtools.git] / yang / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / QuotedJSONCodec.java
index e8606f8d9587f4304d752cfe2215e19d5e6ced0b..45782896cf2b3bbe3d9040da4904713519e69365 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.data.codec.gson;
 
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
 import org.opendaylight.yangtools.concepts.Codec;
 
 /**
@@ -23,4 +25,15 @@ final class QuotedJSONCodec<T> extends AbstractJSONCodec<T> {
     public boolean needQuotes() {
         return true;
     }
+
+    /**
+     * Serialize specified value with specified JsonWriter.
+     *
+     * @param writer JsonWriter
+     * @param value
+     */
+    @Override
+    public void serializeToWriter(JsonWriter writer, T value) throws IOException {
+        writer.value(serialize(value));
+    }
 }
\ No newline at end of file