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

uber / NullAway / #902 / 1
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 05 Aug 2022 05:02PM UTC
Files 73
Run time 3s
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

05 Aug 2022 05:02PM UTC coverage: 92.528% (+0.04%) from 92.488%
#902.1

push

github-actions

web-flow
Add library model for Guava's Closer.register (#632)

This is a follow up to #628 and our support for `@ParametricNullness` in NullAway 0.9.9.
It turns out that `com.google.common.io.Closer` annotates it's `register` method as:

```
  @CanIgnoreReturnValue
  @ParametricNullness
  public <C extends @Nullable Closeable> C register(@ParametricNullness C closeable) {...}
```

Where the return is only really `@Nullable` if the argument is `@Nullable` (it is the same reference).

This PR adds a Library Model for this method, which is equivalent to adding the `@Contract("null -> null")`
annotation to it.

Note that, in order for this model to be helpful, `AcknowledgeLibraryModelsOfAnnotatedCode` 
must be set, which would seem to argue for making that the default.

4805 of 5193 relevant lines covered (92.53%)

0.93 hits per line

Source Files on job #902.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 902
  • a8051cd9 on github
  • Prev Job for on master (##900.1)
  • Next Job for on master (##906.1)
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