directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r1039821 - /directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Sun, 28 Nov 2010 03:08:09 GMT
Author: antoine
Date: Sun Nov 28 03:08:09 2010
New Revision: 1039821

URL: http://svn.apache.org/viewvc?rev=1039821&view=rev
Log:
this was required, I had a classcast exception otherwise

Modified:
    directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Modified: directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1039821&r1=1039820&r2=1039821&view=diff
==============================================================================
--- directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
(original)
+++ directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Sun Nov 28 03:08:09 2010
@@ -248,9 +248,11 @@ public class AuthenticationInterceptor e
     public void setAuthenticators( Authenticator[] authenticators )
     {
         this.authenticators.clear();
+        Set<Authenticator> set = new HashSet<Authenticator>();
         for (Authenticator authenticator : authenticators) {
-            this.authenticators.add( authenticator );
+            set.add( authenticator );
         }
+        setAuthenticators( set );
     }
     /**
      * Deinitializes and deregisters all {@link Authenticator}s from this service.



Mime
View raw message