diff --git a/rewrite-json/src/main/java/org/openrewrite/json/AddKeyValue.java b/rewrite-json/src/main/java/org/openrewrite/json/AddKeyValue.java index 2fbde312604d..359f52e56d89 100644 --- a/rewrite-json/src/main/java/org/openrewrite/json/AddKeyValue.java +++ b/rewrite-json/src/main/java/org/openrewrite/json/AddKeyValue.java @@ -76,8 +76,8 @@ public TreeVisitor getVisitor() { return new JsonIsoVisitor() { @Override - public Json.JsonObject visitObject(Json.JsonObject obj, ExecutionContext context) { - obj = super.visitObject(obj, context); + public Json.JsonObject visitObject(Json.JsonObject obj, ExecutionContext ctx) { + obj = super.visitObject(obj, ctx); if (pathMatcher.matches(getCursor()) && objectDoesNotContainKey(obj, key)) {