Make ListSchemaNode.getUniqueConstraints() non-default 72/64872/8
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Oct 2017 08:19:02 +0000 (09:19 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Nov 2017 10:56:32 +0000 (11:56 +0100)
This method should always be overridden, make it non-default.

Change-Id: Ifdf6ed9cde3d1857db00b49b4aa5304265b7fc78
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ListSchemaNode.java

index fa73cc4111ada7ce9f4ec393a6161a92877ff92a..84cd1e79212f9f8b5b38bf44443cb5938e289830 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import com.google.common.collect.ImmutableList;
 import java.util.Collection;
 import java.util.List;
 import javax.annotation.Nonnull;
@@ -15,11 +14,10 @@ import org.opendaylight.yangtools.yang.common.QName;
 
 /**
  * Interface describing YANG 'list' statement.
+ *
  * <p>
- * The 'list' statement is used to define an interior data node in the schema
- * tree. A list entry is uniquely identified by the values of the list's keys,
- * if defined.
- * </p>
+ * The 'list' statement is used to define an interior data node in the schema tree. A list entry is uniquely identified
+ * by the values of the list's keys, if defined.
  */
 public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode,
         NotificationNodeContainer, ActionNodeContainer {
@@ -45,7 +43,5 @@ public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, D
      * @return Collection of unique constraints of this list schema node
      */
     @Nonnull
-    default Collection<UniqueConstraint> getUniqueConstraints() {
-        return ImmutableList.of();
-    }
+    Collection<UniqueConstraint> getUniqueConstraints();
 }