From: Hannu Niemistö Date: Wed, 16 Aug 2017 12:04:13 +0000 (+0300) Subject: Merge "(refs #7433) Fixed a bug in Left.equals" X-Git-Tag: v1.31.0~236 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=9c4f7c59dc673c6af8d3ac1d92566ff132d43826;hp=5c9442334a992c4e9899673fd1b56fb7a94b65f4 Merge "(refs #7433) Fixed a bug in Left.equals" --- 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); }