allowDuplicates will always be false at that point

This commit is contained in:
Benedikt Ritter 2015-05-12 08:29:10 +02:00
parent 5637a5204f
commit 0611710c61
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class EventListenerSupport<L> implements Serializable {
Validate.notNull(listener, "Listener object cannot be null.");
if (allowDuplicate) {
listeners.add(listener);
} else if (!allowDuplicate && !listeners.contains(listener)) {
} else if (!listeners.contains(listener)) {
listeners.add(listener);
}
}