Edit server-side code to conform to checkstyle rules #181

Merged
lars.winzer merged 6 commits from chore/conform-server-to-checkstyle into main 2026-03-14 14:26:49 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 34c89b671e - Show all commits
@@ -23,9 +23,9 @@ public class NetworkManager implements Runnable {
/**
* Creates a new NetworkManager with the given port, session manager, and event bus.
*
* @param port the port to listen on
* @param port the port to listen on
* @param sessionManager the session manager to use
* @param eventBus the event bus for events
* @param eventBus the event bus for events
*/
public NetworkManager(Integer port, SessionManager sessionManager, EventBus eventBus) {
this.port = port;
@@ -15,7 +15,7 @@ public class EventBus {
* Subscribes a handler to a specific event type.
*
* @param eventType the class of the event to subscribe to
* @param handler the consumer to handle the event
* @param handler the consumer to handle the event
*/
@SuppressWarnings("unchecked") // This cast is safe, because handlers only get passed the type they subscribed to
public <T extends Event> void subscribe(Class<T> eventType, Consumer<T> handler) {