Small code cleanups

This commit is contained in:
Andrew Steinborn
2020-09-01 03:25:15 -04:00
parent 5a26b4e03d
commit 5d287306c2
31 changed files with 42 additions and 93 deletions

View File

@@ -5,6 +5,6 @@ package com.velocitypowered.api.event;
*/
public enum PostOrder {
FIRST, EARLY, NORMAL, LATE, LAST;
FIRST, EARLY, NORMAL, LATE, LAST
}

View File

@@ -2,7 +2,6 @@ package com.velocitypowered.api.event.connection;
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CANCELLED_BY_PROXY;
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CONFLICTING_LOGIN;
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.PRE_SERVER_JOIN;
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.SUCCESSFUL_LOGIN;
import com.google.common.base.Preconditions;

View File

@@ -58,7 +58,7 @@ public interface ProxyServer extends Audience {
* Broadcasts a message to all players currently online.
*
* @param component the message to send
* @deprecated Use {@link #sendMessage(Component)} instead
* @deprecated Use {@link #sendMessage(net.kyori.adventure.text.Component)} instead
*/
@Deprecated
void broadcast(net.kyori.text.Component component);

View File

@@ -24,6 +24,7 @@
package com.velocitypowered.api.util;
import java.util.Arrays;
import java.util.UUID;
/**
@@ -41,9 +42,7 @@ class FastUuidSansHyphens {
private static final long[] HEX_VALUES = new long[128];
static {
for (int i = 0; i < HEX_VALUES.length; i++) {
HEX_VALUES[i] = -1;
}
Arrays.fill(HEX_VALUES, -1);
HEX_VALUES['0'] = 0x0;
HEX_VALUES['1'] = 0x1;

View File

@@ -13,5 +13,5 @@ public enum BossBarColor {
GREEN,
YELLOW,
PURPLE,
WHITE;
WHITE
}