From: jsimomaa Date: Fri, 6 Sep 2019 08:54:10 +0000 (+0300) Subject: Fix ObserverGroupListener equals X-Git-Tag: v1.43.0~136^2~77 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F3212%2F1;p=simantics%2Fplatform.git Fix ObserverGroupListener equals gitlab #375 Change-Id: Ib9155cabef7833f1433aa90c2754f82c3c2185f8 --- diff --git a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java index 497b401a2..31295b9b6 100644 --- a/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java +++ b/bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java @@ -66,7 +66,7 @@ public class ObserverGroupListener implements SetListener { 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);