Skip to content

Commit

Permalink
Performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglingsong committed May 17, 2018
1 parent 486e1b8 commit 8049eae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsurfer-core/src/main/java/org/jsfr/json/path/JsonPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public boolean match(JsonPath jsonPath) {
if (!get(pointer1).match(jsonPath.get(pointer2))) {
return false;
}
pointer1--;
pointer2--;
while (pointer1 >= 0) {
if (!(pointer2 >= 0)) {
return false;
Expand Down

0 comments on commit 8049eae

Please sign in to comment.