Infer nullability, pre human pass

This commit is contained in:
Mariell Hoversholm committed 2020-09-09 22:15:54 +02:00
1 parent c949836e3c
commit 8de275cc6b
62 files changed
+303 -249

No files matched your search

@@ -9,6 +9,7 @@ import net.draycia.carbon.util.CarbonUtils;
import net.draycia.carbon.util.CommandUtils;
import net.kyori.adventure.text.Component;
import org.bukkit.command.CommandSender;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedHashMap;
@@ -16,7 +17,7 @@ public class ChatReloadCommand {
private final CarbonChat carbonChat;
public ChatReloadCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
public ChatReloadCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
this.carbonChat = carbonChat;
if (!commandSettings.isEnabled()) {
@@ -32,7 +33,7 @@ public class ChatReloadCommand {
.register();
}
private void execute(CommandSender sender, Object[] args) {
private void execute(@NonNull CommandSender sender, Object[] args) {
carbonChat.reloadConfig();
carbonChat.reloadFilters();