< prev index next >

src/com/sun/javatest/exec/ExcludeListBrowser.java

Print this page

        

*** 288,301 **** } // The following operation is slow and should arguably be // done by a worker thread, perhaps using the nested List class as // a Runnable. ! SortedSet sortedEntries = new TreeSet(new Comparator() { ! public int compare(Object o1, Object o2) { ! String s1 = entryToString((ExcludeList.Entry)o1); ! String s2 = entryToString((ExcludeList.Entry)o2); return s1.compareTo(s2); } }); if (list != null) { --- 288,301 ---- } // The following operation is slow and should arguably be // done by a worker thread, perhaps using the nested List class as // a Runnable. ! SortedSet<ExcludeList.Entry> sortedEntries = new TreeSet<>(new Comparator<ExcludeList.Entry>() { ! public int compare(ExcludeList.Entry o1, ExcludeList.Entry o2) { ! String s1 = entryToString(o1); ! String s2 = entryToString(o2); return s1.compareTo(s2); } }); if (list != null) {
< prev index next >