Skip to content

Commit 088217c

Browse files
committed
[fix] Fix SysONContentAdapter
#2174 updated the condition of the addAdapter method. This fix applies the same condition to the removeAdapter, to be consistent and avoid leaks. Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
1 parent c548da1 commit 088217c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/services/syson-services/src/main/java/org/eclipse/syson/util/SysONEContentAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected void addAdapter(Notifier notifier) {
5858

5959
@Override
6060
protected void removeAdapter(Notifier notifier) {
61-
if (notifier instanceof Element element && (!(notifier instanceof Membership) || notifier instanceof FeatureValue)) {
61+
if (notifier instanceof Element element && (!(notifier instanceof Membership) || this.shouldCacheMembership(notifier))) {
6262
EClass eClass = element.eClass();
6363
List<EObject> value;
6464
if (this.cache.containsKey(eClass)) {

0 commit comments

Comments
 (0)