src/share/classes/java/lang/reflect/Proxy.java

Print this page

        

@@ -348,11 +348,11 @@
     {
         if (interfaces.length > 65535) {
             throw new IllegalArgumentException("interface limit exceeded");
         }
 
-        Class proxyClass = null;
+        Class<?> proxyClass = null;
 
         /* collect interface names to use as key for proxy class cache */
         String[] interfaceNames = new String[interfaces.length];
 
         // for detecting duplicates

@@ -362,11 +362,11 @@
             /*
              * Verify that the class loader resolves the name of this
              * interface to the same Class object.
              */
             String interfaceName = interfaces[i].getName();
-            Class interfaceClass = null;
+            Class<?> interfaceClass = null;
             try {
                 interfaceClass = Class.forName(interfaceName, false, loader);
             } catch (ClassNotFoundException e) {
             }
             if (interfaceClass != interfaces[i]) {