directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r543150 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java
Date Thu, 31 May 2007 15:06:36 GMT
Author: elecharny
Date: Thu May 31 08:06:36 2007
New Revision: 543150

URL: http://svn.apache.org/viewvc?view=rev&rev=543150
Log:
Used generic to avoid warnings.

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java?view=diff&rev=543150&r1=543149&r2=543150
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapConfiguration.java
Thu May 31 08:06:36 2007
@@ -69,7 +69,7 @@
     private String ldapsCertificatePassword = "changeit";
 
     /** The extended operation handlers. */
-    private final Collection extendedOperationHandlers = new ArrayList();
+    private final Collection<ExtendedOperationHandler> extendedOperationHandlers =
new ArrayList<ExtendedOperationHandler>();
 
     /** The supported authentication mechanisms. */
     private List<String> supportedMechanisms;
@@ -264,7 +264,7 @@
      */
     public Collection getExtendedOperationHandlers()
     {
-        return new ArrayList( extendedOperationHandlers );
+        return new ArrayList<ExtendedOperationHandler>( extendedOperationHandlers );
     }
 
 
@@ -273,7 +273,7 @@
      *
      * @param handlers A collection of {@link ExtendedOperationHandler}s.
      */
-    public void setExtendedOperationHandlers( Collection handlers )
+    public void setExtendedOperationHandlers( Collection<ExtendedOperationHandler>
handlers )
     {
         for ( Iterator i = handlers.iterator(); i.hasNext(); )
         {



Mime
View raw message