< 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,11 +130,11 @@
      * 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) {
+    synchronized int run(TreeSet<?>[] tests) {
         Iterator<KnownFailuresList.Entry> it = kfl.getIterator(false);
         int probs = 0;
         int tcprobs = 0;
 
         // iterator KFL entries

@@ -420,11 +420,11 @@
         return problems;
     }
 
     private int addListedTestCases(final KnownFailuresList.Entry entry,
             final String url, final TestResult tr,
-            Transitions t, TreeSet set) {
+            Transitions t, TreeSet<?> set) {
         int problems = 0;
 
         String[] tcs = entry.getTestCaseList();
         if (tcs == null || tcs.length == 0)
             return 0;

@@ -617,11 +617,11 @@
     /**
      * 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 static class TestDiff implements Comparable<TestDiff> {
         public TestDiff(String url, TestResult tr, Transitions type) {
             this.tr = tr;
             this.url = url;
         }
 

@@ -698,12 +698,11 @@
         public void setKflEntry(KnownFailuresList.Entry e) {
             kflEntry = e;
         }
 
         @Override
-        public int compareTo(Object o) {
-            TestDiff e = (TestDiff) o;
+        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 >