mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix paper using wrong annotations
This commit is contained in:
19
patches/api/0041-Fix-paper-using-wrong-annotations.patch
Normal file
19
patches/api/0041-Fix-paper-using-wrong-annotations.patch
Normal 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
|
||||
Reference in New Issue
Block a user