fix SOE (default implementation as an interface constant)

This commit is contained in:
Konstantin Bulenkov
2012-03-19 19:04:37 +01:00
parent 3b6ebc2362
commit 59fe05cb32
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,9 +69,11 @@ public class FilteringTreeStructure extends AbstractTreeStructure {
for (Object d : delegates) {
FilteringNode n = new FilteringNode(node, d);
boolean isDuplicate = myDescriptors2Nodes.containsKey(d);
myDescriptors2Nodes.put(d, n);
nodes.add(n);
addToCache(n, isDuplicate);
if (!isDuplicate) {
myDescriptors2Nodes.put(d, n);
nodes.add(n);
addToCache(n, isDuplicate);
}
}
myNodesCache.put(node, nodes);
}