From 9bc41433e7e53d406a96f9194ec30e97c33da3bc Mon Sep 17 00:00:00 2001 From: Mystiflow Date: Tue, 31 Jul 2018 02:40:41 +0100 Subject: [PATCH] #2497: Use annotation to set initial value in ServerConnectRequest --- .../net/md_5/bungee/api/ServerConnectRequest.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/ServerConnectRequest.java b/api/src/main/java/net/md_5/bungee/api/ServerConnectRequest.java index c2192118b2..578546dd69 100644 --- a/api/src/main/java/net/md_5/bungee/api/ServerConnectRequest.java +++ b/api/src/main/java/net/md_5/bungee/api/ServerConnectRequest.java @@ -59,20 +59,11 @@ public enum Result /** * Timeout in milliseconds for request. */ - private final int connectTimeout; + @Builder.Default + private final int connectTimeout = 5000; // TODO: Configurable /** * Should the player be attempted to connect to the next server in their * queue if the initial request fails. */ private final boolean retry; - - /** - * Class that sets default properties/adds methods to the lombok builder - * generated class. - */ - public static class ServerConnectRequestBuilder - { - - private int connectTimeout = 5000; // TODO: Configurable - } }