summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-24 13:45:22 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-24 13:55:27 +0100
commit45b115b26e81fe54f7331c725cd400bfe93d5875 (patch)
tree7e970687fdbf15eac8911824a481ac34b42eb9c8 /src/main/java/org
parentAdd test for BonusPerBoardElement (diff)
downloadseven-wonders-45b115b26e81fe54f7331c725cd400bfe93d5875.tar.gz
seven-wonders-45b115b26e81fe54f7331c725cd400bfe93d5875.tar.bz2
seven-wonders-45b115b26e81fe54f7331c725cd400bfe93d5875.zip
Remove useless toString() methods
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/Lobby.java5
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/Player.java5
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/boards/Science.java7
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/cards/Card.java8
4 files changed, 1 insertions, 24 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/Lobby.java b/src/main/java/org/luxons/sevenwonders/game/Lobby.java
index b205f269..848f3e5d 100644
--- a/src/main/java/org/luxons/sevenwonders/game/Lobby.java
+++ b/src/main/java/org/luxons/sevenwonders/game/Lobby.java
@@ -77,11 +77,6 @@ public class Lobby {
return players.size() >= gameDefinition.getMinPlayers();
}
- @Override
- public String toString() {
- return "Lobby{" + "id=" + id + ", name='" + name + '\'' + ", state=" + state + '}';
- }
-
public boolean isOwner(String userName) {
return owner.getUserName().equals(userName);
}
diff --git a/src/main/java/org/luxons/sevenwonders/game/Player.java b/src/main/java/org/luxons/sevenwonders/game/Player.java
index 66ce566d..9df51d5f 100644
--- a/src/main/java/org/luxons/sevenwonders/game/Player.java
+++ b/src/main/java/org/luxons/sevenwonders/game/Player.java
@@ -18,9 +18,4 @@ public class Player {
public String getUserName() {
return userName;
}
-
- @Override
- public String toString() {
- return "Player{" + "name='" + displayName + '\'' + ", userName='" + userName + '\'' + '}';
- }
}
diff --git a/src/main/java/org/luxons/sevenwonders/game/boards/Science.java b/src/main/java/org/luxons/sevenwonders/game/boards/Science.java
index 5be8e23e..34928bcc 100644
--- a/src/main/java/org/luxons/sevenwonders/game/boards/Science.java
+++ b/src/main/java/org/luxons/sevenwonders/game/boards/Science.java
@@ -62,11 +62,4 @@ public class Science {
int nbGroupsOfAll = Arrays.stream(values).mapToInt(i -> i).min().orElse(0);
return independentSquaresSum + nbGroupsOfAll * 7;
}
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("Science{");
- quantities.forEach((type, count) -> sb.append(type).append("=").append(count).append(" "));
- return sb.append("*=").append(jokers).toString();
- }
}
diff --git a/src/main/java/org/luxons/sevenwonders/game/cards/Card.java b/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
index 76a3a82e..2dbf5cba 100644
--- a/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
+++ b/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
@@ -3,10 +3,10 @@ package org.luxons.sevenwonders.game.cards;
import java.util.List;
import java.util.Objects;
-import org.luxons.sevenwonders.game.resources.BoughtResources;
import org.luxons.sevenwonders.game.api.Table;
import org.luxons.sevenwonders.game.boards.Board;
import org.luxons.sevenwonders.game.effects.Effect;
+import org.luxons.sevenwonders.game.resources.BoughtResources;
public class Card {
@@ -115,10 +115,4 @@ public class Card {
public int hashCode() {
return Objects.hash(name);
}
-
- @Override
- public String toString() {
- return "Card{" + "name='" + name + '\'' + ", color=" + color + ", requirements=" + requirements + ", effects="
- + effects + '}';
- }
}
bgstack15