< prev index next >

src/com/sun/javatest/agent/AgentClassLoader2.java

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

@@ -96,12 +96,12 @@
         }
         instance.parent = parent;
         return instance;
     }
 
-    public Class loadClassLocal(String name) throws ClassNotFoundException {
-        Class target = null;
+    public Class<?> loadClassLocal(String name) throws ClassNotFoundException {
+        Class<?> target = null;
 System.out.println("FORCE REMOTE " + name);
         try {
             target = findClass(name);
         } catch (ClassNotFoundException e) {
             // not found remote, search locally

@@ -116,11 +116,11 @@
         return target;
     }
 
 
     @Override
-    public Class findClass(String className) throws ClassNotFoundException {
+    public Class<?> findClass(String className) throws ClassNotFoundException {
         if (className != null) {
             int i = className.lastIndexOf('.');
             if (i > 0) {
                 String pkgName = className.substring(0, i);
                 if (getPackage(pkgName) == null) {
< prev index next >