On Wed, 11 Jan 2023 17:12:39 GMT, Justin Lu <d...@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

This pull request has now been integrated.

Changeset: 500b45e1
Author:    Justin Lu <justin...@oracle.com>
Committer: Naoto Sato <na...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/500b45e12dccc254e2d1cbd9513653ae939ef349
Stats:     7 lines in 1 file changed: 0 ins; 5 del; 2 mod

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

Reviewed-by: lancea, iris, naoto, aturbanov

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

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

Reply via email to