summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-30 01:29:13 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-30 01:29:13 +0100
commit415cca8d74a7c059d7ade533e53ff5e2d42064ae (patch)
treea7a9d6621d4010d94a9b2bbf115547b7ca2019ad /src/main/java
parentAdd test for Board.removeGold (diff)
downloadseven-wonders-415cca8d74a7c059d7ade533e53ff5e2d42064ae.tar.gz
seven-wonders-415cca8d74a7c059d7ade533e53ff5e2d42064ae.tar.bz2
seven-wonders-415cca8d74a7c059d7ade533e53ff5e2d42064ae.zip
Clean serializer using the Gson context
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java b/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java
index a0dee138..6c70a44d 100644
--- a/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java
+++ b/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java
@@ -15,7 +15,6 @@ import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import com.google.gson.JsonParseException;
-import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
@@ -52,7 +51,7 @@ public class ProductionIncreaseSerializer implements JsonSerializer<ProductionIn
.map(ResourceType::getSymbol)
.map(Object::toString)
.collect(Collectors.joining("/"));
- return new JsonPrimitive(str);
+ return context.serialize(str);
}
@Override
bgstack15