Fix Decimal64.equals() 30/85030/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 10 Oct 2019 10:29:23 +0000 (12:29 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 10 Oct 2019 11:32:25 +0000 (11:32 +0000)
There is a typo here, which would end up not comparing objects
properly.

Change-Id: I5cfe31887b109bbe7be6e564078f250ea6b61747
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java

index e3fceee38b3e89d2810228066a8595753bf7601e..32409a86e8d18cd698babd52c0c4b2f4da0def0c 100644 (file)
@@ -377,7 +377,7 @@ public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
         }
 
         // We need to normalize both
-        return intPart() == other.intPart() && fracPart() == fracPart();
+        return intPart() == other.intPart() && fracPart() == other.fracPart();
     }
 
     @Override