Skip to content

Commit 76ef497

Browse files
committed
Disable NullAway on OpenJ9
1 parent ed08fc3 commit 76ef497

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cross-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
jdk:
25-
- version: 25
25+
- version: 21
2626
type: ea
2727
name: "OpenJDK ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }})"
2828
runs-on: ubuntu-latest

gradle/plugins/common/src/main/kotlin/junitbuild.java-nullability-conventions.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ tasks.withType<JavaCompile>().configureEach {
2121
options.errorprone {
2222
disableAllChecks = true
2323
nullaway {
24-
enable()
24+
if (java.toolchain.implementation.orNull != JvmImplementation.J9) {
25+
enable()
26+
}
2527
isJSpecifyMode = true
2628
}
2729
}

0 commit comments

Comments
 (0)