directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r472686 - in /directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name: DnParserDIRSERVER_584_Test.java LdapDNTest.java
Date Wed, 08 Nov 2006 23:10:35 GMT
Author: elecharny
Date: Wed Nov  8 15:10:34 2006
New Revision: 472686

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

Modified:
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserDIRSERVER_584_Test.java
    directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserDIRSERVER_584_Test.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserDIRSERVER_584_Test.java?view=diff&rev=472686&r1=472685&r2=472686
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserDIRSERVER_584_Test.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserDIRSERVER_584_Test.java
Wed Nov  8 15:10:34 2006
@@ -43,7 +43,7 @@
    {
        try
        {
-           LdapDnParser.parseInternal( "ou=test=testing", new ArrayList() );
+           LdapDnParser.parseInternal( "ou=test=testing", new ArrayList<Rdn>() );
            fail( "should never get here" );
        }
        catch ( InvalidNameException e )
@@ -58,6 +58,6 @@
     */
    public void testb() throws Exception
    {
-       LdapDnParser.parseInternal( "ou=system", new ArrayList() );
+       LdapDnParser.parseInternal( "ou=system", new ArrayList<Rdn>() );
    }
 }

Modified: directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?view=diff&rev=472686&r1=472685&r2=472686
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Wed Nov  8 15:10:34 2006
@@ -1340,7 +1340,7 @@
     */
    public void testLdapNameList() throws InvalidNameException
    {
-       ArrayList list = new ArrayList();
+       List<String> list = new ArrayList<String>();
        list.add( "ou=People" );
        list.add( "dc=example" );
        list.add( "dc=com" );
@@ -1354,7 +1354,7 @@
     */
    public void testLdapNameIterator() throws InvalidNameException
    {
-       ArrayList list = new ArrayList();
+       List<String> list = new ArrayList<String>();
        list.add( "ou=People" );
        list.add( "dc=example" );
        list.add( "dc=com" );
@@ -1406,11 +1406,11 @@
        assertTrue( name4.compareTo( name5 ) > 0 );
        assertTrue( name2.compareTo( name5 ) < 0 );
 
-       List list = new ArrayList();
+       List<Name> list = new ArrayList<Name>();
 
-       Comparator comparator = new Comparator()
+       Comparator<Name> comparator = new Comparator<Name>()
        {
-           public int compare( Object obj1, Object obj2 )
+           public int compare( Name obj1, Name obj2 )
            {
                Name name1 = ( LdapDN ) obj1;
                Name name2 = ( LdapDN ) obj2;
@@ -2140,13 +2140,13 @@
     */
    public void testLdapNameToName() throws Exception
    {
-       ArrayList list = new ArrayList();
+       ArrayList<String> list = new ArrayList<String>();
        list.add( "ou= Some   People   " );
        list.add( "dc = eXample" );
        list.add( "dc= cOm" );
        LdapDN name = new LdapDN( list.iterator() );
 
-       Map oids = new HashMap();
+       Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
        oids.put( "dc", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer() ) );
        oids.put( "domaincomponent", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer()
) );
@@ -2170,7 +2170,7 @@
    {
        LdapDN name = new LdapDN();
 
-       Map oids = new HashMap();
+       Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
        oids.put( "dc", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer() ) );
        oids.put( "domaincomponent", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer()
) );
@@ -2192,7 +2192,7 @@
        LdapDN name = new LdapDN(
            "2.5.4.11= Some   People   + 0.9.2342.19200300.100.1.25=  And   Some anImAls,0.9.2342.19200300.100.1.25
= eXample,dc= cOm" );
 
-       Map oids = new HashMap();
+       Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
        oids.put( "dc", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer() ) );
        oids.put( "domaincomponent", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer()
) );
@@ -2219,7 +2219,7 @@
        LdapDN name = new LdapDN(
            "2.5.4.11= Some   People   + domainComponent=  And   Some anImAls,DomainComponent
= eXample,0.9.2342.19200300.100.1.25= cOm" );
 
-       Map oids = new HashMap();
+       Map<String, OidNormalizer> oids = new HashMap<String, OidNormalizer>();
 
        oids.put( "dc", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer() ) );
        oids.put( "domaincomponent", new OidNormalizer( "dc", new DeepTrimToLowerNormalizer()
) );



Mime
View raw message