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,16 +9,17 @@ import net.draycia.carbon.channels.ChatChannel;
import net.draycia.carbon.storage.ChatUser;
import net.kyori.adventure.text.Component;
import org.bukkit.entity.Player;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedHashMap;
public class AliasedChannelCommand {
private final CarbonChat carbonChat;
private final ChatChannel chatChannel;
private final @NonNull ChatChannel chatChannel;
private final String commandName;
public AliasedChannelCommand(CarbonChat carbonChat, ChatChannel chatChannel) {
public AliasedChannelCommand(CarbonChat carbonChat, @NonNull ChatChannel chatChannel) {
this.carbonChat = carbonChat;
this.chatChannel = chatChannel;
@@ -71,7 +72,7 @@ public class AliasedChannelCommand {
carbonChat.getAdventureManager().getAudiences().console().sendMessage(component);
}
public ChatChannel getChatChannel() {
public @NonNull ChatChannel getChatChannel() {
return chatChannel;
}