Fix some source code formatting
This commit is contained in:
parent
6b88b63941
commit
9b2bb07d89
@ -5,6 +5,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class DefaultConfigurationTest
|
public class DefaultConfigurationTest
|
||||||
{
|
{
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDefaultValues()
|
public void testDefaultValues()
|
||||||
{
|
{
|
||||||
|
@ -289,7 +289,8 @@ public enum Protocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
private static class ProtocolData {
|
private static class ProtocolData
|
||||||
|
{
|
||||||
|
|
||||||
private final int protocolVersion;
|
private final int protocolVersion;
|
||||||
private final TObjectIntMap<Class<? extends DefinedPacket>> packetMap = new TObjectIntHashMap<>( MAX_PACKET_ID );
|
private final TObjectIntMap<Class<? extends DefinedPacket>> packetMap = new TObjectIntHashMap<>( MAX_PACKET_ID );
|
||||||
@ -297,12 +298,16 @@ public enum Protocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
private static class ProtocolMapping {
|
private static class ProtocolMapping
|
||||||
|
{
|
||||||
|
|
||||||
private final int protocolVersion;
|
private final int protocolVersion;
|
||||||
private final int packetID;
|
private final int packetID;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper method
|
// Helper method
|
||||||
private static ProtocolMapping map(int protocol, int id) {
|
private static ProtocolMapping map(int protocol, int id)
|
||||||
|
{
|
||||||
return new ProtocolMapping( protocol, id );
|
return new ProtocolMapping( protocol, id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user