Skip to content
This repository was archived by the owner on Jul 24, 2021. It is now read-only.

Commit fffdc8f

Browse files
committed
🎨 Add annotation to prevent from warnings
1 parent fc8043e commit fffdc8f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group 'fr.bakaaless'
6-
version '1.0.0-SNAPSHOT'
6+
version '1.0.1-SNAPSHOT'
77

88
def spigotVersion = '1.16'
99
def subVersion = '.5'

‎src/main/java/fr/bakaaless/api/command/CommandManager.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ else if (toExec.getSecond().length() < aliases.length())
280280
return new ArrayList<>();
281281
}
282282

283-
public void registerRunners(final Class<? extends CommandRunner>... executors) {
283+
@SafeVarargs
284+
public final void registerRunners(final Class<? extends CommandRunner>... executors) {
284285

285286
executors:
286287
for (final Class<? extends CommandRunner> executor : executors) {
@@ -353,7 +354,8 @@ public void registerRunners(final Class<? extends CommandRunner>... executors) {
353354

354355
}
355356

356-
public void unregisterRunners(final Class<? extends CommandRunner>... executors) {
357+
@SafeVarargs
358+
public final void unregisterRunners(final Class<? extends CommandRunner>... executors) {
357359

358360
for (final Class<? extends CommandRunner> executor : executors) {
359361

0 commit comments

Comments
 (0)