Make DecimalTypeDefinition.getFractionDigits() return int
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / TypeDefinitions.java
index b9dd40a2e27046c127ee610ef6e7c885c5cb25f3..3404bb53e773b493ff7c350011c632ff85d934f5 100644 (file)
@@ -155,7 +155,7 @@ final class TypeDefinitions {
         }
 
         final DecimalTypeDefinition other = castIfEquals(DecimalTypeDefinition.class, type, obj);
-        return other != null && type.getFractionDigits().equals(other.getFractionDigits())
+        return other != null && type.getFractionDigits() == other.getFractionDigits()
                 && type.getRangeConstraint().equals(other.getRangeConstraint());
     }