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

@@ -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)
{
@@ -124,7 +124,7 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
writeString( out, entry.getKey() );
writeString( out, entry.getValue() );
}
out.writeByte( 0x00 ); // Null
out.writeByte( 0x00 ); // Null
// Padding
writeString( out, "\01player_\00" );