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
This commit is contained in:
Sebastian Bazley 2013-10-18 17:40:28 +00:00
parent 58a749fbac
commit e63272730a
1 changed files with 3 additions and 3 deletions

View File

@ -299,8 +299,8 @@ public class EventListenerSupport<L> 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<L> 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);
}