diff --git a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java index 4f3a9a77a..475af1b27 100644 --- a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java +++ b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java @@ -197,7 +197,7 @@ public class EventListenerSupport 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); } }