BUG-7996: Split JSONCodec into multiple implementations
[yangtools.git] / yang / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / JSONStreamWriterRootContext.java
index bb0d49dc8674ea728c8a4951f5598732b76d7e33..5c02498c4604ec8d31559e8a4ea1653155dde8f1 100644 (file)
@@ -7,28 +7,17 @@
  */
 package org.opendaylight.yangtools.yang.data.codec.gson;
 
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
 import java.net.URI;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
 
 /**
  * The root node of a particular {@link JSONNormalizedNodeStreamWriter} instance.
  * It holds the base namespace and can never be removed from the stack.
  */
-final class JSONStreamWriterRootContext extends JSONStreamWriterURIContext {
+abstract class JSONStreamWriterRootContext extends JSONStreamWriterURIContext {
+
     JSONStreamWriterRootContext(final URI namespace) {
         super(null, namespace);
     }
 
-    @Override
-    protected void emitStart(final SchemaContext schema, final JsonWriter writer) throws IOException {
-        writer.beginObject();
-    }
-
-    @Override
-    protected void emitEnd(final JsonWriter writer) throws IOException {
-        writer.endObject();
-    }
 }