minor tweaks to make the code pass the check style

This commit is contained in:
Hanno Fleischer hanno.fleischer@unibw.de
2024-10-05 18:25:25 +02:00
parent 52673dfbce
commit ecbe486d3b
3 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
#
# Specifies the map used by the opponent in single mode.
# Single mode is activated if this property is set.
map.opponent=maps/map2.json
#map.opponent=maps/map2.json
#
# Specifies the map used by the player in single mode.
# The player must define their own map if this property is not set.

View File

@@ -45,7 +45,7 @@ public class BattleshipServer implements MessageListener<HostedConnection>, Conn
private static final Logger LOGGER = System.getLogger(BattleshipServer.class.getName());
private static final File CONFIG_FILE = new File("server.properties");
private static int PORT;
private static int port;
private final BattleshipConfig config = new BattleshipConfig();
private Server myServer;
@@ -69,7 +69,7 @@ public class BattleshipServer implements MessageListener<HostedConnection>, Conn
*/
public BattleshipServer(int port) {
config.readFromIfExists(CONFIG_FILE);
PORT = port;
BattleshipServer.port = port;
LOGGER.log(Level.INFO, "Configuration: {0}", config); //NON-NLS
logic = new ServerGameLogic(this, config);
}
@@ -83,7 +83,7 @@ public void run() {
private void startServer() {
try {
LOGGER.log(Level.INFO, "Starting server..."); //NON-NLS
myServer = Network.createServer(PORT);
myServer = Network.createServer(port);
initializeSerializables();
myServer.start();
registerListeners();

View File

@@ -51,5 +51,5 @@ default void receivedEvent(ClientStateEvent event) { /* do nothing */ }
*
* @param event the received Event
*/
default void receivedEvent(MusicEvent event) { /* do nothing */ };
default void receivedEvent(MusicEvent event) { /* do nothing */ }
}