assertion text

This commit is contained in:
Alexey Kudravtsev
2011-03-25 11:10:01 +03:00
parent d82a84224e
commit eefc0be8ff
2 changed files with 6 additions and 1 deletions
@@ -166,4 +166,9 @@ public class InjectedFileViewProvider extends SingleRootFileViewProvider {
}
}
}
@Override
public String toString() {
return "Injected file '"+getVirtualFile().getName()+"' " + (isValid() ? "" : " invalid") + (physical ? "" : " nonphysical");
}
}
@@ -144,7 +144,7 @@ public abstract class RedBlackTree<K> {
Node<K> e = n;
while (e.getParent() != null) e = e.getParent();
assert e == root; // assert the node belongs to our tree
assert e == root : e; // assert the node belongs to our tree
if (n.getLeft() != null && n.getRight() != null) {
// Copy key/value from predecessor and then delete it instead