Skip to content

Commit

Permalink
Fix a JDK 16-only test
Browse files Browse the repository at this point in the history
to fix the JDK 16 CI, in preparation for adding it as a presubmit.

PiperOrigin-RevId: 373636083
  • Loading branch information
cushon authored and Error Prone Team committed May 13, 2021
1 parent 62d1bf7 commit 8c6f73c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,14 @@ public void abstractClass_noPrivateConstructor() {
@Test
public void record() {
assumeTrue(RuntimeVersion.isAtLeast16());
testHelper
.addInputLines(
CompilationTestHelper.newInstance(PrivateConstructorForUtilityClass.class, getClass())
.addSourceLines(
"ExampleUtilityClass.java",
"package example;",
"// BUG: Diagnostic contains:",
"public final class ExampleUtilityClass {",
" public record SomeRecord(String value) {}",
"}")
.expectUnchanged()
.doTest();
}
}

0 comments on commit 8c6f73c

Please sign in to comment.