Properties::setProperty should document NPE?
Paul Benedict
pbenedict at apache.org
Sun Nov 9 06:01:06 UTC 2014
I accidentally passed a null to setProperty() and got an NPE. Okay. The
javadoc says this method relies on Hashtable, which, in turn, is documented
to throw an NPE when put() key/value is null. So, since setProperty()
bubbles up the exception, I think this method should gain a @throws tag to
make the exception explicit.
Worth creating a JIRA for this? (I don't have a JIRA account)
Cheers,
Paul
More information about the core-libs-dev
mailing list