Resin 4.0.47 com.caucho.server.webapp.WebApp.hasListener(ArrayList<?> listeners, Class<?> listenerClass) have a incorrect code
<p>I am using Resin 4.0.47, and i found a bug in the class
com.caucho.server.webapp.WebApp, the method</p>

<pre><code>/**
   * Returns true if a listener with the given type exists.
   */

  public boolean hasListener(ArrayList&lt;?&gt; listeners, Class&lt;?&gt; listenerClass)
  {
    for (int i = 0; i &lt; listeners.size(); i++) {
      Object listener = _listeners.get(i);

      if (listener.getClass().equals(listenerClass)) {
        return true;
      }
    }

    return false;
  }
</code></pre>

<p>the line "Object listener = _listeners.get(i);", the variable should be listeners, not the _listeners, is not it?   how to fix it?</p>