< prev index next >

src/com/sun/javatest/tool/TabDeskView.java

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

*** 81,94 **** Tool[] tools = other.getTools(); // perhaps would be nice to have getTools(Comparator) and have it return a sorted // array of tools ! Arrays.sort(tools, new Comparator() { ! public int compare(Object o1, Object o2) { ! Long l1 = new Long(((Tool)o1).getCreationTime()); ! Long l2 = new Long(((Tool)o2).getCreationTime()); return (l1.compareTo(l2)); } }); for (int i = 0; i < tools.length; i++) --- 81,94 ---- Tool[] tools = other.getTools(); // perhaps would be nice to have getTools(Comparator) and have it return a sorted // array of tools ! Arrays.sort(tools, new Comparator<Tool>() { ! public int compare(Tool o1, Tool o2) { ! Long l1 = new Long(o1.getCreationTime()); ! Long l2 = new Long(o2.getCreationTime()); return (l1.compareTo(l2)); } }); for (int i = 0; i < tools.length; i++)
< prev index next >