Skip to content

Commit

Permalink
fix bug for YangDataImpl.java
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyfeng committed Aug 13, 2024
1 parent 7696f8e commit 38a4645
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@ public AbsolutePath getPath() {
return parentPath;
}
AbsolutePath thisPath = new AbsolutePath();
for(XPathStep step:parentPath.getSteps()){
thisPath.addStep(step);
if(!parentPath.isRootPath()){
for(XPathStep step:parentPath.getSteps()){
thisPath.addStep(step);
}
}

thisPath.addStep(translate2Step((YangData<? extends DataNode>) this));
this.path = thisPath;
return thisPath;
Expand Down

0 comments on commit 38a4645

Please sign in to comment.