Upgrade NullAway to 0.12.3

This commit also leverages the new OnlyNullMarked flag.

See gh-28797
This commit is contained in:
Sébastien Deleuze 2025-01-07 09:49:33 +01:00
parent 284f6057cc
commit 2697aea15f
1 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,7 @@ dependencies {
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37'
jmh 'net.sf.jopt-simple:jopt-simple'
errorprone 'com.uber.nullaway:nullaway:0.12.2'
errorprone 'com.uber.nullaway:nullaway:0.12.3'
errorprone 'com.google.errorprone:error_prone_core:2.35.1'
}
@ -116,9 +116,8 @@ components.java.withVariantsFromConfiguration(configurations.testFixturesRuntime
tasks.withType(JavaCompile).configureEach {
options.errorprone {
disableAllChecks = true
option("NullAway:OnlyNullMarked", "true")
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
// TODO Replace by proper flag when supported, see https://github.com/uber/NullAway/issues/574
option("NullAway:AnnotatedPackages", "")
}
}
tasks.compileJava {