directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r472687 - in /directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util: JoinIteratorTest.java StringToolsTest.java
Date Wed, 08 Nov 2006 23:12:09 GMT
Author: elecharny
Date: Wed Nov  8 15:12:08 2006
New Revision: 472687

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

Modified:
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/JoinIteratorTest.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/StringToolsTest.java

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/JoinIteratorTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/JoinIteratorTest.java?view=diff&rev=472687&r1=472686&r2=472687
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/JoinIteratorTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/JoinIteratorTest.java
Wed Nov  8 15:12:08 2006
@@ -84,7 +84,7 @@
 
     public void testSeveralArguments()
     {
-        ArrayList multivalued = new ArrayList();
+        ArrayList<String> multivalued = new ArrayList<String>();
         multivalued.add( "foo1" );
         multivalued.add( "foo2" );
 

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/StringToolsTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/StringToolsTest.java?view=diff&rev=472687&r1=472686&r2=472687
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/StringToolsTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/util/StringToolsTest.java
Wed Nov  8 15:12:08 2006
@@ -167,7 +167,7 @@
 
     public void testListToString()
     {
-        List list = new ArrayList();
+        List<String> list = new ArrayList<String>();
 
         list.add( "elem1" );
         list.add( "elem2" );
@@ -199,7 +199,7 @@
             }
         }
 
-        Map map = new HashMap();
+        Map<String, Value> map = new HashMap<String, Value>();
 
         map.put( "elem1", new Value( "name1", 1 ) );
         map.put( "elem2", new Value( "name2", 2 ) );



Mime
View raw message