Re: [equinox-dev] StateHelperImpl.getExportedPackageMap: map/set initial capacity

2011-01-24 Thread Ivanov, Radoslav
rom: "Ivanov, Radoslav" <mailto:radoslav.iva...@sap.com> Sent by: equinox-dev-boun...@eclipse.org<mailto:equinox-dev-boun...@eclipse.org> Date: 01/24/2011 07:14AM Subject: [equinox-dev] StateHelperImpl.getExportedPackageMap: map/set initial capacit

Re: [equinox-dev] StateHelperImpl.getExportedPackageMap: map/set initial capacity

2011-01-24 Thread Thomas Watson
etExportedPackageMap: map/set initial capacityHello   I am writing with regards to method “org.eclipse.osgi.internal.resolver.StateHelperImpl.getExportedPackageMap”, which constructs Map and Set with initial capacity. Is there a particular reason for constructing them in that way?   For e

[equinox-dev] StateHelperImpl.getExportedPackageMap: map/set initial capacity

2011-01-24 Thread Ivanov, Radoslav
Hello I am writing with regards to method "org.eclipse.osgi.internal.resolver.StateHelperImpl.getExportedPackageMap", which constructs Map and Set with initial capacity. Is there a particular reason for constructing them in that way? For example, Map> result = new HashMap>(11); or exports = ne