Bump upstreams
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / CommonDataObjectCodecPrototype.java
index 2f2f5360cec6d7e6daf5fb97d1d6fbc50c797bca..24340e46527227816b59f5efb9a5d575a4d349f4 100644 (file)
@@ -9,12 +9,12 @@ package org.opendaylight.mdsal.binding.dom.codec.impl;
 
 import static java.util.Objects.requireNonNull;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.lang.invoke.MethodHandles;
 import java.lang.invoke.VarHandle;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.binding.runtime.api.CompositeRuntimeType;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
-import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 
 abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeType> implements CodecContextSupplier
@@ -31,21 +31,16 @@ abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeT
     }
 
     private final @NonNull T type;
-    private final @NonNull QNameModule namespace;
     private final @NonNull CodecContextFactory factory;
     private final @NonNull Item<?> bindingArg;
 
-    // multiple paths represent augmentation wrapper
-    // FIXME: this means it is either this or 'childArgs'
-
     // Accessed via INSTANCE
     @SuppressWarnings("unused")
+    @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "https://github.com/spotbugs/spotbugs/issues/2749")
     private volatile CommonDataObjectCodecContext<?, T> instance;
 
-    CommonDataObjectCodecPrototype(final Item<?> bindingArg, final QNameModule namespace, final T type,
-            final CodecContextFactory factory) {
+    CommonDataObjectCodecPrototype(final Item<?> bindingArg, final T type, final CodecContextFactory factory) {
         this.bindingArg = requireNonNull(bindingArg);
-        this.namespace = requireNonNull(namespace);
         this.type = requireNonNull(type);
         this.factory = requireNonNull(factory);
     }
@@ -54,10 +49,6 @@ abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeT
         return type;
     }
 
-    final @NonNull QNameModule getNamespace() {
-        return namespace;
-    }
-
     final @NonNull CodecContextFactory getFactory() {
         return factory;
     }