Skip to content

Commit 9f57f5e

Browse files
committed
review comment fixed
1 parent 8993045 commit 9f57f5e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/mastercard/developer/encryption/JsonParser.java

-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ static Object readJsonObject(DocumentContext context, String jsonPathString) {
8787
return jsonElement;
8888
}
8989

90-
// Upgrading the json-path lib from 2.6.0 to 2.9.0 introduced a bug where when you
91-
// try to delete a non-existent key in a DocumentContext with the SUPPRESS_EXCEPTIONS flag,
92-
// it would throw a ClassCastException. This method is a workaround for the issue.
93-
// Once this issue is fixed this method's usages can be replaced with a simple DocumentContext.delete(path).
94-
// Track the issue here https://github.com/json-path/JsonPath/issues/870
9590
static void deleteIfExists(DocumentContext context, String jsonPathString){
9691
Object value = context.read(jsonPathString);
9792
if(value != null){

0 commit comments

Comments
 (0)