diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializer.java index 3bb42b7..6830f70 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializer.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializer.java @@ -24,7 +24,7 @@ public class EntityDeserializer extends JsonDeserializer { private final ObjectMapper mapper = new ObjectMapper(); @Override - public Entity deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException { + public Entity deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { ObjectCodec codec = p.getCodec(); JsonNode node = codec.readTree(p); diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityIDDeserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityIDDeserializer.java index 4fcf3cf..5eb805f 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityIDDeserializer.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityIDDeserializer.java @@ -13,7 +13,7 @@ import java.io.IOException; public class EntityIDDeserializer extends JsonDeserializer { @Override - public EntityID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException { + public EntityID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { ObjectCodec codec = p.getCodec(); JsonNode node = codec.readTree(p); diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java index 33ed465..dd33762 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java @@ -25,7 +25,7 @@ public class EventDeserializer extends JsonDeserializer { private final ObjectMapper mapper = new ObjectMapper(); @Override - public Event deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException { + public Event deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { ObjectCodec codec = p.getCodec(); JsonNode node = codec.readTree(p); diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/IntVector2Deserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/IntVector2Deserializer.java index f154762..5741a9c 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/IntVector2Deserializer.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/IntVector2Deserializer.java @@ -16,7 +16,7 @@ public class IntVector2Deserializer extends JsonDeserializer { ObjectMapper mapper = new ObjectMapper(); @Override - public IntVector2 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException { + public IntVector2 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { var values = mapper.readValue(p, Integer[].class); IntVector2 result = new IntVector2(values[0], values[1]); return result; diff --git a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializerTest.java b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializerTest.java index df604c8..3e0eed8 100644 --- a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializerTest.java +++ b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EntityDeserializerTest.java @@ -96,7 +96,7 @@ class EntityDeserializerTest { "position": [12357, 1371113] } """; - assertThat((Rock) mapper.readValue(jsonRepresentingRock, Rock.class)) + assertThat(mapper.readValue(jsonRepresentingRock, Rock.class)) .isEqualTo(rock); } @@ -258,4 +258,4 @@ class EntityDeserializerTest { characterName.setLength(0); // empty the StringBuilder } } -} \ No newline at end of file +}