From 6f74a06c056faf075a4e3afd5bcd8176bf1160a8 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Fri, 6 Sep 2019 11:54:10 +0300 Subject: [PATCH] Fix ObserverGroupListener equals gitlab #375 Change-Id: Ib9155cabef7833f1433aa90c2754f82c3c2185f8 --- .../scenegraph/profile/common/ObserverGroupListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.1