diff options
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java')
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java index 8400ba9a..a1f175cd 100644 --- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java +++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/hierarchy/RegionBasedTypeHierarchy.java @@ -133,7 +133,7 @@ private boolean pruneDeadBranches(IType type) { TypeVector subtypes = (TypeVector)this.typeToSubtypes.get(type); if (subtypes == null) return true; pruneDeadBranches(subtypes.copy().elements()); - subtypes = (TypeVector)this.typeToSubtypes.get(type); + subtypes = (TypeVector)this.typeToSubtypes.get(type.getDisplayName()); return (subtypes == null || subtypes.size == 0); } private void pruneDeadBranches(IType[] types) { @@ -150,7 +150,7 @@ private void pruneDeadBranches(IType[] types) { */ protected void removeType(IType type) { IType[] subtypes = this.getSubclasses(type); - this.typeToSubtypes.remove(type); + this.typeToSubtypes.remove(type.getDisplayName()); if (subtypes != null) { for (int i= 0; i < subtypes.length; i++) { this.removeType(subtypes[i]); @@ -158,7 +158,7 @@ protected void removeType(IType type) { } IType superclass = (IType)this.classToSuperclass.remove(type); if (superclass != null) { - TypeVector types = (TypeVector)this.typeToSubtypes.get(superclass); + TypeVector types = (TypeVector)this.typeToSubtypes.get(superclass.getDisplayName()); if (types != null) types.remove(type); } } |