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

uber / NullAway / #1104
93%

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

pending completion
#1104

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

Jobs
ID Job ID Ran Files Coverage
1 #1104.1 21 Jun 2023 10:26PM UTC 0
92.76
Source Files on build #1104
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1104
  • 0466a02c 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