mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Infer nullability, pre human pass
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user