]> source.dussan.org Git - aspectj.git/commitdiff
generics
authoraclement <aclement>
Sat, 31 Oct 2009 19:30:21 +0000 (19:30 +0000)
committeraclement <aclement>
Sat, 31 Oct 2009 19:30:21 +0000 (19:30 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/patterns/PointcutEvaluationExpenseComparator.java

index bf1bb0caf6919fccf2b8c204772b9fbba95bab12..2fb9321f9538401b436c2c22d5cbd36111342c32 100644 (file)
@@ -13,7 +13,7 @@ import java.util.Comparator;
 
 import org.aspectj.weaver.Shadow;
 
-public class PointcutEvaluationExpenseComparator implements Comparator {
+public class PointcutEvaluationExpenseComparator implements Comparator<Pointcut> {
 
        private static final int MATCHES_NOTHING = -1;
        private static final int WITHIN = 1;
@@ -46,9 +46,7 @@ public class PointcutEvaluationExpenseComparator implements Comparator {
         * @this, @target args
         * @args cflow, cflowbelow if
         */
-       public int compare(Object o1, Object o2) {
-               Pointcut p1 = (Pointcut) o1;
-               Pointcut p2 = (Pointcut) o2;
+       public int compare(Pointcut p1, Pointcut p2) {
 
                // important property for a well-defined comparator
                if (p1.equals(p2)) {