aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/utils/IO.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/equalparts/cardbase/utils/IO.java')
-rw-r--r--src/eu/equalparts/cardbase/utils/IO.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/eu/equalparts/cardbase/utils/IO.java b/src/eu/equalparts/cardbase/utils/IO.java
deleted file mode 100644
index 5d4bef5..0000000
--- a/src/eu/equalparts/cardbase/utils/IO.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package eu.equalparts.cardbase.utils;
-
-import com.fasterxml.jackson.databind.DeserializationFeature;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-/**
- * This class simply holds an {@code ObjectMapper} to be used whenever JSON must be parsed.
- * In the future it may be removed in favour of individual mappers for each function.
- *
- * @author Eduardo Pedroni
- */
-public final class IO {
-
- /**
- * The Jackson {@code ObjectMapper} which parses fetched JSON files.
- */
- public static final ObjectMapper jsonMapper = createMapper();
-
- /**
- * Private constructor, this class is not to be instantiated.
- */
- private IO() {}
-
- /**
- * Instantiate and configure Jackson mapper statically.
- *
- * @return the {@code ObjectMapper}, ready to use.
- */
- private static ObjectMapper createMapper() {
- ObjectMapper objectMapper = new ObjectMapper();
- // TODO decide what to do about this
- objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
- return objectMapper;
- }
-}