From: aclement Date: Sat, 31 Oct 2009 19:30:21 +0000 (+0000) Subject: generics X-Git-Tag: V1_6_7~184 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9197bc6932c4eacd80391d56660eb32ba01aed42;p=aspectj.git generics --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PointcutEvaluationExpenseComparator.java b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PointcutEvaluationExpenseComparator.java index bf1bb0caf..2fb9321f9 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PointcutEvaluationExpenseComparator.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PointcutEvaluationExpenseComparator.java @@ -13,7 +13,7 @@ import java.util.Comparator; import org.aspectj.weaver.Shadow; -public class PointcutEvaluationExpenseComparator implements Comparator { +public class PointcutEvaluationExpenseComparator implements Comparator { 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)) {