From: Robert Varga Date: Thu, 10 Oct 2019 10:29:23 +0000 (+0200) Subject: Fix Decimal64.equals() X-Git-Tag: v4.0.2~8 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F85030%2F2;p=yangtools.git Fix Decimal64.equals() There is a typo here, which would end up not comparing objects properly. Change-Id: I5cfe31887b109bbe7be6e564078f250ea6b61747 Signed-off-by: Robert Varga --- diff --git a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java index e3fceee38b..32409a86e8 100644 --- a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java +++ b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java @@ -377,7 +377,7 @@ public class Decimal64 extends Number implements CanonicalValue { } // We need to normalize both - return intPart() == other.intPart() && fracPart() == fracPart(); + return intPart() == other.intPart() && fracPart() == other.fracPart(); } @Override