You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/08/28 14:44:35 UTC
[GitHub] [incubator-druid] leventov opened a new issue #8423: Prohibit
HashMap(capacity), HashMap(capacity, loadFactor), HashSet,
LinkedHashMap constructors
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org