directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r542994 - in /directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core: SearchOpsITest.java jndi/AddITest.java
Date Thu, 31 May 2007 00:31:32 GMT
Author: elecharny
Date: Wed May 30 17:31:31 2007
New Revision: 542994

URL: http://svn.apache.org/viewvc?view=rev&rev=542994
Log:
Removed not used imports
Use generic to suppress some warnings

Modified:
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/SearchOpsITest.java
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/SearchOpsITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/SearchOpsITest.java?view=diff&rev=542994&r1=542993&r2=542994
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/SearchOpsITest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/SearchOpsITest.java
Wed May 30 17:31:31 2007
@@ -125,20 +125,22 @@
      *  Convenience method that performs a one level search using the 
      *  specified filter returning their DNs as Strings in a set.
      */
-    public Set searchGroups( String filter, SearchControls controls ) throws NamingException
+    public Set<String> searchGroups( String filter, SearchControls controls ) throws
NamingException
     {
         if ( controls == null )
         {
             controls = new SearchControls();
         }
         
-        Set results = new HashSet();
+        Set<String> results = new HashSet<String>();
         NamingEnumeration list = sysRoot.search( "ou=groups", filter, controls );
+        
         while( list.hasMore() )
         {
             SearchResult result = ( SearchResult ) list.next();
             results.add( result.getName() );
         }
+        
         return results;
     }
     

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java?view=diff&rev=542994&r1=542993&r2=542994
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
Wed May 30 17:31:31 2007
@@ -26,7 +26,6 @@
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
 
-import javax.naming.NamingEnumeration;
 import javax.naming.directory.Attributes;
 import javax.naming.directory.Attribute;
 



Mime
View raw message