Fix some source code formatting

This commit is contained in:
md_5 2018-01-28 10:23:52 +11:00
parent 6b88b63941
commit 9b2bb07d89
4 changed files with 18 additions and 12 deletions

View File

@ -5,6 +5,7 @@ import org.junit.Test;
public class DefaultConfigurationTest public class DefaultConfigurationTest
{ {
@Test @Test
public void testDefaultValues() public void testDefaultValues()
{ {

View File

@ -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 );
} }