kiwiproject / kiwi

A set of Java utilities that we could not find in Guava or Apache Commons...or we just felt like having our own version.
MIT License
12 stars 1 forks source link

Add "not null" annotations to KiwiResources#verifyExistence methods #1167

Closed sleberknight closed 3 months ago

sleberknight commented 4 months ago

Add an annotation to each (non-void) verifyExistence method in KiwiResources to tell callers and static code analysis tools that they should never return null.

This means we should add a direct dependency (possible with provided scope) on the annotation library. Since kiwi already is using Checker's @NonNull and @Nullable annotations, we should use @NonNull and avoid adding another dependency.