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

@ -35,7 +35,7 @@
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
<version>4.8</version>
<version>4.9</version>
<scope>compile</scope>
</dependency>
</dependencies>
@ -46,7 +46,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<version>3.0.2</version>
<configuration>
<archive>
<manifestEntries>
@ -60,7 +60,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>

View File

@ -87,8 +87,8 @@
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>findbugs</artifactId>
<version>3.0.0</version>
<artifactId>findbugs-annotations</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -87,7 +87,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.42</version>
<version>5.1.43</version>
<scope>runtime</scope>
</dependency>
</dependencies>

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

View File

@ -27,7 +27,7 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
private final ListenerInfo listener;
/*========================================================================*/
private final Random random = new Random();
private final Cache<InetAddress, QuerySession> sessions = CacheBuilder.newBuilder().expireAfterWrite( 30, TimeUnit.SECONDS).build();
private final Cache<InetAddress, QuerySession> sessions = CacheBuilder.newBuilder().expireAfterWrite( 30, TimeUnit.SECONDS ).build();
private void writeShort(ByteBuf buf, int s)
{