diff options
author | pfullbright | 2012-02-24 17:26:12 +0000 |
---|---|---|
committer | pfullbright | 2012-02-24 17:26:12 +0000 |
commit | 87dcea896857c16ba1e7ab9d4a9700380741dfbe (patch) | |
tree | 550382ab65656e07d2bd61f0e6c9ca47cb2ce6fb /common/plugins | |
parent | d29f3339d2e29ef8834671ef06445251d0ac3b52 (diff) | |
download | webtools.dali-87dcea896857c16ba1e7ab9d4a9700380741dfbe.tar.gz webtools.dali-87dcea896857c16ba1e7ab9d4a9700380741dfbe.tar.xz webtools.dali-87dcea896857c16ba1e7ab9d4a9700380741dfbe.zip |
changed superclasses and interfaces to use erasures rather than just fq names (elimate generics)
Diffstat (limited to 'common/plugins')
-rw-r--r-- | common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceAttribute.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceAttribute.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceAttribute.java index 54cba44e7e..d2e3fbd194 100644 --- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceAttribute.java +++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/source/SourceAttribute.java @@ -299,7 +299,7 @@ abstract class SourceAttribute<A extends Attribute> ArrayList<String> names = new ArrayList<String>(); typeBinding = typeBinding.getSuperclass(); while (typeBinding != null) { - names.add(typeBinding.getQualifiedName()); + names.add(typeBinding.getErasure().getQualifiedName()); typeBinding = typeBinding.getSuperclass(); } return names; @@ -332,7 +332,7 @@ abstract class SourceAttribute<A extends Attribute> private void addInterfaceNamesTo(ITypeBinding typeBinding, HashSet<String> names) { for (ITypeBinding interfaceBinding : typeBinding.getInterfaces()) { - names.add(interfaceBinding.getTypeDeclaration().getQualifiedName()); + names.add(interfaceBinding.getTypeDeclaration().getErasure().getQualifiedName()); this.addInterfaceNamesTo(interfaceBinding, names); // recurse } } @@ -363,7 +363,7 @@ abstract class SourceAttribute<A extends Attribute> if (typeBinding == null) { return Collections.emptyList(); } - + ITypeBinding[] typeArguments = typeBinding.getTypeArguments(); if (typeArguments.length == 0) { return Collections.emptyList(); |