diff --git a/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/JavaScriptValidator.java b/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/JavaScriptValidator.java index 621c4e24..b0ab228c 100644 --- a/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/JavaScriptValidator.java +++ b/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/JavaScriptValidator.java @@ -570,7 +570,7 @@ public J.Label visitLabel(J.Label label, P p) { @Override public J.Lambda visitLambda(J.Lambda lambda, P p) { - visitAndValidate(lambda.getParameters(), J.Lambda.Parameters.class, p); + visitAndValidate(lambda.getParameters().getParameters(), J.class, p); visitAndValidate(lambda.getBody(), J.class, p); return lambda; }