RFR: 8177418: TimeZone.getTimeZone(String id) throws NullPointerException when id is null
Lance Andersen
lancea at openjdk.org
Sat Jan 7 11:34:50 UTC 2023
On Fri, 6 Jan 2023 22:38:13 GMT, Justin Lu <duke at openjdk.org> wrote:
> When ID is null, TimeZone.getTimeZone(String ID) throws a NullPointerException.
>
> For example,
>
>
> String someID = null;
> TimeZone tz1 = TimeZone.getTimeZone(someID);
> ```
>
> throws a `NullPointerException`
>
> This change updates the documentation to make this apparent.
Hi Justin,
This will require a CSR due to the change in the javadoc. Otherwise looks fine. Once you have your draft ready, lets us know and we can review it for you so you can get it finalized
-------------
PR: https://git.openjdk.org/jdk/pull/11888
More information about the core-libs-dev
mailing list