import com.google.common.annotations.Beta;
import java.util.Collection;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Relative;
/**
* Interface describing YANG 'unique' constraint.
*
* <p>
- * The 'unique' constraint specifies that the combined values of all the leaf
- * instances specified in the argument string, including leafs with default
- * values, MUST be unique within all list entry instances in which all
- * referenced leafs exist (for more information see RFC-6020 section 7.8.3.).
+ * The 'unique' constraint specifies that the combined values of all the leaf instances specified in the argument
+ * string, including leafs with default values, MUST be unique within all list entry instances in which all referenced
+ * leafs exist (for more information see RFC-6020 section 7.8.3.).
*/
@Beta
public interface UniqueConstraint {
// FIXME: 3.0.0: return Set<Relative>
- @Nonnull Collection<Relative> getTag();
+ @NonNull Collection<Relative> getTag();
}
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.unique;
+import static com.google.common.base.Verify.verifyNotNull;
+
import java.util.Collection;
-import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.model.api.UniqueConstraint;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Relative;
import org.opendaylight.yangtools.yang.model.api.stmt.UniqueEffectiveStatement;
super(ctx);
}
- @Nonnull
@Override
public Collection<Relative> getTag() {
- return argument();
+ // FIXME: YANGTOOLS-908: verifyNotNull() should not be needed here
+ return verifyNotNull(argument());
}
}