Skip to content

Commit

Permalink
Fix some nullability annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Aug 22, 2024
1 parent ca8fcab commit c987eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void notifyWindows() {
*
* @return The pre update handler
*/
public @Nullable Consumer<ItemPreUpdateEvent> getPreUpdateHandler() {
public @Nullable Consumer<@NotNull ItemPreUpdateEvent> getPreUpdateHandler() {
return preUpdateHandler;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ public interface Window {
*
* @return The viewer of this window.
*/
@Nullable
Player getViewer();
@NotNull Player getViewer();

/**
* Gets the current {@link Player} that is viewing this
Expand Down

0 comments on commit c987eb0

Please sign in to comment.