common-annotations-api icon indicating copy to clipboard operation
common-annotations-api copied to clipboard

missing ParametersAreNonnullByDefault

Open Volodymyr-Maiboroda-Imprivata opened this issue 1 year ago • 1 comments

Hi, is there any reason why the annotation javax.annotation.ParametersAreNonnullByDefault wasn't migrated to jakarta.annotation-api?

Jakarta Annotations is not an API for static code analysis.

From the specification itself:

It is the intention of this specification to define a small set of common annotations that will be available for use within other specifications. It is hoped that this will help to avoid unnecessary redundancy or duplication between annotations defined in different Jakarta EE specifications. This would allow us to have the common annotations all in one place and let the technologies refer to this specification rather than have them specified in multiple specifications. This way all technologies can use the same version of the annotations and there will be consistency in the annotations used across the platforms.

No Jakarta EE specification proposes to make use of the incredibly pig-ugly annotation @ParametersAreNonnullByDefault 🤮, so it does not belong here.

gavinking avatar Jul 22 '25 07:07 gavinking