Skip to content

Commit 2697aea

Browse files
committed
Upgrade NullAway to 0.12.3
This commit also leverages the new OnlyNullMarked flag. See spring-projectsgh-28797
1 parent 284f605 commit 2697aea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gradle/spring-module.gradle

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
1414
jmh 'org.openjdk.jmh:jmh-generator-bytecode:1.37'
1515
jmh 'net.sf.jopt-simple:jopt-simple'
16-
errorprone 'com.uber.nullaway:nullaway:0.12.2'
16+
errorprone 'com.uber.nullaway:nullaway:0.12.3'
1717
errorprone 'com.google.errorprone:error_prone_core:2.35.1'
1818
}
1919

@@ -116,9 +116,8 @@ components.java.withVariantsFromConfiguration(configurations.testFixturesRuntime
116116
tasks.withType(JavaCompile).configureEach {
117117
options.errorprone {
118118
disableAllChecks = true
119-
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
120-
// TODO Replace by proper flag when supported, see https://github.com/uber/NullAway/issues/574
121-
option("NullAway:AnnotatedPackages", "")
119+
option("NullAway:OnlyNullMarked", "true")
120+
option("NullAway:CustomContractAnnotations", "org.springframework.lang.Contract")
122121
}
123122
}
124123
tasks.compileJava {

0 commit comments

Comments
 (0)