Upgrade NullAway to 0.12.3
This commit also leverages the new OnlyNullMarked flag. See gh-28797
This commit is contained in:
parent
284f6057cc
commit
2697aea15f
|
@ -13,7 +13,7 @@ dependencies {
|
||||||
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
|
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
|
||||||
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37'
|
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37'
|
||||||
jmh 'net.sf.jopt-simple:jopt-simple'
|
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'
|
errorprone 'com.google.errorprone:error_prone_core:2.35.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,9 +116,8 @@ components.java.withVariantsFromConfiguration(configurations.testFixturesRuntime
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.errorprone {
|
options.errorprone {
|
||||||
disableAllChecks = true
|
disableAllChecks = true
|
||||||
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
|
option("NullAway:OnlyNullMarked", "true")
|
||||||
// TODO Replace by proper flag when supported, see https://github.com/uber/NullAway/issues/574
|
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
|
||||||
option("NullAway:AnnotatedPackages", "")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
|
Loading…
Reference in New Issue