enum reverse cache objects

This commit is contained in:
Shikhar Bhushan
2010-08-08 17:45:48 +01:00
parent 7797d774ac
commit ebd5036d64
3 changed files with 3 additions and 6 deletions

View File

@@ -67,7 +67,6 @@ public enum Message {
static {
for (Message c : Message.values())
if (cache[c.toByte()] == null)
cache[c.toByte()] = c;
}

View File

@@ -27,8 +27,7 @@ public enum Signal {
INT("INT"),
KILL("KILL"),
PIPE("PIPE"),
QUIT(
"QUIT"),
QUIT("QUIT"),
SEGV("SEGV"),
TERM("TERM"),
USR1("USR1"),

View File

@@ -52,7 +52,6 @@ public enum PacketType {
static {
for (PacketType t : PacketType.values())
if (cache[t.toByte() & 0xff] == null)
cache[t.toByte() & 0xff] = t;
}