✨ Add errorprone and fix warnings/errors
The compiler will also treat all warnings as errors from now on.
This commit is contained in:
parent
6ffee9d04f
commit
cfac2639ad
101 changed files with 309 additions and 146 deletions
|
|
@ -91,6 +91,7 @@ import java.util.function.Function;
|
|||
/**
|
||||
* Example plugin class
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public final class ExamplePlugin extends JavaPlugin {
|
||||
|
||||
private BukkitCommandManager<CommandSender> manager;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public abstract class CustomUser {
|
|||
* @param user Sending user
|
||||
* @param channel Channel that the message was sent in
|
||||
*/
|
||||
public CustomUser(final @NonNull User user, final @NonNull MessageChannel channel) {
|
||||
protected CustomUser(final @NonNull User user, final @NonNull MessageChannel channel) {
|
||||
this.user = user;
|
||||
this.channel = channel;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ import com.velocitypowered.api.event.Subscribe;
|
|||
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
|
||||
import com.velocitypowered.api.plugin.Plugin;
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
import com.velocitypowered.api.proxy.ProxyServer;
|
||||
import com.velocitypowered.api.proxy.server.RegisteredServer;
|
||||
import net.kyori.adventure.identity.Identity;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
|
@ -45,7 +44,6 @@ import net.kyori.adventure.text.format.NamedTextColor;
|
|||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@Plugin(
|
||||
id = "example-plugin",
|
||||
|
|
@ -54,10 +52,6 @@ import java.util.logging.Logger;
|
|||
)
|
||||
public final class ExampleVelocityPlugin {
|
||||
|
||||
@Inject
|
||||
private ProxyServer server;
|
||||
@Inject
|
||||
private Logger logger;
|
||||
@Inject
|
||||
private Injector injector;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue