PropertyElementTest fixed

This commit is contained in:
Olesya Smirnova
2005-02-09 22:46:06 +03:00
parent 09c8414616
commit 18ee8dabb9
@@ -179,7 +179,7 @@ public abstract class CachingChildrenTreeNode <Value> extends AbstractTreeNode<V
final int newIndex = getIndexOfPointerToTheSameValue(oldInstance);
if (newIndex >= 0) {
final CachingChildrenTreeNode newInstance = myChildren.get(newIndex);
newInstance.copyFromNewInstance(oldInstance);
oldInstance.copyFromNewInstance(newInstance);
oldInstance.setValue(newInstance.getValue());
myChildren.set(newIndex, oldInstance);
}