Skip to content

Commit

Permalink
Annotated Button
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Mar 7, 2024
1 parent d4aa284 commit 79308fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Item getItem(@NotNull UUID uuid) {
}

@Override
public void handleAction(ClickEvent event) {
public void handleAction(@NotNull ClickEvent event) {
buttons.get(getCurrentIndex(event.getViewerID())).handleAction(event);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Item getItem(@NotNull UUID uuid) {
}

@Override
public void handleAction(ClickEvent event) {
public void handleAction(@NotNull ClickEvent event) {
Optional.ofNullable(currentIndexMap.get(event.getViewerID()))
.map(buttons::get)
.ifPresent(button -> button.handleAction(event));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public Item getItem(@NotNull UUID uuid) {
}

@Override
public void handleAction(ClickEvent event) {
public void handleAction(@NotNull ClickEvent event) {
UUID uuid = event.getViewerID();
if (failToViewList.contains(uuid)) {
fallbackButton.handleAction(event);
Expand Down

0 comments on commit 79308fc

Please sign in to comment.