Skip to content

Commit 702a387

Browse files
committed
added missing annotation tags
1 parent c0a7ab8 commit 702a387

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Menu Library/src/main/java/org/broken/arrow/library/menu/CheckItemsInsideMenu.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.bukkit.inventory.ItemStack;
1717

1818
import javax.annotation.Nonnull;
19+
import javax.annotation.Nullable;
1920
import java.util.ArrayList;
2021
import java.util.Collections;
2122
import java.util.HashMap;
@@ -367,15 +368,15 @@ public static boolean isAir(final Material material) {
367368
* @param slot The slot to update.
368369
* @param item The ItemStack currently in the slot.
369370
*/
370-
public void setToOneItem(final Inventory inventory, final int slot, final ItemStack item) {
371+
public void setToOneItem(@Nonnull final Inventory inventory, final int slot, @Nullable final ItemStack item) {
371372
if (checkDuplicates && item != null) {
372373
ItemStack clone = new ItemStack(item);
373374
clone.setAmount(1);
374375
inventory.setItem(slot, clone);
375376
}
376377
}
377378

378-
private static boolean nameEquals(final Material mat, final String... names) {
379+
private static boolean nameEquals(@Nonnull final Material mat, final String... names) {
379380
final String matName = mat.toString();
380381

381382
for (final String name : names)

Menu Library/src/main/java/org/broken/arrow/library/menu/messages/SendMsgDuplicatedItems.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public void sendMessage(Player player, String msg) {
181181
* Sends the blacklist message to the player regarding the specified blacklisted item.
182182
* The message supports color codes and placeholder replacement.
183183
*
184-
* @param player the player to send the message to
184+
* @param player the player to send the message to
185185
* @param blacklistItemWrapper the blacklist wrapper for the item stack triggering the message
186186
*/
187-
public void sendBlacklistMessage(final Player player,@Nonnull final BlacklistItemWrapper blacklistItemWrapper) {
187+
public void sendBlacklistMessage(final Player player, @Nonnull final BlacklistItemWrapper blacklistItemWrapper) {
188188
String message;
189189
if (blacklistMessage == null) {
190190
message = "&fThis item&6 {0}&f are blacklisted and you get the items back.";

0 commit comments

Comments
 (0)