< prev index next >

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

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

@@ -60,11 +60,11 @@
      * @throws IOException if any errors occurred reading the file
      */
     public static Map readFile(String name) throws IOException {
         try {
             Class<?> c = Class.forName("java.io.FileReader"); // optional API in Jersonal Java
-            Constructor m = c.getConstructor(new Class[] {String.class});
+            Constructor<?> m = c.getConstructor(new Class<?>[] {String.class});
             Reader r = (Reader)(m.newInstance(new Object[] {name}));
             return new Map(r);
         }
         catch (ClassNotFoundException e) {
             throw new IOException("file system not accessible (" + e + ")");
< prev index next >