Skip to content

Commit 899fd4f

Browse files
committed
Add missing @NotNull annotations
1 parent f9ce643 commit 899fd4f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doublejump-plugin/src/main/java/com/github/imdmk/doublejump/infrastructure/update/UpdateController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.bukkit.event.EventPriority;
1313
import org.bukkit.event.Listener;
1414
import org.bukkit.event.player.PlayerJoinEvent;
15+
import org.jetbrains.annotations.NotNull;
1516
import org.panda_lang.utilities.inject.annotations.Inject;
1617

1718
import java.util.logging.Level;
@@ -55,7 +56,7 @@ void onPlayerJoin(PlayerJoinEvent event) {
5556
}
5657
}
5758

58-
private void checkForUpdate(Player player) {
59+
private void checkForUpdate(@NotNull Player player) {
5960
try {
6061
GitCheckResult result = this.updateService.check();
6162
if (result.isUpToDate()) {
@@ -70,7 +71,7 @@ private void checkForUpdate(Player player) {
7071
}
7172
}
7273

73-
private void sendNotice(Player player, Notice notice) {
74+
private void sendNotice(@NotNull Player player, @NotNull Notice notice) {
7475
this.messageService.create()
7576
.notice(notice)
7677
.placeholder("{UPDATE_CHECK_INTERVAL}", DurationUtil.format(this.pluginConfiguration.updateInterval))

0 commit comments

Comments
 (0)