Commits

Sebastian Sdorra committed 5153756

fix bug with registration of multiple authentication listeners

  • Participants
  • Parent commits 52644b5

Comments (0)

Files changed (1)

scm-core/src/main/java/sonia/scm/web/security/AbstractAuthenticationManager.java

  * @author Sebastian Sdorra
  */
 public abstract class AbstractAuthenticationManager
-        implements AuthenticationManager
+  implements AuthenticationManager
 {
 
   /**
   @Override
   public void addListener(AuthenticationListener listener)
   {
-    listeners.add(listener);
+    this.listeners.add(listener);
   }
 
   /**
   @Override
   public void addListeners(Collection<AuthenticationListener> listeners)
   {
-    listeners.addAll(listeners);
+    this.listeners.addAll(listeners);
   }
 
   /**
   @Override
   public void removeListener(AuthenticationListener listener)
   {
-    listeners.remove(listener);
+    this.listeners.remove(listener);
   }
 
   /**
    * @param user
    */
   protected void fireAuthenticationEvent(HttpServletRequest request,
-          HttpServletResponse response, User user)
+    HttpServletResponse response, User user)
   {
     for (AuthenticationListener listener : listeners)
     {