Skip to content

Commit

Permalink
Update org.eclipse.draw2d/src/org/eclipse/draw2d/EventListenerList.java
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Ziegler <[email protected]>
  • Loading branch information
azoitl and ptziegler authored Nov 11, 2024
1 parent 28c8e8b commit 2524adf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public synchronized <T> void addListener(Class<T> c, Object listener) {
* @return whether this list contains a listener of type <i>c</i>
*/
public synchronized <T> boolean containsListener(Class<T> c) {
Deque<Object> specListeners = listeners.get(c);
return specListeners != null && !specListeners.isEmpty();
return listeners.containsKey(c);
}

/**
Expand Down

0 comments on commit 2524adf

Please sign in to comment.