Legger til final på variabler som ikke endres

This commit is contained in:
2020-02-20 14:10:56 +01:00
parent 29b48c1a87
commit 210cf8dcaf
4 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@ package inf112.fiasko.roborally.element_properties;
*/
public class Position {
private int xCoordinate;
private int yCoordinate;
private final int xCoordinate;
private final int yCoordinate;
/**
* Initializes the position