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

@@ -12,6 +12,7 @@ import net.draycia.carbon.util.CommandUtils;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedHashMap;
@@ -19,7 +20,7 @@ public class MeCommand {
private final CarbonChat carbonChat;
public MeCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
public MeCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
this.carbonChat = carbonChat;
if (!commandSettings.isEnabled()) {
@@ -39,7 +40,7 @@ public class MeCommand {
.register();
}
private void execute(Player player, Object[] args) {
private void execute(@NonNull Player player, Object[] args) {
String message = ((String) args[0]).replace("</pre>", "");
String format = PlaceholderAPI.setPlaceholders(player, carbonChat.getLanguage().getString("me"));