]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7433) Fixed a bug in Left.equals 62/862/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 16 Aug 2017 11:39:01 +0000 (14:39 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 16 Aug 2017 11:39:01 +0000 (14:39 +0300)
Change-Id: I89e5f53dab6d0436b0bf73446709ac56d82231a9

bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java

index 1e0c29b1fde0449879333936297817e247a4cb45..7bc37bb349fb15f571c8f7ebc74baedcdb21bf8d 100644 (file)
@@ -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);
     }