Browse Source

Upgrade NullAway to 0.12.3

This commit also leverages the new OnlyNullMarked flag.

See gh-28797
pull/34207/head
Sébastien Deleuze 11 months ago
parent
commit
2697aea15f
  1. 7
      gradle/spring-module.gradle

7
gradle/spring-module.gradle

@ -13,7 +13,7 @@ dependencies { @@ -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 @@ -116,9 +116,8 @@ components.java.withVariantsFromConfiguration(configurations.testFixturesRuntime
tasks.withType(JavaCompile).configureEach {
options.errorprone {
disableAllChecks = 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", "")
option("NullAway:OnlyNullMarked", "true")
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
}
}
tasks.compileJava {

Loading…
Cancel
Save