From 5e0aa2e60d75376655e0d1e19d972311fce4545a Mon Sep 17 00:00:00 2001 From: Tux Date: Sat, 16 Aug 2014 19:05:10 -0400 Subject: [PATCH] Finalize the ServerDisconnectEvent target field. There is no good reason for it to be mutable in the first place, considering that the event instance is not used after the method is called. --- .../java/net/md_5/bungee/api/event/ServerDisconnectEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java b/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java index 2823b7161..0ba38b41b 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/ServerDisconnectEvent.java @@ -25,5 +25,5 @@ public class ServerDisconnectEvent extends Event * Server the player is disconnecting from. */ @NonNull - private ServerInfo target; + private final ServerInfo target; }