[jbosstools-commits] JBoss Tools SVN: r43674 - trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/java.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Sep 13 20:33:01 EDT 2012
Author: scabanovich
Date: 2012-09-13 20:33:00 -0400 (Thu, 13 Sep 2012)
New Revision: 43674
Modified:
trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/java/ParametedType.java
Log:
JBIDE-12446
https://issues.jboss.org/browse/JBIDE-12446
Modified: trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/java/ParametedType.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/java/ParametedType.java 2012-09-14 00:17:30 UTC (rev 43673)
+++ trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/java/ParametedType.java 2012-09-14 00:33:00 UTC (rev 43674)
@@ -46,7 +46,7 @@
boolean inheritanceIsBuilt = false;
protected ParametedType superType = null;
- protected Set<IParametedType> inheritedTypes = new HashSet<IParametedType>();
+ protected Collection<IParametedType> inheritedTypes = new ArrayList<IParametedType>(1);
Set<IParametedType> allInheritedTypes = null;
public static interface PositionProvider {
@@ -178,7 +178,7 @@
void buildInheritance() {
if(type == null) return;
- Set<IParametedType> inheritedTypes = new HashSet<IParametedType>();
+ Collection<IParametedType> inheritedTypes = new ArrayList<IParametedType>(2);
try {
if(!type.isInterface() && !type.isAnnotation()) {
String sc = type.getSuperclassTypeSignature();
@@ -265,7 +265,7 @@
return superType;
}
- public Set<IParametedType> getInheritedTypes() {
+ public Collection<IParametedType> getInheritedTypes() {
if(!inheritanceIsBuilt) {
buildInheritance();
}
@@ -359,7 +359,7 @@
if(!processed.contains(key)) {
processed.add(key);
types.add(p);
- Set<IParametedType> ts = p.getInheritedTypes();
+ Collection<IParametedType> ts = p.getInheritedTypes();
if(ts != null) for (IParametedType pp: ts) {
buildAllTypes(processed, (ParametedType)pp, types);
}
More information about the jbosstools-commits
mailing list