Clean up generics (and get rid of the type parameter for command meta data)
This commit is contained in:
parent
1a85251fc6
commit
ccd0e8ae0e
50 changed files with 577 additions and 596 deletions
|
|
@ -37,7 +37,7 @@ import java.util.concurrent.CompletionException;
|
|||
|
||||
class AnnotationParserTest {
|
||||
|
||||
private static CommandManager<TestCommandSender, SimpleCommandMeta> manager;
|
||||
private static CommandManager<TestCommandSender> manager;
|
||||
private static AnnotationParser<TestCommandSender, SimpleCommandMeta> annotationParser;
|
||||
|
||||
@BeforeAll
|
||||
|
|
@ -48,7 +48,7 @@ class AnnotationParserTest {
|
|||
|
||||
@Test
|
||||
void testMethodConstruction() {
|
||||
final Collection<Command<TestCommandSender, SimpleCommandMeta>> commands = annotationParser.parse(this);
|
||||
final Collection<Command<TestCommandSender>> commands = annotationParser.parse(this);
|
||||
Assertions.assertFalse(commands.isEmpty());
|
||||
manager.executeCommand(new TestCommandSender(), "test 10").join();
|
||||
manager.executeCommand(new TestCommandSender(), "t 10").join();
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import com.intellectualsites.commands.meta.SimpleCommandMeta;
|
|||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class TestCommandManager extends CommandManager<TestCommandSender, SimpleCommandMeta> {
|
||||
public class TestCommandManager extends CommandManager<TestCommandSender> {
|
||||
|
||||
protected TestCommandManager() {
|
||||
super(CommandExecutionCoordinator.simpleCoordinator(), CommandRegistrationHandler.nullCommandRegistrationHandler());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue