cleanup
This commit is contained in:
parent
df825fa87b
commit
13315e708c
2 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
|||
package eu.e99.svc.io;
|
||||
|
||||
import eu.e99.svc.packet.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -19,7 +17,8 @@ public class MessageRegistry {
|
|||
|
||||
public BinaryMessage readMessage(Reader reader) throws IOException {
|
||||
int id = reader.readInt();
|
||||
Supplier<? extends BinaryMessage> supplier = this.messagesById.get(id);;
|
||||
Supplier<? extends BinaryMessage> supplier = this.messagesById.get(id);
|
||||
;
|
||||
if (supplier == null) {
|
||||
throw new RuntimeException("Failed to find message with id " + id);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import javax.net.ssl.SSLContext;
|
|||
import javax.net.ssl.SSLServerSocketFactory;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.net.Inet4Address;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.ServerSocket;
|
||||
import java.security.KeyStore;
|
||||
|
|
Loading…
Reference in a new issue