Rework NormalizedNode type hierarchy
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / builder / api / ListNodeBuilder.java
index 0563fbe9ac480a88e4fca3a121bc466dcf7f78ba..0fda7c72b09e4ed346d5430b548f1be055e1caeb 100644 (file)
@@ -8,15 +8,12 @@
 package org.opendaylight.yangtools.yang.data.impl.schema.builder.api;
 
 import java.util.Collection;
-import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
 import org.opendaylight.yangtools.yang.data.api.schema.LeafSetNode;
 
-public interface ListNodeBuilder<T, V>
-        extends CollectionNodeBuilder<LeafSetEntryNode<T>, LeafSetNode<T>> {
-
+public interface ListNodeBuilder<T, V extends LeafSetNode<T>> extends CollectionNodeBuilder<LeafSetEntryNode<T>, V> {
     @Override
     ListNodeBuilder<T, V> withNodeIdentifier(NodeIdentifier nodeIdentifier);
 
@@ -29,5 +26,5 @@ public interface ListNodeBuilder<T, V>
     @Override
     ListNodeBuilder<T, V> withoutChild(PathArgument key);
 
-    @NonNull ListNodeBuilder<T, V> withChildValue(T child);
+    ListNodeBuilder<T, V> withChildValue(T child);
 }