make Packet a generic class

This commit is contained in:
Naoyuki Kanezawa
2014-04-09 00:47:43 +09:00
parent 6841a52070
commit 527a3c640c
4 changed files with 22 additions and 23 deletions

View File

@@ -60,8 +60,8 @@ public class Parser {
private Parser() {}
private static Packet error() {
return new Packet(ERROR, "parser error");
private static Packet<String> error() {
return new Packet<String>(ERROR, "parser error");
}