r/java • • Jul 05 '26

Cabe 4.4.0 released

Cabe automatically adds null-checks to your classes based on JSpecify annotations.

The new version fixes compatibility issues with the configuration cache in Gradle 9.6+.

For details, check the documentation and the project GitHub page.

13 Upvotes

5 comments sorted by

View all comments

Show parent comment

3

u/idontlikegudeg Jul 05 '26

Yes, right, when nullability cannot be determined, nullability is assumed (the exact rules are as defined in the JSpecify spec).

In my own projects, I usually declare the whole module as NullMarked, it saves a lot of boilerplate code á là `Objects.requireNonNull(paremeter), 'parameter')` at the start of every method.

2

u/False-Call7937 Jul 05 '26

Ahh module-level NullMarked is smart, still leaves you guessing when you pull in some random lib that returns null all over the place though.