File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/apache/ibatis/parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public XNode newXNode(Node node) {
53
53
54
54
public XNode getParent () {
55
55
Node parent = node .getParentNode ();
56
- if (parent == null || !(parent instanceof Element )) {
56
+ if (!(parent instanceof Element )) {
57
57
return null ;
58
58
} else {
59
59
return new XNode (xpathParser , parent , variables );
@@ -63,7 +63,7 @@ public XNode getParent() {
63
63
public String getPath () {
64
64
StringBuilder builder = new StringBuilder ();
65
65
Node current = node ;
66
- while (current != null && current instanceof Element ) {
66
+ while (current instanceof Element ) {
67
67
if (current != node ) {
68
68
builder .insert (0 , "/" );
69
69
}
@@ -385,4 +385,4 @@ private String getBodyData(Node child) {
385
385
return null ;
386
386
}
387
387
388
- }
388
+ }
You can’t perform that action at this time.
0 commit comments