RFR: 8299865: Unnecessary NullPointerException catch in java.util.TimeZone#setDefaultZone
Andrey Turbanov
aturbanov at openjdk.org
Fri Jan 13 10:10:12 UTC 2023
On Wed, 11 Jan 2023 17:12:39 GMT, Justin Lu <duke at openjdk.org> wrote:
> In [JDK-4368016](https://bugs.openjdk.org/browse/JDK-4368016) **TimeZone.setDefaultZone()** was updated so that
>
> _TimeZone.java [will] not cause an NPE. If getSystemTimeZoneID()
> can't determine the time zone from java.home and user.region properties,
> it returns GMT._
>
> This change updates the code to get rid of the no longer needed Try Catch
Marked as reviewed by aturbanov (Committer).
-------------
PR: https://git.openjdk.org/jdk/pull/11951
More information about the core-libs-dev
mailing list