From 5eeca16f7efdcc04f2c4ed9f7f9241e0cb9668ef Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 24 Nov 2018 21:42:08 -0500 Subject: [PATCH] Apply final modifier --- .../com/velocitypowered/proxy/VelocityServer.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index c803e2ff1..821e0e4ea 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -74,24 +74,23 @@ public class VelocityServer implements ProxyServer { .registerTypeHierarchyAdapter(GameProfile.class, new GameProfileSerializer()) .create(); - private ConnectionManager cm; + private final ConnectionManager cm; private final ProxyOptions options; - private @MonotonicNonNull ConnectionManager cm; private @MonotonicNonNull VelocityConfiguration configuration; private @MonotonicNonNull NettyHttpClient httpClient; private @MonotonicNonNull KeyPair serverKeyPair; - private ServerMap servers; + private final ServerMap servers; private final VelocityCommandManager commandManager = new VelocityCommandManager(); private final AtomicBoolean shutdownInProgress = new AtomicBoolean(false); private boolean shutdown = false; - private VelocityPluginManager pluginManager; + private final VelocityPluginManager pluginManager; private final Map connectionsByUuid = new ConcurrentHashMap<>(); private final Map connectionsByName = new ConcurrentHashMap<>(); - private VelocityConsole console; + private final VelocityConsole console; private @MonotonicNonNull Ratelimiter ipAttemptLimiter; - private VelocityEventManager eventManager; - private VelocityScheduler scheduler; + private final VelocityEventManager eventManager; + private final VelocityScheduler scheduler; private final VelocityChannelRegistrar channelRegistrar = new VelocityChannelRegistrar(); VelocityServer(final ProxyOptions options) {