Bug-6195: Fix issue with leafSetEntryNode in SchemaTracker
[yangtools.git] / yang / yang-data-codec-gson / src / main / java / org / opendaylight / yangtools / yang / data / codec / gson / JSONStreamWriterRootContext.java
index 36c3ff38c349d7ad05f4474aa024c02d8aff9db6..5c02498c4604ec8d31559e8a4ea1653155dde8f1 100644 (file)
@@ -7,20 +7,17 @@
  */
 package org.opendaylight.yangtools.yang.data.codec.gson;
 
-import java.io.Writer;
 import java.net.URI;
 
+
 /**
  * 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 emitEnd(final Writer writer) {
-        throw new IllegalArgumentException("Top-level node reached");
-    }
 }