]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/either/Left.java
(refs #7433) Fixed a bug in Left.equals
[simantics/platform.git] / 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);
     }