diff --git a/jolt-core/src/main/java/com/bazaarvoice/jolt/common/tree/WalkedPath.java b/jolt-core/src/main/java/com/bazaarvoice/jolt/common/tree/WalkedPath.java index 6a2971e6..5a405526 100644 --- a/jolt-core/src/main/java/com/bazaarvoice/jolt/common/tree/WalkedPath.java +++ b/jolt-core/src/main/java/com/bazaarvoice/jolt/common/tree/WalkedPath.java @@ -54,8 +54,8 @@ public boolean add( Object treeRef, MatchedElement matchedElement ) { return super.add( new PathStep( treeRef, matchedElement ) ); } - public void removeLast() { - remove(size() - 1); + public PathStep removeLast() { + return remove(size() - 1); } /**