leventov opened a new issue #8423: Prohibit HashMap(capacity), 
HashMap(capacity, loadFactor), HashSet, LinkedHashMap constructors
URL: https://github.com/apache/incubator-druid/issues/8423
 
 
   They are pretty much always misused. See [this SO 
answer](https://stackoverflow.com/a/30220944/648955) for the explanation. They 
should be prohibited using forbidden-apis with suggested alternatives: Guava's 
`Maps.new(Linked)HashMapWithExpectedSize()`, 
`Sets.newHashSetWithExpectedSize()`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to