Skip to content

Commit c987eb0

Browse files
Fix some nullability annotations
1 parent ca8fcab commit c987eb0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

invui-core/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void notifyWindows() {
194194
*
195195
* @return The pre update handler
196196
*/
197-
public @Nullable Consumer<ItemPreUpdateEvent> getPreUpdateHandler() {
197+
public @Nullable Consumer<@NotNull ItemPreUpdateEvent> getPreUpdateHandler() {
198198
return preUpdateHandler;
199199
}
200200

invui-core/src/main/java/xyz/xenondevs/invui/window/Window.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ public interface Window {
146146
*
147147
* @return The viewer of this window.
148148
*/
149-
@Nullable
150-
Player getViewer();
149+
@NotNull Player getViewer();
151150

152151
/**
153152
* Gets the current {@link Player} that is viewing this

0 commit comments

Comments
 (0)