Style: apply Spotless for Serverapp

This commit is contained in:
Jona Walpert
2026-04-11 19:46:48 +02:00
parent 15d1ea4edd
commit 240bba9bf5
@@ -96,12 +96,9 @@ public class ServerApp {
/** /**
* Registers command parsers and handlers. * Registers command parsers and handlers.
* *
* @param parserDispatcher the dispatcher responsible for parsing incoming * @param parserDispatcher the dispatcher responsible for parsing incoming commands
* commands * @param commandRouter the router that dispatches parsed commands to appropriate handlers
* @param commandRouter the router that dispatches parsed commands to * @param responseDispatcher the dispatcher responsible for sending responses back to clients
* appropriate handlers
* @param responseDispatcher the dispatcher responsible for sending responses
* back to clients
*/ */
private static void registerCommands( private static void registerCommands(
CommandParserDispatcher parserDispatcher, CommandParserDispatcher parserDispatcher,
@@ -146,10 +143,15 @@ public class ServerApp {
// JOIN_LOBBY registration // JOIN_LOBBY registration
parserDispatcher.register( parserDispatcher.register(
"JOIN_LOBBY", "JOIN_LOBBY",
new ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby.JoinLobbyParser()); new ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby
.JoinLobbyParser());
commandRouter.register( commandRouter.register(
ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby.JoinLobbyRequest.class, ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby
(ch.unibas.dmi.dbis.cs108.casono.server.network.command.execution.CommandHandler<ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby.JoinLobbyRequest>) new ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby.JoinLobbyHandler( .JoinLobbyRequest.class,
responseDispatcher, lobbyManager, userRegistry)); (ch.unibas.dmi.dbis.cs108.casono.server.network.command.execution.CommandHandler<
ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby
.JoinLobbyRequest>)
new ch.unibas.dmi.dbis.cs108.casono.server.app.commands.lobby.join_lobby
.JoinLobbyHandler(responseDispatcher, lobbyManager, userRegistry));
} }
} }