diff --git a/src/main/java/org/openrewrite/kotlin/Assertions.java b/src/main/java/org/openrewrite/kotlin/Assertions.java index 00df021da..52991ae45 100644 --- a/src/main/java/org/openrewrite/kotlin/Assertions.java +++ b/src/main/java/org/openrewrite/kotlin/Assertions.java @@ -17,7 +17,6 @@ import org.intellij.lang.annotations.Language; -import org.jetbrains.annotations.NotNull; import org.openrewrite.*; import org.openrewrite.internal.ThrowingConsumer; import org.openrewrite.internal.lang.Nullable; @@ -248,7 +247,6 @@ public Space visitSpace(Space space, KSpace.Location loc, Integer integer) { return next(space); } - @NotNull private Space next(Space space) { if (!space.getComments().isEmpty()) { return space; diff --git a/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java b/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java index 871abc181..d5f26f040 100644 --- a/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java +++ b/src/main/java/org/openrewrite/kotlin/internal/PsiTreePrinter.java @@ -17,7 +17,6 @@ import lombok.AllArgsConstructor; import lombok.Data; -import org.jetbrains.annotations.NotNull; import org.jetbrains.kotlin.KtFakeSourceElement; import org.jetbrains.kotlin.KtRealPsiSourceElement; import org.jetbrains.kotlin.KtSourceElement; @@ -133,7 +132,7 @@ public static String printFirFile(FirFile file) { TreePrinterContext context = new TreePrinterContext(lines, 1); new FirDefaultVisitor() { @Override - public Void visitElement(@NotNull FirElement firElement, TreePrinterContext ctx) { + public Void visitElement(FirElement firElement, TreePrinterContext ctx) { StringBuilder line = new StringBuilder(); line.append(leftPadding(ctx.getDepth())) .append(printFirElement(firElement)); @@ -164,7 +163,7 @@ public static String printFirTree(FirElement firElement) { TreePrinterContext context = new TreePrinterContext(lines, 1); new FirDefaultVisitor() { @Override - public Void visitElement(@NotNull FirElement fir, TreePrinterContext ctx) { + public Void visitElement(FirElement fir, TreePrinterContext ctx) { StringBuilder line = new StringBuilder(); line.append(leftPadding(ctx.getDepth())) .append(printFirElement(fir)); @@ -190,7 +189,7 @@ public Void visitElement(@NotNull FirElement fir, TreePrinterContext ctx) { } public static class IrPrinter { - public void printElement(@NotNull IrElement element, @NotNull PsiTreePrinter.TreePrinterContext ctx) { + public void printElement(IrElement element, PsiTreePrinter.TreePrinterContext ctx) { StringBuilder line = new StringBuilder(); line.append(leftPadding(ctx.getDepth())) .append(printIrElement(element));