Fix ObserverGroupListener equals 12/3212/1
authorjsimomaa <jani.simomaa@gmail.com>
Fri, 6 Sep 2019 08:54:10 +0000 (11:54 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Fri, 6 Sep 2019 08:54:10 +0000 (11:54 +0300)
gitlab #375

Change-Id: Ib9155cabef7833f1433aa90c2754f82c3c2185f8

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);