Don't annotate type parameters using JetBrains annotations (#5600)

This commit is contained in:
Jason 2021-05-08 19:36:53 -07:00 committed by GitHub
parent d7625d926d
commit 8ed45920cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ Subject: [PATCH] Allow for Component suggestion tooltips in
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 619ed37169c126a8c75d02699a04728bac49d10d..31c90ab0710020a2ff104b5cb8af604f3d682f31 100644
index 619ed37169c126a8c75d02699a04728bac49d10d..4cd97cb102e1ec53b3fe1a451b65b4b640fde099 100644
--- a/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java
+++ b/src/main/java/com/destroystokyo/paper/event/server/AsyncTabCompleteEvent.java
@@ -24,6 +24,11 @@
@ -93,7 +93,7 @@ index 619ed37169c126a8c75d02699a04728bac49d10d..31c90ab0710020a2ff104b5cb8af604f
+ *
+ * @return a list of offered completions
+ */
+ public @NotNull List<@NotNull Completion> completions() {
+ public @NotNull List<Completion> completions() {
+ return this.completions;
+ }
+
@ -107,7 +107,7 @@ index 619ed37169c126a8c75d02699a04728bac49d10d..31c90ab0710020a2ff104b5cb8af604f
+ *
+ * @param newCompletions the new completions
+ */
+ public void completions(final @NotNull List<@NotNull Completion> newCompletions) {
+ public void completions(final @NotNull List<Completion> newCompletions) {
+ Validate.notNull(newCompletions, "new completions");
+ this.completions.clear();
+ this.completions.addAll(newCompletions);