Add YangInstanceIdentifier.coerceParent()
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / PathArgumentList.java
index 4cc6ff683eb69f335f18c5bd781b33b2b88c9430..e41d79b711f193405978b8e50fdd928620028512 100644 (file)
@@ -10,11 +10,12 @@ package org.opendaylight.yangtools.yang.data.api;
 import com.google.common.collect.UnmodifiableIterator;
 import java.util.AbstractList;
 import java.util.Collection;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
 abstract class PathArgumentList extends AbstractList<PathArgument> {
     @Override
-    public abstract UnmodifiableIterator<PathArgument> iterator();
+    public abstract @NonNull UnmodifiableIterator<PathArgument> iterator();
 
     @Override
     public final boolean isEmpty() {
@@ -22,32 +23,37 @@ abstract class PathArgumentList extends AbstractList<PathArgument> {
     }
 
     @Override
+    @SuppressWarnings("checkstyle:parameterName")
     public final boolean remove(final Object o) {
         throw new UnsupportedOperationException();
     }
 
     @Override
+    @SuppressWarnings("checkstyle:parameterName")
     public final boolean addAll(final Collection<? extends PathArgument> c) {
         throw new UnsupportedOperationException();
     }
 
     @Override
-    public final boolean removeAll(final Collection<?> c) {
+    @SuppressWarnings("checkstyle:parameterName")
+    public final boolean addAll(final int index, final Collection<? extends PathArgument> c) {
         throw new UnsupportedOperationException();
     }
 
     @Override
-    public final boolean retainAll(final Collection<?> c) {
+    @SuppressWarnings("checkstyle:parameterName")
+    public final boolean removeAll(final Collection<?> c) {
         throw new UnsupportedOperationException();
     }
 
     @Override
-    public final void clear() {
+    @SuppressWarnings("checkstyle:parameterName")
+    public final boolean retainAll(final Collection<?> c) {
         throw new UnsupportedOperationException();
     }
 
     @Override
-    public final boolean addAll(final int index, final Collection<? extends PathArgument> c) {
+    public final void clear() {
         throw new UnsupportedOperationException();
     }
 }