This is a personal project so, I do whatever I want XD.
In the real world I would save this commit for another moment.
//Every piece is contained in a square. This is the square's height.
private static final int HEIGHT = 4;
//Every piece is contained in a square.
- public Tile[][] size = new Tile[WIDTH][HEIGHT];
+ public final Tile[][] size = new Tile[WIDTH][HEIGHT];
//Stores the x coordinate (the position of this piece on the grid)
public int x = 0;
//Stores the y coordinate (the position of this piece on the grid)
//Stores the argument of the enum constant (passed to the constructor) JLS§8.9.1
- private int color;
+ private final int color;
/**
*
* @param color It is the argument of the enum constant
*/
- Tile (int color)
+ Tile (final int color)
{
this.color = color;
}