Migrate yang.model.api.type to JDT annotations
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / Uint8TypeDefinition.java
index 5c3d86773719dd9bb0dc26b75ca9cdff17192c87..0fcd6fd620be2b085e27a9ba1bcce7a3f2395a50 100644 (file)
@@ -7,6 +7,9 @@
  */
 package org.opendaylight.yangtools.yang.model.api.type;
 
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+
 /**
  * Type definition derived from uint8 type.
  *
@@ -15,15 +18,15 @@ package org.opendaylight.yangtools.yang.model.api.type;
 public interface Uint8TypeDefinition extends RangeRestrictedTypeDefinition<Uint8TypeDefinition, Short> {
 
 
-    static int hashCode(final Uint8TypeDefinition type) {
+    static int hashCode(final @NonNull Uint8TypeDefinition type) {
         return TypeDefinitions.hashCode(type);
     }
 
-    static boolean equals(final Uint8TypeDefinition type, final Object obj) {
+    static boolean equals(final @NonNull Uint8TypeDefinition type, final @Nullable Object obj) {
         return TypeDefinitions.equals(Uint8TypeDefinition.class, type, obj);
     }
 
-    static String toString(final Uint8TypeDefinition type) {
+    static String toString(final @NonNull Uint8TypeDefinition type) {
         return TypeDefinitions.toStringHelper(type).add("range", type.getRangeConstraint().orElse(null)).toString();
     }
 }