directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r472692 - /directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
Date Wed, 08 Nov 2006 23:19:07 GMT
Author: elecharny
Date: Wed Nov  8 15:19:04 2006
New Revision: 472692

URL: http://svn.apache.org/viewvc?view=rev&rev=472692
Log:
Fixed warnings by using generics

Modified:
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java?view=diff&rev=472692&r1=472691&r2=472692
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/add/AddRequestTest.java
Wed Nov  8 15:19:04 2006
@@ -24,6 +24,7 @@
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Set;
 
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
@@ -121,18 +122,18 @@
 
         assertEquals( 2, attributes.size() );
 
-        HashSet expectedTypes = new HashSet();
+        Set<String> expectedTypes = new HashSet<String>();
 
         expectedTypes.add( "l" );
         expectedTypes.add( "attrs" );
 
-        HashMap typesVals = new HashMap();
+        HashMap<String, Set<String>> typesVals = new HashMap<String, Set<String>>();
 
-        HashSet lVal1 = new HashSet();
+        Set<String> lVal1 = new HashSet<String>();
         lVal1.add( "Paris" );
         typesVals.put( "l", lVal1 );
 
-        HashSet lVal2 = new HashSet();
+        Set<String> lVal2 = new HashSet<String>();
         lVal2.add( "test1" );
         lVal2.add( "test2" );
         lVal2.add( "test3" );



Mime
View raw message