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

uber / NullAway / #475
93%

Build:
DEFAULT BRANCH: master
Ran 22 Feb 2021 07:49PM UTC
Jobs 1
Files 42
Run time 12s
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
#475

push

github-actions

web-flow
[ContractHandler] Handle @Contract with empty value. (#450)

The IntelliJ `@Contract` annotation has two fields, `value`
and `pure`. When `pure = true`, `value` can be left empty.
As such, the following is a valid `@Contract` annotation:

```
@Contract(
  pure = true
)
```

See. https://www.jetbrains.com/help/idea/contract-annotations.html

Here, retriving the annotation value produces an empty
string.

However, existing ContractHandler logic expects `value` to
either be `null` or a properly formated string in
IntelliJ contract syntax (`"[...] -> [...]; [...]"`).

Previous to this change, NullAway would report an error
AND crash when seeing the `@Contract` annotation above,
rather than ignore it. This patch fixes this.

3457 of 3878 relevant lines covered (89.14%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #475.1 22 Feb 2021 07:49PM UTC 0
89.14
Source Files on build #475
Detailed source file information is not available for this build.
  • Back to Repo
  • 875cf56f 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