diff --git a/src/main/java/org/openrewrite/javascript/internal/JavaScriptPrinter.java b/src/main/java/org/openrewrite/javascript/internal/JavaScriptPrinter.java index f8c6b380..ae158a7b 100644 --- a/src/main/java/org/openrewrite/javascript/internal/JavaScriptPrinter.java +++ b/src/main/java/org/openrewrite/javascript/internal/JavaScriptPrinter.java @@ -550,7 +550,7 @@ public J visitMethodInvocation(J.MethodInvocation method, PrintOutputCapture

@Override public void visitModifier(J.Modifier mod, PrintOutputCapture

p) { visit(mod.getAnnotations(), p); - String keyword = ""; + String keyword; switch (mod.getType()) { case Default: keyword = "default"; @@ -844,7 +844,7 @@ public Space visitSpace(Space space, Space.Location loc, PrintOutputCapture

p } @Override - public Markers visitMarkers(Markers markers, PrintOutputCapture

pPrintOutputCapture) { + public Markers visitMarkers(@Nullable Markers markers, PrintOutputCapture

pPrintOutputCapture) { return delegate.visitMarkers(markers, pPrintOutputCapture); } } diff --git a/src/main/java/org/openrewrite/javascript/tree/JS.java b/src/main/java/org/openrewrite/javascript/tree/JS.java index ce4bdfa7..70726376 100644 --- a/src/main/java/org/openrewrite/javascript/tree/JS.java +++ b/src/main/java/org/openrewrite/javascript/tree/JS.java @@ -425,7 +425,6 @@ public CoordinateBuilder.Expression getCoordinates() { } } - @SuppressWarnings("unchecked") @FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE) @EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true) @Data @@ -560,6 +559,7 @@ public Export withInitializer(@Nullable JLeftPadded initializer) { } } + @Getter @SuppressWarnings("unchecked") @FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE) @EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true) @@ -567,11 +567,9 @@ public Export withInitializer(@Nullable JLeftPadded initializer) { final class ExpressionStatement implements JS, Expression, Statement { @With - @Getter UUID id; @With - @Getter Expression expression; @Override @@ -1275,6 +1273,7 @@ public ObjectBindingDeclarations withInitializer(@Nullable JLeftPadded