garydgregory commented on PR #652: URL: https://github.com/apache/commons-collections/pull/652#issuecomment-3412613379
Hello @ytatichno -1: You are confusing initial capacity and load factor. Step through the debugger for `MapUtilsTest.testInvertMapDefault()` and `MapUtilsTest.testInvertMap()` and you'll see that the resulting map of the `invertMap()` call has the same table size as the input and a load factor of `0.75`. This is true even if the input table has a load factor of `1.00`. The parameter to HashMap(int) is the initial capacity. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
