From b3dad17f21c1ec92aadb72dce69830cad25e9af6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Wed, 16 Aug 2017 14:39:01 +0300 Subject: [PATCH] (refs #7433) Fixed a bug in Left.equals Change-Id: I89e5f53dab6d0436b0bf73446709ac56d82231a9 --- .../src/org/simantics/scl/runtime/either/Left.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.1