diff --git a/src/java.base/share/classes/java/util/HashMap.java b/src/java.base/share/classes/java/util/HashMap.java index abba8045d17..6aac6f29921 100644 --- a/src/java.base/share/classes/java/util/HashMap.java +++ b/src/java.base/share/classes/java/util/HashMap.java @@ -2571,7 +2571,7 @@ public class HashMap extends AbstractMap * without resizing the map. * * @param numMappings the expected number of mappings - * @param the type of keys maintained by this map + * @param the type of keys maintained by the new map * @param the type of mapped values * @return the newly created map * @throws IllegalArgumentException if numMappings is negative diff --git a/src/java.base/share/classes/java/util/LinkedHashMap.java b/src/java.base/share/classes/java/util/LinkedHashMap.java index f1c388f9960..bfa7eba8461 100644 --- a/src/java.base/share/classes/java/util/LinkedHashMap.java +++ b/src/java.base/share/classes/java/util/LinkedHashMap.java @@ -803,7 +803,7 @@ public class LinkedHashMap * without resizing the map. * * @param numMappings the expected number of mappings - * @param the type of keys maintained by this map + * @param the type of keys maintained by the new map * @param the type of mapped values * @return the newly created map * @throws IllegalArgumentException if numMappings is negative diff --git a/src/java.base/share/classes/java/util/WeakHashMap.java b/src/java.base/share/classes/java/util/WeakHashMap.java index 1d50e8239bd..fb8f4b501fc 100644 --- a/src/java.base/share/classes/java/util/WeakHashMap.java +++ b/src/java.base/share/classes/java/util/WeakHashMap.java @@ -1350,7 +1350,7 @@ public class WeakHashMap * without resizing the map. * * @param numMappings the expected number of mappings - * @param the type of keys maintained by this map + * @param the type of keys maintained by the new map * @param the type of mapped values * @return the newly created map * @throws IllegalArgumentException if numMappings is negative