1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

TypeHierarchy: fixes a bug using working set filter.

This commit is contained in:
Markus Schorn 2007-01-30 09:07:29 +00:00
parent 246e84345a
commit 9ffa39148a

View file

@ -96,18 +96,10 @@ public class THNode implements IAdaptable {
}
public void addChild(THNode childNode) {
switch(fChildren.size()) {
case 0:
fChildren= Collections.singletonList(childNode);
break;
case 1:
fChildren= new ArrayList(fChildren);
fChildren.add(childNode);
break;
default:
fChildren.add(childNode);
break;
if (fChildren.isEmpty()) {
fChildren= new ArrayList();
}
fChildren.add(childNode);
}
public boolean hasChildren() {