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

@@ -20,7 +20,7 @@ public class ChannelRegisterEvent extends Event {
return handlers;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return handlers;
}
@@ -35,7 +35,7 @@ public class ChannelRegisterEvent extends Event {
this.registry = registry;
}
public void register(ChatChannel chatChannel) {
public void register(@NonNull ChatChannel chatChannel) {
registry.register(chatChannel.getKey(), chatChannel);
}
@@ -20,7 +20,7 @@ public class ChannelSwitchEvent extends Event implements Cancellable {
return handlers;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return handlers;
}
@@ -47,7 +47,7 @@ public class ChatComponentEvent extends Event implements Cancellable {
return HANDLERS_LIST;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return HANDLERS_LIST;
}
@@ -47,7 +47,7 @@ public class ChatFormatEvent extends Event implements Cancellable {
return HANDLERS_LIST;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return HANDLERS_LIST;
}
@@ -43,7 +43,7 @@ public class PreChatFormatEvent extends Event implements Cancellable {
return HANDLERS_LIST;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return HANDLERS_LIST;
}
@@ -20,7 +20,7 @@ public class PrivateMessageEvent extends Event implements Cancellable {
return handlers;
}
public static HandlerList getHandlerList() {
public static @NonNull HandlerList getHandlerList() {
return handlers;
}