From 73117fef0b1e04a6739154377d475f0aa28856c5 Mon Sep 17 00:00:00 2001 From: Kostiantyn Severynov Date: Mon, 18 Mar 2024 21:06:20 +0200 Subject: [PATCH] fix compatibility issue for jdk 21 --- .../java/com/bazaarvoice/jolt/common/tree/WalkedPath.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /**