Skip to content

Commit

Permalink
JSpecify: adding com.google.common to annotated packages in build.gra…
Browse files Browse the repository at this point in the history
…dle (#857)

Based on the fixes made in #856 , we should no longer get that exception
after adding com.google.common in the annotated packages when running in
JSpecify mode.
  • Loading branch information
akulk022 committed Nov 9, 2023
1 parent 5aeb32c commit 0141aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nullaway/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ tasks.register('buildWithNullAway', JavaCompile) {
sourceSets.main.compileClasspath)
options.errorprone.enabled = true
options.errorprone {
option("NullAway:AnnotatedPackages", "com.uber,org.checkerframework.nullaway")
option("NullAway:AnnotatedPackages", "com.uber,org.checkerframework.nullaway,com.google.common")
option("NullAway:CastToNonNullMethod", "com.uber.nullaway.NullabilityUtil.castToNonNull")
option("NullAway:CheckOptionalEmptiness")
option("NullAway:AcknowledgeRestrictiveAnnotations")
Expand Down

0 comments on commit 0141aca

Please sign in to comment.