Skip to content

Commit

Permalink
Do not log compilation warnings in RemoveFinalizerFromZipTest
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 22, 2023
1 parent 564f486 commit 6f9ed51
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.java.JavaParser;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

Expand All @@ -27,7 +28,8 @@ class RemoveFinalizerFromZipTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
spec.recipe(new RemoveFinalizerFromZip()).allSources(s -> s.markers(javaVersion(12)));
spec.recipe(new RemoveFinalizerFromZip()).allSources(s -> s.markers(javaVersion(12)))
.parser(JavaParser.fromJavaVersion().logCompilationWarningsAndErrors(false));
}

@Test
Expand Down Expand Up @@ -258,7 +260,7 @@ void noChangeOnJava11() {
//language=java
rewriteRun(version(java("""
import java.util.zip.ZipFile;
class FooBar extends ZipFile {
FooBar(){
super("");
Expand Down

0 comments on commit 6f9ed51

Please sign in to comment.