allowDuplicates will always be false at that point
This commit is contained in:
parent
5637a5204f
commit
0611710c61
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue