From d476faa676acc89773fc2755449eead1db4883a0 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 2 Nov 2009 17:50:13 +0000 Subject: [PATCH] 293620: --- .../src/org/aspectj/weaver/ReferenceType.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java index bcfcfb50c..caca8f444 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java @@ -50,7 +50,7 @@ public class ReferenceType extends ResolvedType { ResolvedMember[] parameterizedFields = null; ResolvedMember[] parameterizedPointcuts = null; ResolvedType[] parameterizedInterfaces = null; - Collection parameterizedDeclares = null; + Collection parameterizedDeclares = null; Collection parameterizedTypeMungers = null; // During matching it can be necessary to temporary mark types as annotated. For example @@ -803,11 +803,10 @@ public class ReferenceType extends ResolvedType { } Collection declares = null; if (ajMembersNeedParameterization()) { - Collection genericDeclares = delegate.getDeclares(); - parameterizedDeclares = new ArrayList(); - Map parameterizationMap = getAjMemberParameterizationMap(); - for (Iterator iter = genericDeclares.iterator(); iter.hasNext();) { - Declare declareStatement = (Declare) iter.next(); + Collection genericDeclares = delegate.getDeclares(); + parameterizedDeclares = new ArrayList(); + Map parameterizationMap = getAjMemberParameterizationMap(); + for (Declare declareStatement : genericDeclares) { parameterizedDeclares.add(declareStatement.parameterizeWith(parameterizationMap, world)); } declares = parameterizedDeclares; @@ -821,7 +820,7 @@ public class ReferenceType extends ResolvedType { } @Override - public Collection getTypeMungers() { + public Collection getTypeMungers() { return delegate.getTypeMungers(); } -- 2.39.5