Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Nov 3, 2023
1 parent 3d19e64 commit 66b09ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.Recipe;
import org.openrewrite.test.AdHocRecipe;
import org.openrewrite.test.RewriteTest;

import java.util.List;

import static org.openrewrite.java.Assertions.java;
import static org.openrewrite.test.RewriteTest.toRecipe;

@SuppressWarnings({"ResultOfMethodCallIgnored", "CodeBlock2Expr", "RedundantThrows", "Convert2MethodRef", "EmptyTryBlock", "CatchMayIgnoreException", "EmptyFinallyBlock", "StringBufferReplaceableByString", "UnnecessaryLocalVariable"})
public class RemoveMethodInvocationsVisitorTest implements RewriteTest {

private Recipe createRemoveMethodsRecipe(String... methods) {
return new AdHocRecipe(null, null, null, () -> new RemoveMethodInvocationsVisitor(List.of(methods)), null, null, null);
return toRecipe(() -> new RemoveMethodInvocationsVisitor(List.of(methods)));
}

@DocumentExample
Expand Down

0 comments on commit 66b09ab

Please sign in to comment.