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

It's basically like this: code that can be directly called from other classes is part of the public API, otherwise public. Module descriptors are not checked:

- A class is treated as public API if it is public itself or if it inherits from a public superclass (excluding Object).

- A method is considered part of the public API only when both conditions are true: it belongs to a class that is treated as public API as explained above, and the method itself is public.

Thank you for the input, I will update the documentation later.