• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / NullAway / #810
93%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2022 07:28PM UTC
Jobs 1
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#810

push

github-actions

web-flow
Get NullAway building with NullAway (#560)

With this change, running `./gradlew build` on JDK 11 will also run the task `:nullaway:buildWithNullAway` to ensure that NullAway (i.e., the current version of NullAway being built) reports no errors on NullAway itself.  Some notes on the changes:
* We build with the `CheckOptionalEmptiness`, `AcknowledgeRestrictiveAnnotations`, and `CastToNonNullMethod` options provided, to maximize error discovery.
* Since we use `AcknowledgeRestrictiveAnnotations`, changing annotations in different versions of Error Prone can impact what warnings NullAway reports on itself.  Hence, we only run the `buildWithNullAway` task if we are building against the latest version of Error Prone we have tested with (currently 2.11.0).  Further, building with this latest Error Prone version is now the default, to catch NullAway-on-NullAway issues more easily on local builds.  All CI build configs (including testing with older EP versions) remain the same.

* I don't think the code changes fix any serious bugs, but they do clarify the design in places (e.g. properly marking fields / returns as `@Nullable`).  I had to add several `castToNonNull` calls.  Most were for either (1) reading out of a map where we know the key is present somehow or (2) getting the enclosing class symbol for some `Tree`, in various places where we know it will not return `null`.

4784 of 5188 relevant lines covered (92.21%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #810.1 24 Mar 2022 07:28PM UTC 0
92.21
Source Files on build #810
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #810
  • 4136de7a on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc