From: Hannu Niemistö Date: Wed, 16 Aug 2017 11:39:01 +0000 (+0300) Subject: (refs #7433) Fixed a bug in Left.equals X-Git-Tag: v1.31.0~236^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=b3dad17f21c1ec92aadb72dce69830cad25e9af6 (refs #7433) Fixed a bug in Left.equals Change-Id: I89e5f53dab6d0436b0bf73446709ac56d82231a9 --- diff --git a/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java index 1e0c29b1f..7bc37bb34 100644 --- a/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java +++ b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java @@ -18,7 +18,7 @@ public class Left implements Either { return true; if(obj == null || obj.getClass() != getClass()) return false; - Right other = (Right)obj; + Left other = (Left)obj; return value == null ? other.value == null : value.equals(other.value); }