Skip to content

Commit

Permalink
Upgrade NullAway to 0.12.3
Browse files Browse the repository at this point in the history
This commit also leverages the new OnlyNullMarked flag.

See spring-projectsgh-28797
  • Loading branch information
sdeleuze committed Jan 7, 2025
1 parent 68833e4 commit f514639
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gradle/spring-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f514639

Please sign in to comment.