diff --git a/patches/api/0004-Remove-NotNull-annotation-from-AsyncTabCompleteEvent.patch b/patches/api/0004-Remove-NotNull-annotation-from-AsyncTabCompleteEvent.patch new file mode 100644 index 0000000..bb57118 --- /dev/null +++ b/patches/api/0004-Remove-NotNull-annotation-from-AsyncTabCompleteEvent.patch @@ -0,0 +1,29 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: MrPowerGamerBR +Date: Tue, 18 May 2021 11:47:28 -0300 +Subject: [PATCH] Remove @NotNull annotation from AsyncTabCompleteEvent due to + compilation issues + + +diff --git a/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java b/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java +index 31c90ab0710020a2ff104b5cb8af604f3d682f31..4cd97cb102e1ec53b3fe1a451b65b4b640fde099 100644 +--- a/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java ++++ b/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java +@@ -136,7 +136,7 @@ public class AsyncTabCompleteEvent extends Event implements Cancellable { + * + * @return a list of offered completions + */ +- public @NotNull List<@NotNull Completion> completions() { ++ public @NotNull List completions() { + return this.completions; + } + +@@ -150,7 +150,7 @@ public class AsyncTabCompleteEvent extends Event implements Cancellable { + * + * @param newCompletions the new completions + */ +- public void completions(final @NotNull List<@NotNull Completion> newCompletions) { ++ public void completions(final @NotNull List newCompletions) { + Validate.notNull(newCompletions, "new completions"); + this.completions.clear(); + this.completions.addAll(newCompletions);