]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java
Fix ObserverGroupListener equals
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / common / ObserverGroupListener.java
index 497b401a2a1d502ce00e352fe1301cef66c244ae..31295b9b692f60178c422ad7dda719089d87b76c 100644 (file)
@@ -66,7 +66,7 @@ public class ObserverGroupListener implements SetListener<Resource> {
             return true;
         else if (object == null)
             return false;
-        else if (ObserverGroupListener.class != object.getClass())
+        else if (getClass() != object.getClass())
             return false;
         ObserverGroupListener other = (ObserverGroupListener)object;
         return observer.equals(other.observer) && group.equals(other.group) && style.equals(other.style);