From f3ce19d1c5be34575adeaed0cf991a609ac8a10f Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 23 Jul 2015 19:31:58 +0200 Subject: Reorganised the test folder a bit more, started working on CLI tests, a bit tricky, will require refactoring --- src/eu/equalparts/cardbase/utils/MTGUniverse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eu/equalparts/cardbase/utils') diff --git a/src/eu/equalparts/cardbase/utils/MTGUniverse.java b/src/eu/equalparts/cardbase/utils/MTGUniverse.java index 1e8efc2..7a58c1c 100644 --- a/src/eu/equalparts/cardbase/utils/MTGUniverse.java +++ b/src/eu/equalparts/cardbase/utils/MTGUniverse.java @@ -98,7 +98,7 @@ public final class MTGUniverse { if (cardSetCache.containsKey(validCode)) { requestedSet = cardSetCache.get(validCode); } - // not cached; fetch, cache and return it + // not cached; fetch and cache else { requestedSet = parseFullSet(JSON.mapper.readValue(new URL(BASE_DATA_URL + validCode + ".json"), JsonNode.class)); cardSetCache.put(validCode, requestedSet); @@ -217,7 +217,7 @@ public final class MTGUniverse { * These fields are optional and are set to null if not present. */ fcs.gathererCode = jsonTree.hasNonNull("gathererCode") ? jsonTree.get("gathererCode").asText() : null; - fcs.border = jsonTree.hasNonNull("border") ? jsonTree.get("border").asText() : null; + fcs.border = jsonTree.hasNonNull("border") ? jsonTree.get("border").asText() : null; fcs.type = jsonTree.hasNonNull("type") ? jsonTree.get("type").asText() : null; fcs.block = jsonTree.hasNonNull("block") ? jsonTree.get("block").asText() : null; -- cgit v1.2.3