11
11
import static com .google .common .collect .ImmutableMap .toImmutableMap ;
12
12
13
13
public class Main {
14
- private static final ImmutableMap <String , Command > COMMANDS = Stream
14
+ private static final ImmutableMap <String , Command <?, ?> > COMMANDS = Stream
15
15
.of (
16
16
DeobfuscateCommand .INSTANCE ,
17
17
DecompileCommand .INSTANCE ,
@@ -37,7 +37,7 @@ public static void main(String... args) {
37
37
38
38
String command = args [0 ].toLowerCase (Locale .ROOT );
39
39
40
- Command cmd = COMMANDS .get (command );
40
+ Command <?, ?> cmd = COMMANDS .get (command );
41
41
if (cmd == null ) {
42
42
throw new IllegalArgumentException ("Command not recognized: " + command );
43
43
}
@@ -65,7 +65,7 @@ public static void main(String... args) {
65
65
}
66
66
}
67
67
68
- public static ImmutableMap <String , Command > getCommands () {
68
+ public static ImmutableMap <String , Command <?, ?> > getCommands () {
69
69
return COMMANDS ;
70
70
}
71
71
@@ -78,7 +78,7 @@ private static void printHelp() {
78
78
\t java -cp enigma.jar org.quiltmc.enigma.command.CommandMain <command> <args>
79
79
\t where <command> is one of:""" );
80
80
81
- for (Command command : COMMANDS .values ()) {
81
+ for (Command <?, ?> command : COMMANDS .values ()) {
82
82
command .appendHelp (help );
83
83
}
84
84
}
0 commit comments