On Thu, 24 Mar 2022 07:01:43 GMT, XenoAmess <d...@openjdk.java.net> wrote:
>> src/java.base/share/classes/java/util/Collections.java line 5822: >> >>> 5820: * @param <K> the type of keys maintained by this map >>> 5821: * @param <V> the type of mapped values >>> 5822: * @return initial capacity for HashMap based classes. >> >> That isn't what is returned. > >> That isn't what is returned. > > @dholmes-ora Yes it isn't actually. but I cannot find a better description > string for it. > > "the pre-processed raw initial capacity for HashMap based classes." is more > exact but sounds weird. > > Have you any suggestions to replace this? Thanks! This method doesn't return the capacity it returns the Map! ------------- PR: https://git.openjdk.java.net/jdk/pull/7928