RFR: 8299865: Unnecessary NullPointerException catch in java.util.TimeZone#setDefaultZone

Iris Clark iris at openjdk.org
Thu Jan 12 19:52:19 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 iris (Reviewer).

-------------

PR: https://git.openjdk.org/jdk/pull/11951


More information about the core-libs-dev mailing list