From bbd8ce97831f201e9f75b45ba9c4780f321d1640 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Wed, 20 Nov 2024 15:08:30 +0100 Subject: [PATCH] Add two missing visit calls --- .../java/org/openrewrite/javascript/JavaScriptValidator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java index 1cb5b82d..25aac2df 100644 --- a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java +++ b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java @@ -543,11 +543,13 @@ public J.ParameterizedType visitParameterizedType(J.ParameterizedType parameteri @Override public J.Parentheses visitParentheses(J.Parentheses parentheses, P p) { + visitAndValidate(parentheses.getTree(), J.class, p); return parentheses; } @Override public J.ControlParentheses visitControlParentheses(J.ControlParentheses controlParentheses, P p) { + visitAndValidate(controlParentheses.getTree(), J.class, p); return controlParentheses; }