forked from I2P_Developers/i2p.i2p
lint
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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 + ".");
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user