Reimplement CheckReturnValue
I understand that JSR 305 cannot be imported directly into this library due to licensing reasons but my library needs the functionality provided by javax.annotations.CheckReturnValue. Please reimplement this functionality as part of this library, ideally with the same class name (because IDEs depend upon it).
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 @CheckReturnValue, so it does not belong here.