Remove SchemaPath from TypeDefinition implementations
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / BaseInt32Type.java
index 08f3081b4e33c6ca2890ce8695802a1be8d62a45..08935902f680d151e4a3d6f6e7194a175b9ed485 100644 (file)
@@ -7,12 +7,13 @@
  */
 package org.opendaylight.yangtools.yang.model.util.type;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.model.api.type.Int32TypeDefinition;
 import org.opendaylight.yangtools.yang.model.util.BaseTypes;
 
 final class BaseInt32Type extends AbstractRangeRestrictedBaseType<Int32TypeDefinition, Integer>
         implements Int32TypeDefinition {
-    static final BaseInt32Type INSTANCE = new BaseInt32Type();
+    static final @NonNull BaseInt32Type INSTANCE = new BaseInt32Type();
 
     private BaseInt32Type() {
         super(BaseTypes.INT32_QNAME, Integer.MIN_VALUE, Integer.MAX_VALUE);
@@ -20,17 +21,17 @@ final class BaseInt32Type extends AbstractRangeRestrictedBaseType<Int32TypeDefin
 
     @Override
     public int hashCode() {
-        return TypeDefinitions.hashCode(this);
+        return Int32TypeDefinition.hashCode(this);
     }
 
     @Override
     public boolean equals(final Object obj) {
-        return TypeDefinitions.equals(this, obj);
+        return Int32TypeDefinition.equals(this, obj);
     }
 
     @Override
     public String toString() {
-        return TypeDefinitions.toString(this);
+        return Int32TypeDefinition.toString(this);
     }
 
 }