directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r606911 - /directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Date Wed, 26 Dec 2007 15:29:00 GMT
Author: elecharny
Date: Wed Dec 26 07:29:00 2007
New Revision: 606911

URL: http://svn.apache.org/viewvc?rev=606911&view=rev
Log:
Replaced some import ...*; by the explicit declaration of the imported elements.
Removed some warnings with generics

Modified:
    directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java

Modified: directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java?rev=606911&r1=606910&r2=606911&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
(original)
+++ directory/apacheds/branches/bigbang/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Wed Dec 26 07:29:00 2007
@@ -36,7 +36,12 @@
 import javax.naming.NamingException;
 import javax.naming.ldap.InitialLdapContext;
 import javax.naming.ldap.LdapContext;
-import java.io.*;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Hashtable;
 import java.util.Iterator;
@@ -95,7 +100,7 @@
     private String ldifPath;
 
     /** Load resources relative to this class */
-    private Class loadClass;
+    private Class<?> loadClass;
 
     private Hashtable<String,Object> overrides = new Hashtable<String,Object>();
 
@@ -124,7 +129,7 @@
      * @param ldifPath the relative resource path to the LDIF file
      * @param loadClass the class used to load the LDIF as a resource stream
      */
-    protected void setLdifPath( String ldifPath, Class loadClass )
+    protected void setLdifPath( String ldifPath, Class<?> loadClass )
     {
         this.loadClass = loadClass;
         this.ldifPath = ldifPath;
@@ -174,8 +179,8 @@
         // -------------------------------------------------------------------
 
         LdifReader reader = new LdifReader();
-    	List entries = reader.parseLdif( LDIF );
-        Entry entry = ( Entry ) entries.get(0);
+    	List<Entry> entries = reader.parseLdif( LDIF );
+        Entry entry = entries.get(0);
         testEntries.add( entry );
 
         // -------------------------------------------------------------------
@@ -405,7 +410,7 @@
     }
 
 
-    protected void setLoadClass( Class loadClass )
+    protected void setLoadClass( Class<?> loadClass )
     {
         this.loadClass = loadClass;
     }



Mime
View raw message