Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
While looking at replacing Guava, dsmiley proposed converting existing new HashMap(int) and new HashSet(int) to avoid the trap of them not actually being that size.
https://github.com/apache/solr/pull/1466#discussion_r1144811614
We should be able to enforce this with ForbiddenAPIs and https://github.com/apache/solr/pull/1466 adds CollectionUtil inspired by Lucene that we can use.
Attachments
Issue Links
- links to