8289872: wrong wording in @param doc for HashMap.newHashMap et. al.

Reviewed-by: chegar, naoto, iris
This commit is contained in:
Stuart Marks 2022-07-08 17:03:48 +00:00
parent 460d879a75
commit eeaf0bbabc
3 changed files with 3 additions and 3 deletions

View file

@ -2571,7 +2571,7 @@ public class HashMap<K,V> extends AbstractMap<K,V>
* without resizing the map.
*
* @param numMappings the expected number of mappings
* @param <K> the type of keys maintained by this map
* @param <K> the type of keys maintained by the new map
* @param <V> the type of mapped values
* @return the newly created map
* @throws IllegalArgumentException if numMappings is negative