On 05/04/2019 10:24, Andrew Dinn wrote:
:
Sorry, I am afraid I don't understand what you mean by "The package
description has a catch-all for NPE so you need to specify that in each
method."
What is the "package description"?
package-info.java has the package description. Near the end you should
see the statement "Unless otherwise noted, passing a null ...". There
are several areas of API that have statements like this to avoid
cluttering the javadoc of every constructor/method that can throw NPE
when invokes with a null argument. So this is why you don't see "@throws
NullPointerException" here.
-Alan