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

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

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2022 03:33AM UTC
Files 73
Run time 2s
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 Sep 2022 03:33AM UTC coverage: 92.561% (+0.1%) from 92.462%
#932.1

push

github-actions

web-flow
[JSpecify] Support @NullMarked on methods. (#644)

This adds support for adding `@NullMarked` to methods, in addition to classes, 
which will be supported by the version of `@NullMarked` shipping with JSpecify 0.3.0.

Some relevant changes needed to accomplish this:

- We rename `ClassAnnotationInfo` to `CodeAnnotationInfo`. It still operates as a cache 
over classes and their annotations, but now each cache entry has a map with information 
about the null-markedness of its methods.
- We add a `checkForMethodNullMarkedness(...)` call to the beginning of `matchMethod(...)`, 
before we check for `withinAnnotatedCode(...)`. If we detect a `@NullMarked` annotation 
here, while otherwise looking at unmarked code, we switch our scan of the current top-level 
class to our slower `PARTIALLY_MARKED` scan mode.
- We add comprehensive tests to  `NullAwayJSpecifyTests.java` and make fixes in various 
places accordingly. An important change to note is that we need to sometimes compute 
`EnclosingEnvironmentNullness` information for anonymous or local classes that are 
otherwise unmarked but have a `@NullMarked` method, and we must do this inside
`checkForMethodNullMarkedness(...)` (since we don't know about the marked methods 
while processing `matchClass(...)`)

4890 of 5283 relevant lines covered (92.56%)

0.93 hits per line

Source Files on job #932.1
  • Tree
  • List 0
  • Changed 7
  • Source Changed 6
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 932
  • 3f6e0a57 on github
  • Prev Job for on master (##930.1)
  • Next Job for on master (##935.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