Skip to content

Commit 26fb9e4

Browse files
committed
Added missing non-null annotations
1 parent 7555183 commit 26fb9e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Commands/src/main/java/org/broken/arrow/library/command/CommandRegister.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public CommandRegister() {
5252
}
5353

5454
@Override
55-
public CommandBuilder registerCommand(final Plugin plugin, final String mainCommand) {
55+
public CommandBuilder registerCommand(@Nonnull final Plugin plugin, @Nonnull final String mainCommand) {
5656
final CommandBuilder commandBuilder = new CommandBuilder();
5757
final String[] mainCommands = mainCommand.split("\\|");
5858

@@ -103,7 +103,7 @@ public void setRegisteredMainCommand(final boolean registeredMainCommand) {
103103
* Translate colors on a text.
104104
*
105105
* @param message the message to translate the color codes.
106-
* @return Array of strings that has formated colors.
106+
* @return A string that has formated colors.
107107
*/
108108
public static String translateColors(final String message) {
109109
if (message == null) return "";

0 commit comments

Comments
 (0)