]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "(refs #7433) Fixed a bug in Left.equals"
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 16 Aug 2017 12:04:13 +0000 (15:04 +0300)
committerGerrit Code Review <gerrit2@www.simantics.org>
Wed, 16 Aug 2017 12:04:13 +0000 (15:04 +0300)
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);
     }