Skip to content

Commit

Permalink
Fix for Java 21, 22
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Aug 6, 2024
1 parent 2aca27c commit 459848f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ protected int expectedWarnings() {
} else if (javaVersion.contains("18")
|| javaVersion.contains("19")
|| javaVersion.contains("20")
|| javaVersion.contains("21")
|| javaVersion.contains("22")
|| javaVersion.contains("23")) {
return 5;
} else if (javaVersion.contains("21") || javaVersion.contains("22")) {
return 6;
}
return 2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ public class JavaxToolsCompilerTest extends AbstractJavacCompilerTest {
@Override
protected int expectedWarnings() {
String javaVersion = getJavaVersion();
if (javaVersion.contains("21") || javaVersion.contains("22")) {
return 8;
} else if (javaVersion.contains("23")) {
if (javaVersion.contains("21") || javaVersion.contains("22") || javaVersion.contains("23")) {
return 1;
} else {
return super.expectedWarnings();
Expand Down

0 comments on commit 459848f

Please sign in to comment.