]> source.dussan.org Git - aspectj.git/commitdiff
generics
authoraclement <aclement>
Wed, 7 Jul 2010 18:24:53 +0000 (18:24 +0000)
committeraclement <aclement>
Wed, 7 Jul 2010 18:24:53 +0000 (18:24 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/Checker.java
org.aspectj.matcher/src/org/aspectj/weaver/ShadowMunger.java

index 9ae5b8311be6873298e4d7bd0ad0bb0568ce4522..384c5d6cdfc893983149aa3fcd8c2f159e61b70f 100644 (file)
@@ -32,6 +32,7 @@ public class Checker extends ShadowMunger {
        private String message;
        private volatile int hashCode = -1;
 
+       @SuppressWarnings("unused")
        private Checker() {
        }
 
@@ -99,8 +100,8 @@ public class Checker extends ShadowMunger {
        }
 
        @Override
-       public Collection getThrownExceptions() {
-               return Collections.EMPTY_LIST;
+       public Collection<ResolvedType> getThrownExceptions() {
+               return Collections.emptyList();
        }
 
        // FIXME this perhaps ought to take account of the other fields in advice (use super.equals?)
@@ -128,7 +129,7 @@ public class Checker extends ShadowMunger {
         * Parameterize the Checker by parameterizing the pointcut
         */
        @Override
-       public ShadowMunger parameterizeWith(ResolvedType declaringType, Map typeVariableMap) {
+       public ShadowMunger parameterizeWith(ResolvedType declaringType, Map<String, UnresolvedType> typeVariableMap) {
                Checker ret = new Checker(this.pointcut.parameterizeWith(typeVariableMap, declaringType.getWorld()), this.start, this.end,
                                this.sourceContext, this.message, this.isError);
                return ret;
index 0937d546961e387e08c3554063d7b617264f82e0..585fb24bd7003124b36fbe1b8571958d6c9697ba 100644 (file)
@@ -243,12 +243,12 @@ public abstract class ShadowMunger implements PartialOrder.PartialComparable, IH
         */
        public abstract boolean implementOn(Shadow shadow);
 
-       public abstract ShadowMunger parameterizeWith(ResolvedType declaringType, Map typeVariableMap);
+       public abstract ShadowMunger parameterizeWith(ResolvedType declaringType, Map<String, UnresolvedType> typeVariableMap);
 
        /**
         * @return a Collection of ResolvedTypes for all checked exceptions that might be thrown by this munger
         */
-       public abstract Collection getThrownExceptions();
+       public abstract Collection<ResolvedType> getThrownExceptions();
 
        /**
         * Does the munger have to check that its exception are accepted by the shadow ? It is not the case for annotation style around