Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v6]

2023-01-25 Thread Justin Lu
On Wed, 25 Jan 2023 00:50:04 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Minor punctuation > > src/java.base/share/classes/java/util/TimeZone.java line 297: > >> 295: * the time zone object.

Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v6]

2023-01-24 Thread Naoto Sato
On Wed, 25 Jan 2023 00:31:26 GMT, Justin Lu wrote: >> When their input is null, the following methods in java.util.TimeZone throw >> a NullPointerException: >> >> TimeZone.getTimeZone(String ID) >> TimeZone.setID(String ID) >> TimeZone.inDaylightTime(Date date) >> >> For example, >> >> >> S

Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v6]

2023-01-24 Thread Justin Lu
> When their input is null, the following methods in java.util.TimeZone throw a > NullPointerException: > > TimeZone.getTimeZone(String ID) > TimeZone.setID(String ID) > TimeZone.inDaylightTime(Date date) > > For example, > > > String someID = null; > TimeZone tz1 = TimeZone.getTimeZone(someI