< prev index next >

src/com/sun/javatest/util/DirectoryClassLoader.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -71,11 +71,11 @@
      * @param name The fully-qualified name of the class to load.
      * @param resolve True if imports should be resolved, false otherwise.
      * @return the class that was loaded
      * @throws ClassNotFoundException if the class was not found.
      */
-    protected Class loadClass(String name, boolean resolve)
+    protected Class<?> loadClass(String name, boolean resolve)
         throws ClassNotFoundException {
 
         // check the cache first
         Class<?> cl = classes.get(name);
 

@@ -171,11 +171,11 @@
        }
     }
 
     //----------internal methods------------------------------------------------
 
-    private synchronized Class locateClass(String name)
+    private synchronized Class<?> locateClass(String name)
         throws ClassNotFoundException {
         //This check is currently necessary; we just
         // check the cache at the one call site, but that was not
         // synchronized, so there is a very small remote chance another
         // caller has just loaded this class.
< prev index next >