Don't call contains() on the parent node in getElementName() unless necessary,
i.e. unless we actually think we are accessed by access name. Some minor formatting fixes.
This commit is contained in:
parent
672ac0e7c1
commit
a4e36e6ae3
1 changed files with 5 additions and 5 deletions
|
@ -512,7 +512,7 @@ public final class Node implements INode, Serializable {
|
||||||
} else {
|
} else {
|
||||||
anonymous = true;
|
anonymous = true;
|
||||||
}
|
}
|
||||||
} else if (p.contains (this) > -1) {
|
} else if (!anonymous && p.contains (this) > -1) {
|
||||||
anonymous = true;
|
anonymous = true;
|
||||||
}
|
}
|
||||||
} catch (Exception ignore) {
|
} catch (Exception ignore) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue