Skip to content

Commit

Permalink
style: Add @nonnull
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Dec 28, 2024
1 parent 8924ed3 commit b676beb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.jetbrains.annotations.NotNull;

/**
* 代表玩家背包中的槽位
Expand Down Expand Up @@ -43,7 +44,7 @@ public PlayerSlot asPlayer() {
return this;
}

public Slot getSlot() {
public @NotNull Slot getSlot() {
return slot;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public PlayerSlots asPlayer() {
return this;
}

public Slots getSlots() {
public @NotNull Slots getSlots() {
return slots;
}
}

0 comments on commit b676beb

Please sign in to comment.