From b07cf63736d98a1cb81d288cbddb25a454804be6 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Fri, 14 Apr 2023 00:05:46 +0200 Subject: [PATCH] Add nullability annotations to ItemUpdateEvent --- .../xenondevs/invui/inventory/event/ItemUpdateEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invui/src/main/java/xyz/xenondevs/invui/inventory/event/ItemUpdateEvent.java b/invui/src/main/java/xyz/xenondevs/invui/inventory/event/ItemUpdateEvent.java index b845d05..998b820 100644 --- a/invui/src/main/java/xyz/xenondevs/invui/inventory/event/ItemUpdateEvent.java +++ b/invui/src/main/java/xyz/xenondevs/invui/inventory/event/ItemUpdateEvent.java @@ -41,7 +41,7 @@ abstract class ItemUpdateEvent { * * @return The {@link Inventory} */ - public Inventory getInventory() { + public @NotNull Inventory getInventory() { return inventory; } @@ -50,7 +50,7 @@ abstract class ItemUpdateEvent { * * @return The reason why this event was called. Probably a {@link PlayerUpdateReason} in most cases. */ - public UpdateReason getUpdateReason() { + public @Nullable UpdateReason getUpdateReason() { return updateReason; } @@ -59,7 +59,7 @@ abstract class ItemUpdateEvent { * * @return The {@link ItemStack} */ - public ItemStack getPreviousItem() { + public @Nullable ItemStack getPreviousItem() { return previousItemStack; } @@ -68,7 +68,7 @@ abstract class ItemUpdateEvent { * * @return The new {@link ItemStack} */ - public ItemStack getNewItem() { + public @Nullable ItemStack getNewItem() { return newItemStack; }