diff options
author | Andy Clement <aclement@pivotal.io> | 2016-05-12 13:41:29 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-05-12 13:41:29 -0700 |
commit | 318abf5c887102af8e51337a75fa910449df86b9 (patch) | |
tree | f21caf7e55b93c13f4877564247411458bcb510f | |
parent | 9eae797dd9c96826c7ab23f1ed9d3c26552c5c88 (diff) | |
download | aspectj-318abf5c887102af8e51337a75fa910449df86b9.tar.gz aspectj-318abf5c887102af8e51337a75fa910449df86b9.zip |
generics
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index 14f667a2b..db77600b1 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -922,7 +922,7 @@ public class EclipseFactory { * to being a generic ITD. Any aliases are put into the typeVariableToBinding map so that they will be substituted as * appropriate in the returned methodbinding */ - public MethodBinding internalMakeMethodBinding(ResolvedMember member, List aliases, UnresolvedType aliasTargetType) { + public MethodBinding internalMakeMethodBinding(ResolvedMember member, List<String> aliases, UnresolvedType aliasTargetType) { typeVariableToTypeBinding.clear(); TypeVariableBinding[] tvbs = null; @@ -945,9 +945,8 @@ public class EclipseFactory { if (aliasTarget.isRawType()) { aliasTarget = ((RawTypeBinding) aliasTarget).genericType(); } - for (Iterator iter = aliases.iterator(); iter.hasNext();) { - String element = (String) iter.next(); - typeVariableToTypeBinding.put(element, aliasTarget.typeVariables()[i++]); + for (String alias: aliases) { + typeVariableToTypeBinding.put(alias, aliasTarget.typeVariables()[i++]); } } |