directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r472694 - /directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/
Date Wed, 08 Nov 2006 23:21:58 GMT
Author: elecharny
Date: Wed Nov  8 15:21:55 2006
New Revision: 472694

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

Modified:
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java?view=diff&rev=472694&r1=472693&r2=472694
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
Wed Nov  8 15:21:55 2006
@@ -51,7 +51,7 @@
  */
 public class SearchRequestMatchingRuleAssertionTest extends TestCase
 {
-    static Map oids = new HashMap();
+    static Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
     protected void setUp() throws Exception
     {

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java?view=diff&rev=472694&r1=472693&r2=472694
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
Wed Nov  8 15:21:55 2006
@@ -53,7 +53,7 @@
  */
 public class SearchRequestSubstringTest extends TestCase
 {
-    static Map oids = new HashMap();
+    static Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
     protected void setUp() throws Exception
     {

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java?view=diff&rev=472694&r1=472693&r2=472694
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
Wed Nov  8 15:21:55 2006
@@ -63,7 +63,7 @@
  */
 public class SearchRequestTest extends TestCase
 {
-    static Map oids = new HashMap(); 
+    static Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();

 
     protected void setUp() throws Exception
     {

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java?view=diff&rev=472694&r1=472693&r2=472694
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
Wed Nov  8 15:21:55 2006
@@ -23,6 +23,7 @@
 import java.nio.ByteBuffer;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Set;
 
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
@@ -116,7 +117,7 @@
 
             NamingEnumeration values = attributeValue.getAll();
 
-            HashSet expectedValues = new HashSet();
+            Set<String> expectedValues = new HashSet<String>();
 
             expectedValues.add( "top" );
             expectedValues.add( "organizationalUnit" );
@@ -226,7 +227,7 @@
 
             NamingEnumeration values = attributeValue.getAll();
 
-            HashSet expectedValues = new HashSet();
+            Set<String> expectedValues = new HashSet<String>();
 
             expectedValues.add( "top" );
             expectedValues.add( "organizationalUnit" );
@@ -335,7 +336,7 @@
 
             NamingEnumeration values = attributeValue.getAll();
 
-            HashSet expectedValues = new HashSet();
+            Set<String> expectedValues = new HashSet<String>();
 
             expectedValues.add( "top" );
             expectedValues.add( "person" );

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java?view=diff&rev=472694&r1=472693&r2=472694
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
Wed Nov  8 15:21:55 2006
@@ -24,6 +24,7 @@
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Set;
 
 import javax.naming.NamingException;
 
@@ -121,7 +122,7 @@
 
         assertEquals( 1, message.getMessageId() );
 
-        HashSet ldapUrlsSet = new HashSet();
+        Set<String> ldapUrlsSet = new HashSet<String>();
 
         try
         {
@@ -254,7 +255,7 @@
 
         assertEquals( 1, message.getMessageId() );
 
-        HashSet ldapUrlsSet = new HashSet();
+        Set<String> ldapUrlsSet = new HashSet<String>();
 
         try
         {



Mime
View raw message