Skip to content

Commit a1f1dd3

Browse files
committed
Disable NullAway on OpenJ9
1 parent c141846 commit a1f1dd3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cross-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
jdk: [ 24 ]
72+
jdk: [ 21 ]
7373
name: "OpenJ9 ${{ matrix.jdk }}"
7474
runs-on: ubuntu-latest
7575
steps:

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ tasks.withType<JavaCompile>().configureEach {
2121
options.errorprone {
2222
disableAllChecks = true
2323
nullaway {
24-
enable()
24+
if (java.toolchain.implementation.orNull == JvmImplementation.J9) {
25+
disable()
26+
} else {
27+
enable()
28+
}
2529
isJSpecifyMode = true
2630
}
2731
}

0 commit comments

Comments
 (0)