Fix paper using wrong annotations

This commit is contained in:
BillyGalbreath
2021-03-24 03:31:10 -05:00
parent f31bcc632d
commit 34d5818210

View File

@@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: jmp <jasonpenilla2@me.com>
Date: Wed, 24 Mar 2021 03:28:32 -0500
Subject: [PATCH] Fix paper using wrong annotations
diff --git a/src/main/java/org/bukkit/inventory/Inventory.java b/src/main/java/org/bukkit/inventory/Inventory.java
index 607eb670b5e6adc2a4dce81b6e56b219c8a4f95f..d3b2dd605c187d211b5c99056f286cbabba09224 100644
--- a/src/main/java/org/bukkit/inventory/Inventory.java
+++ b/src/main/java/org/bukkit/inventory/Inventory.java
@@ -158,7 +158,7 @@ public interface Inventory extends Iterable<ItemStack> {
*
* @return An array of ItemStacks from the inventory. Individual items may be null.
*/
- public @Nullable ItemStack @NotNull [] getContents(); // Paper - make array elements nullable instead array
+ public @org.checkerframework.checker.nullness.qual.Nullable ItemStack @org.checkerframework.checker.nullness.qual.NonNull [] getContents(); // Paper - make array elements nullable instead array // Purpur
/**
* Completely replaces the inventory's contents. Removes all existing