This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
@Override
public Void scan(Tree tree, Void p) {
if (changes.containsKey(tree) || docChanges.containsKey(tree)) {
boolean clearCurrentParent = false;
if (currentParent == null) {
clearCurrentParent = true;
currentParent = getParentPath(getCurrentPath(), tree);
if (currentParent.getParentPath() != null && currentParent.getParentPath().getLeaf().getKind() == Kind.COMPILATION_UNIT) {
currentParent = currentParent.getParentPath();
} else {
super.scan(tree, p);
}
if (clearCurrentParent) {
currentParent = null;
if (currentParent != null && currentParent.getLeaf() == tree) {
return null;