< prev index next >

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

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

*** 221,231 **** */ private TestFinder initializeTestFinder(String finder, String[] args, File ts) throws Fault { TestFinder testFinder; try { ! Class c = Class.forName(finder); testFinder = (TestFinder) (c.newInstance()); testFinder.init(args, ts, null); } catch (ClassNotFoundException e) { throw new Fault("Error: Can't find class for TestFinder specified"); --- 221,231 ---- */ private TestFinder initializeTestFinder(String finder, String[] args, File ts) throws Fault { TestFinder testFinder; try { ! Class<?> c = Class.forName(finder); testFinder = (TestFinder) (c.newInstance()); testFinder.init(args, ts, null); } catch (ClassNotFoundException e) { throw new Fault("Error: Can't find class for TestFinder specified");
*** 256,267 **** if (tests != null) { for (int i = 0; i < tests.length; i++) { TestDescription td = tests[i]; out.println(" " + td.getRootRelativeURL()); if (fullTests) { ! for (Iterator iter = td.getParameterKeys(); iter.hasNext(); ) { ! String key = (String) (iter.next()); String value = td.getParameter(key); out.print(" "); out.print(key); pad(key, 15); out.print(value); --- 256,267 ---- if (tests != null) { for (int i = 0; i < tests.length; i++) { TestDescription td = tests[i]; out.println(" " + td.getRootRelativeURL()); if (fullTests) { ! for (Iterator<String> iter = td.getParameterKeys(); iter.hasNext(); ) { ! String key = (iter.next()); String value = td.getParameter(key); out.print(" "); out.print(key); pad(key, 15); out.print(value);
< prev index next >