forked from I2P_Developers/i2p.i2p
improve map initialization
This commit is contained in:
@ -32,18 +32,22 @@ public class ConfigAdvancedHelper extends HelperBase {
|
||||
|
||||
private static final Map<String, String> _headers = new HashMap<String, String>(16);
|
||||
static {
|
||||
_headers.put("crypto", "Crypto");
|
||||
_headers.put("desktopgui", "System Tray");
|
||||
_headers.put("i2cp", "I2CP");
|
||||
_headers.put("i2np", "I2NP");
|
||||
_headers.put("i2p", "I2P");
|
||||
_headers.put("jbigi", "JBigI");
|
||||
_headers.put("netdb", "NetDB");
|
||||
_headers.put("prng", "Random");
|
||||
_headers.put("router", "Router");
|
||||
_headers.put("routerconsole", "Router Console");
|
||||
_headers.put("stat", "Statistics");
|
||||
_headers.put("time", "Time");
|
||||
String[] ss = {
|
||||
"crypto", "Crypto",
|
||||
"desktopgui", "System Tray",
|
||||
"i2cp", "I2CP",
|
||||
"i2np", "I2NP",
|
||||
"i2p", "I2P",
|
||||
"jbigi", "JBigI",
|
||||
"netdb", "NetDB",
|
||||
"prng", "Random",
|
||||
"router", "Router",
|
||||
"routerconsole", "Router Console",
|
||||
"stat", "Statistics",
|
||||
"time", "Time" };
|
||||
for (int i = 0; i < ss.length; i += 2) {
|
||||
_headers.put(ss[i], ss[i+1]);
|
||||
}
|
||||
}
|
||||
|
||||
public String getSettings() {
|
||||
|
Reference in New Issue
Block a user