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

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

Build:
DEFAULT BRANCH: master
Ran 21 Jun 2023 10:26PM UTC
Files 79
Run time 1s
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

21 Jun 2023 10:26PM UTC coverage: 92.756% (+0.06%) from 92.701%
#1104.1

push

github-actions

web-flow
Added support for Apache Validate (#769)

Added support for Apache Validate:
https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/Validate.java

We recently started to use these Apache methods to validate some data
but quickly found out that NullAway doesn't support them since they are
not properly annotated. Here's a fix that adds support for these methods
along with test cases for each method.

I noticed that Apache library generally has different validation methods
for String, Map and Collection, but they all end up with the same
signature when analyzed by NullAway (probably because these methods use
generics).
Examples of such methods:
```java
public static <T extends Collection<?>> T notEmpty(final T collection) {
}

public static <T extends Map<?, ?>> T notEmpty(final T map) {
}

public static <T extends CharSequence> T notEmpty(final T chars) {
}
```

But I decided to add a separate unit test for each of these methods in
case NullAway will change how it generates method's signature in the
future.

5583 of 6019 relevant lines covered (92.76%)

0.93 hits per line

Source Files on job #1104.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1104
  • 0466a02c on github
  • Prev Job for on master (##1102.1)
  • Next Job for on master (##1106.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