formatting
This commit is contained in:
@@ -8,7 +8,7 @@ public class ByeGame extends Game{
|
||||
private final String player1;
|
||||
private final Game ref;
|
||||
|
||||
ByeGame(String player1, Game ref){
|
||||
ByeGame(String player1, Game ref) {
|
||||
super();
|
||||
this.ref = ref;
|
||||
this.player1 = player1;
|
||||
@@ -38,8 +38,7 @@ public class ByeGame extends Game{
|
||||
|
||||
|
||||
@Override
|
||||
public List<Game> getAllGames()
|
||||
{
|
||||
public List<Game> getAllGames() {
|
||||
List<Game> temp = new ArrayList<>();
|
||||
temp.add(this);
|
||||
temp.addAll(ref.getAllGames());
|
||||
|
||||
Reference in New Issue
Block a user