7116722: Miscellaneous warnings sun.misc ( and related classes )

Tom Hawtin tom.hawtin at oracle.com
Wed Nov 30 17:31:35 UTC 2011


On 30/11/2011 17:04, Joe Darcy wrote:

> public JarIndex() {
> - indexMap = new HashMap();
> - jarMap = new HashMap();
> + indexMap = new HashMap<String,LinkedList<String>>();
> + jarMap = new HashMap<String,LinkedList<String>>();

     jarMap = new HashMap<String,LinkedHashSet<String>>();

or similar might be better. Looks a bit O(n^2). But that's a different 
sort of style.

Tom



More information about the core-libs-dev mailing list