[jdk19] RFR: 8289779: Map::replaceAll javadoc has redundant @throws clauses
Alan Bateman
alanb at openjdk.org
Wed Jul 6 06:26:40 UTC 2022
On Wed, 6 Jul 2022 00:32:00 GMT, Stuart Marks <smarks at openjdk.org> wrote:
> Simple javadoc fix of an editorial nature.
src/java.base/share/classes/java/util/Map.java line 745:
> 743: * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
> 744: * @throws NullPointerException if the specified function is null, or if a replacement value is null
> 745: * and this map does not permit null values
This looks okay although I'd probably reflow L744-745 to avoid to keep the line lengths somewhat consistent with the other exceptions.
-------------
PR: https://git.openjdk.org/jdk19/pull/111
More information about the core-libs-dev
mailing list