mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-07 18:49:34 +01:00
Gjør ting final som kan være final
This commit is contained in:
parent
1abaea3e3b
commit
9f5ea820f3
@ -15,7 +15,7 @@ import java.io.IOException;
|
||||
* This class represents a client capable of connecting to a Robo Rally server
|
||||
*/
|
||||
public class RoboRallyClient {
|
||||
private Client client;
|
||||
private final Client client;
|
||||
|
||||
/**
|
||||
* Instantiates a new Robo Rally client
|
||||
@ -45,7 +45,7 @@ public class RoboRallyClient {
|
||||
* This listener handles all receiving from the server
|
||||
*/
|
||||
class RoboRallyClientListener extends Listener {
|
||||
private RoboRallyWrapper wrapper;
|
||||
private final RoboRallyWrapper wrapper;
|
||||
|
||||
RoboRallyClientListener(RoboRallyWrapper wrapper) {
|
||||
super();
|
||||
|
@ -15,7 +15,7 @@ import java.util.Map;
|
||||
* This class represents a Robo Rally Server
|
||||
*/
|
||||
public class RoboRallyServer {
|
||||
private Server server;
|
||||
private final Server server;
|
||||
private RoboRallyServerListener listener;
|
||||
|
||||
public RoboRallyServer() throws IOException {
|
||||
@ -56,8 +56,8 @@ public class RoboRallyServer {
|
||||
*/
|
||||
class RoboRallyServerListener extends Listener {
|
||||
private Connection host;
|
||||
private Map<Connection, RobotID> clients;
|
||||
private Map<Connection, String> playerNames;
|
||||
private final Map<Connection, RobotID> clients;
|
||||
private final Map<Connection, String> playerNames;
|
||||
|
||||
/**
|
||||
* Instantiates a new Robo Rally server listener
|
||||
|
@ -4,7 +4,7 @@ package inf112.fiasko.roborally.networking.containers;
|
||||
* This class represents a response saying that something went wrong with the request
|
||||
*/
|
||||
public class ErrorResponse {
|
||||
private String errorMessage;
|
||||
private final String errorMessage;
|
||||
private Exception thrownException;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user