Skip to content

Commit

Permalink
Enable contract checking when building NullAway (#802)
Browse files Browse the repository at this point in the history
I think we only have one `@Contract` annotation in the NullAway code
base right now, but anyway this will give us a bit more test coverage of
contract checking.
  • Loading branch information
msridhar committed Aug 14, 2023
1 parent 01ee4d7 commit 91186bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nullaway/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ tasks.register('buildWithNullAway', JavaCompile) {
option("NullAway:CastToNonNullMethod", "com.uber.nullaway.NullabilityUtil.castToNonNull")
option("NullAway:CheckOptionalEmptiness")
option("NullAway:AcknowledgeRestrictiveAnnotations")
option("NullAway:CheckContracts")
}
// Make sure the jar has already been built
dependsOn 'jar'
Expand Down

0 comments on commit 91186bd

Please sign in to comment.