Split up DataObjectCodecPrototype
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / NotificationCodecContext.java
index 9bae0af94c1d7ee0808ae55e72eaf5786686d41f..8c9ea4ac3cd0b43d065ce71543a6fb78293af6d4 100644 (file)
@@ -123,17 +123,17 @@ final class NotificationCodecContext<D extends DataObject & BaseNotification>
     }
 
     /**
-     * Prototype for a {@code notiofication}. This class only exists because DataContainerCodecContext requires a
+     * Prototype for a {@code notification}. This class only exists because DataContainerCodecContext requires a
      * prototype.
      */
-    private static final class Prototype<D extends DataObject & BaseNotification>
+    static final class Prototype<D extends DataObject & BaseNotification>
             extends DataObjectCodecPrototype<NotificationRuntimeType> {
-        Prototype(final Class<?> cls, final NotificationRuntimeType type, final CodecContextFactory factory) {
+        private Prototype(final Class<?> cls, final NotificationRuntimeType type, final CodecContextFactory factory) {
             super(cls, NodeIdentifier.create(type.statement().argument()), type, factory);
         }
 
         @Override
-        DataContainerCodecContext<?, NotificationRuntimeType> createInstance() {
+        NotificationCodecContext<?> createInstance() {
             throw new UnsupportedOperationException("Should never be invoked");
         }
     }