This commit is contained in:
zzz
2015-03-16 15:44:45 +00:00
parent 819b35c760
commit 7e4832d5f2
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class TrustedPluginKeys {
* @return map of B64 DSA keys to signer names
*/
public static Map<String, String> getKeys() {
Map<String, String> rv = new HashMap(KEYS.length / 2);
Map<String, String> rv = new HashMap<String, String>(KEYS.length / 2);
for (int i = 0; i < KEYS.length; i += 2) {
rv.put(KEYS[i+1], KEYS[i]);
}

View File

@ -59,7 +59,7 @@ public class CSSHelper extends HelperBase {
// Protected with nonce in css.jsi
if (lang != null && lang.length() >= 2 && lang.length() <= 6 &&
lang.replaceAll("[a-zA-Z_]", "").length() == 0) {
Map m = new HashMap(2);
Map<String, String> m = new HashMap<String, String>(2);
int under = lang.indexOf('_');
if (under < 0) {
m.put(Messages.PROP_LANG, lang.toLowerCase(Locale.US));

View File

@ -38,7 +38,7 @@ public class ConfigTunnelsHandler extends FormHandler {
*/
private void saveChanges() {
boolean saveRequired = false;
Map<String, String> changes = new HashMap();
Map<String, String> changes = new HashMap<String, String>();
if (_log.shouldLog(Log.DEBUG))
_log.debug("Saving changes, with props = " + _settings + ".");

View File

@ -35,7 +35,7 @@ import org.eclipse.jetty.webapp.WebAppContext;
public class WebAppStarter {
private static final Map<String, Long> warModTimes = new ConcurrentHashMap<String, Long>();
static final Map INIT_PARAMS = new HashMap(4);
static final Map<String, String> INIT_PARAMS = new HashMap<String, String>(4);
//static private Log _log;
static {