< prev index next >

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

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

@@ -28,14 +28,12 @@
 
 import java.util.Comparator;
 
 import com.sun.javatest.TestResult;
 
-class TestResultsByTitleComparator implements Comparator {
-    public int compare(Object o1, Object o2) {
-        TestResult tr1 = (TestResult)o1;
-        TestResult tr2 = (TestResult)o2;
+class TestResultsByTitleComparator implements Comparator<TestResult> {
+    public int compare(TestResult tr1, TestResult tr2) {
 
         return compare(tr1.getTestName(), tr2.getTestName());
     }
 
     private static int compare(String a, String b) {
< prev index next >