*/
package org.opendaylight.mdsal.binding.dom.codec.impl;
+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.ContainerLikeRuntimeType;
+import org.opendaylight.mdsal.binding.runtime.api.ContainerRuntimeType;
import org.opendaylight.yangtools.yang.binding.DataObject;
+import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
/**
}
@SuppressWarnings("unused")
+ @SuppressFBWarnings(value = "UUF_UNUSED_FIELD", justification = "https://github.com/spotbugs/spotbugs/issues/2749")
private volatile D emptyObject;
- StructuralContainerCodecContext(final DataContainerCodecPrototype<ContainerLikeRuntimeType<?, ?>> prototype) {
+ StructuralContainerCodecContext(final Class<D> cls, final ContainerRuntimeType type,
+ final CodecContextFactory factory) {
+ this(new StructuralContainerCodecPrototype(Item.of(cls), type, factory));
+ }
+
+ StructuralContainerCodecContext(final StructuralContainerCodecPrototype prototype) {
super(prototype);
}