< prev index next >

src/com/sun/javatest/report/KflSorter.java

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

*** 130,140 **** * May take a long time to execute, performing the operation on a background * thread may be appropriate. * @param tests * @return Number of comparison problems encountered. */ ! synchronized int run(TreeSet[] tests) { Iterator<KnownFailuresList.Entry> it = kfl.getIterator(false); int probs = 0; int tcprobs = 0; // iterator KFL entries --- 130,140 ---- * May take a long time to execute, performing the operation on a background * thread may be appropriate. * @param tests * @return Number of comparison problems encountered. */ ! synchronized int run(TreeSet<?>[] tests) { Iterator<KnownFailuresList.Entry> it = kfl.getIterator(false); int probs = 0; int tcprobs = 0; // iterator KFL entries
*** 420,430 **** return problems; } private int addListedTestCases(final KnownFailuresList.Entry entry, final String url, final TestResult tr, ! Transitions t, TreeSet set) { int problems = 0; String[] tcs = entry.getTestCaseList(); if (tcs == null || tcs.length == 0) return 0; --- 420,430 ---- return problems; } private int addListedTestCases(final KnownFailuresList.Entry entry, final String url, final TestResult tr, ! Transitions t, TreeSet<?> set) { int problems = 0; String[] tcs = entry.getTestCaseList(); if (tcs == null || tcs.length == 0) return 0;
*** 617,627 **** /** * Created for each result which somehow does not match what was expected * based on the KFL. Using this class allows the analysis to be done once * then queried again and again for different purposes. */ ! public static class TestDiff implements Comparable { public TestDiff(String url, TestResult tr, Transitions type) { this.tr = tr; this.url = url; } --- 617,627 ---- /** * Created for each result which somehow does not match what was expected * based on the KFL. Using this class allows the analysis to be done once * then queried again and again for different purposes. */ ! public static class TestDiff implements Comparable<TestDiff> { public TestDiff(String url, TestResult tr, Transitions type) { this.tr = tr; this.url = url; }
*** 698,709 **** public void setKflEntry(KnownFailuresList.Entry e) { kflEntry = e; } @Override ! public int compareTo(Object o) { ! TestDiff e = (TestDiff) o; int n = getName().compareTo(e.getName()); /* if (n == 0) { if (testCase == null && e.testCase == null) return 0; else if (testCase == null) --- 698,708 ---- public void setKflEntry(KnownFailuresList.Entry e) { kflEntry = e; } @Override ! public int compareTo(TestDiff e) { int n = getName().compareTo(e.getName()); /* if (n == 0) { if (testCase == null && e.testCase == null) return 0; else if (testCase == null)
< prev index next >