explicit dropping caches when adding (expr) to nodes

This commit is contained in:
Maxim Mossienko
2005-03-05 16:07:24 +03:00
parent f14b88c8e4
commit 6ca43b047b
@@ -66,7 +66,6 @@ public class SourceUtil implements Constants {
TreeUtil.addChildren(parenthExpr, dummyExpr);
TreeUtil.addChildren(parenthExpr, Factory.createLeafElement(JavaTokenType.RPARENTH, new char[]{')'}, 0, 1, -1, charTableByTree));
try {
CodeStyleManager codeStyleManager = manager.getCodeStyleManager();
parenthExpr =
@@ -81,6 +80,8 @@ public class SourceUtil implements Constants {
TreeUtil.replaceWithList(dummyExpr, newChild);
newChild = parenthExpr;
// TODO remove explicit caches drop since this should be ok iff we will use ChangeUtil for the modification
TreeUtil.clearCaches(newChild);
return newChild;
}