Formatting & dependency updates

This commit is contained in:
md_5
2017-08-06 11:18:14 +10:00
parent 2ae8ba0afc
commit da88d5c502
8 changed files with 11 additions and 12 deletions

View File

@@ -255,7 +255,7 @@ public final class UserConnection implements ProxiedPlayer
if ( getServer() == null && !ch.isClosing() )
{
throw new IllegalStateException("Cancelled ServerConnectEvent with no server or disconnect.");
throw new IllegalStateException( "Cancelled ServerConnectEvent with no server or disconnect." );
}
return;
}

View File

@@ -85,7 +85,7 @@ public class Configuration implements ProxyConfig
throttle = adapter.getInt( "connection_throttle", throttle );
ipForward = adapter.getBoolean( "ip_forward", ipForward );
compressionThreshold = adapter.getInt( "network_compression_threshold", compressionThreshold );
preventProxyConnections = adapter.getBoolean( "prevent_proxy_connections", preventProxyConnections);
preventProxyConnections = adapter.getBoolean( "prevent_proxy_connections", preventProxyConnections );
disabledCommands = new CaseInsensitiveSet( (Collection<String>) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );

View File

@@ -1,6 +1,5 @@
package net.md_5.bungee.connection;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;

View File

@@ -562,7 +562,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
@Override
public String getName()
{
return (name != null ) ? name : ( loginRequest == null ) ? null : loginRequest.getData();
return ( name != null ) ? name : ( loginRequest == null ) ? null : loginRequest.getData();
}
@Override