From e63272730a4cb827128ec1061ab86470ac787092 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 18 Oct 2013 17:40:28 +0000 Subject: [PATCH] It's confusing to re-use field names locally Document that the parameter is unused git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1533570 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/lang3/event/EventListenerSupport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 d7cede610..27fcc4fb6 100644 --- a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java +++ b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java @@ -299,8 +299,8 @@ public class EventListenerSupport implements Serializable { * Propagates the method call to all registered listeners in place of * the proxy listener object. * - * @param proxy the proxy object representing a listener on which the - * invocation was called. + * @param unusedProxy the proxy object representing a listener on which the + * invocation was called; not used * @param method the listener method that will be called on all of the * listeners. * @param args event arguments to propagate to the listeners. @@ -308,7 +308,7 @@ public class EventListenerSupport implements Serializable { * @throws Throwable if an error occurs */ @Override - public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { + public Object invoke(final Object unusedProxy, final Method method, final Object[] args) throws Throwable { for (final L listener : listeners) { method.invoke(listener, args); }