r/java • u/idontlikegudeg • 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
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.