RFR: 8263395: Incorrect use of Objects.nonNull
Erik Gahlin
egahlin at openjdk.java.net
Sun Apr 25 10:13:32 UTC 2021
On Sun, 25 Apr 2021 09:39:28 GMT, YassinHajaj <github.com+18174180+YassinHajaj at openjdk.org> wrote:
> Hi @turbanoff ,
>
> Shouldn't the javadoc also be updated to mention a new `@throws` for the `NullPointerException` ?
>
> Regards,
>
> Yassin
This issue has already been fixed by https://github.com/openjdk/jdk/pull/3278 (and should be closed).
When it comes to the NPE, javadoc for the method states "return an event stream, not null" and documentation for the package reads "If a null parameter is used where it is not allowed, a java.lang.NullPointerException is thrown."
-------------
PR: https://git.openjdk.java.net/jdk/pull/2923
More information about the hotspot-jfr-dev
mailing list