< prev index next >

src/com/sun/javatest/finder/ChameleonTestFinder.java

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

*** 276,286 **** } // no match found currEntry = null; } ! private Object newInstance(Class c) throws Fault { try { return c.newInstance(); } catch (InstantiationException e) { throw new Fault(i18n, "cham.cantCreateClass", --- 276,286 ---- } // no match found currEntry = null; } ! private Object newInstance(Class<?> c) throws Fault { try { return c.newInstance(); } catch (InstantiationException e) { throw new Fault(i18n, "cham.cantCreateClass",
*** 290,300 **** throw new Fault(i18n, "cham.cantAccessClass", new Object[] {c.getName(), e}); } } ! private Class loadClass(String className) throws Fault { try { if (loader == null) return Class.forName(className); else return loader.loadClass(className); --- 290,300 ---- throw new Fault(i18n, "cham.cantAccessClass", new Object[] {c.getName(), e}); } } ! private Class<?> loadClass(String className) throws Fault { try { if (loader == null) return Class.forName(className); else return loader.loadClass(className);
< prev index next >