Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8289872: wrong wording in @param doc for HashMap.newHashMap et. al.
Reviewed-by: chegar, naoto, iris
  • Loading branch information
Stuart Marks committed Jul 8, 2022
1 parent 460d879 commit eeaf0bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/util/HashMap.java
Expand Up @@ -2571,7 +2571,7 @@ static int calculateHashMapCapacity(int numMappings) {
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/util/LinkedHashMap.java
Expand Up @@ -803,7 +803,7 @@ final class LinkedEntryIterator extends LinkedHashIterator
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/util/WeakHashMap.java
Expand Up @@ -1350,7 +1350,7 @@ public int characteristics() {
* 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
Expand Down

1 comment on commit eeaf0bb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.