Fix Javadoc warnings due to Java 21 update (+ some other warnings)
The default implicit constructor must also have a doc comment, so I have to make it explicit and either properly restrict the visibility of the constructor, or actually document it.
This commit is contained in:
@@ -25,6 +25,9 @@ public class CLIBrigadierDispatcher extends BrigadierDispatcher<CLICommandSender
|
||||
public static final CLICommandSender CLI_CONSOLE_COMMAND_SENDER = new CLIConsoleCommandSender();
|
||||
|
||||
|
||||
private CLIBrigadierDispatcher() {}
|
||||
|
||||
|
||||
/**
|
||||
* Executes the provided command as the console.
|
||||
* @param commandWithoutSlash the command, without the eventual slash at the beginning.
|
||||
|
@@ -11,6 +11,12 @@ import org.jetbrains.annotations.NotNull;
|
||||
* The console command sender.
|
||||
*/
|
||||
public class CLIConsoleCommandSender implements CLICommandSender {
|
||||
|
||||
/**
|
||||
* Creates a new console command sender.
|
||||
*/
|
||||
protected CLIConsoleCommandSender() {}
|
||||
|
||||
public String getName() {
|
||||
return "Console";
|
||||
}
|
||||
|
@@ -36,6 +36,11 @@ import static fr.pandacube.lib.chat.ChatStatic.text;
|
||||
*/
|
||||
public class CommandAdmin extends CLIBrigadierCommand {
|
||||
|
||||
/**
|
||||
* Initializes the admin command.
|
||||
*/
|
||||
public CommandAdmin() {}
|
||||
|
||||
@Override
|
||||
protected LiteralArgumentBuilder<CLICommandSender> buildCommand() {
|
||||
return literal("admin")
|
||||
|
@@ -9,6 +9,11 @@ import fr.pandacube.lib.cli.CLIApplication;
|
||||
*/
|
||||
public class CommandStop extends CLIBrigadierCommand {
|
||||
|
||||
/**
|
||||
* Initializes the admin command.
|
||||
*/
|
||||
public CommandStop() {}
|
||||
|
||||
@Override
|
||||
protected LiteralArgumentBuilder<CLICommandSender> buildCommand() {
|
||||
return literal("stop")
|
||||
|
@@ -97,5 +97,7 @@ public class CLILogger {
|
||||
t.start();
|
||||
return ps;
|
||||
}
|
||||
|
||||
private CLILogger() {}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user