Javadoc does not specify... Is null allowed in Files.setAttribute() as an attribute value?
Alan Bateman
Alan.Bateman at oracle.com
Mon Dec 8 15:27:59 UTC 2014
On 08/12/2014 15:07, Francis Galiegue wrote:
> :
>
> So, shouldn't NPE be specified as a possible exception in the
> documentation, or is null just not allowed at all, in which case it
> should be mentioned when describing the value parameter?
NPE is specified in the package documentation (general exceptions
section), this was to avoid the noise of adding a @throws NPE to every
method. So assume null is not allow unless it explicitly specified to be
allowed.
-Alan.
More information about the nio-dev
mailing list