From 4ee655bef4cdf9e62a1b247e77754441de806f22 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Mon, 8 Jun 2015 16:57:44 +0200 Subject: Implemented sorting using reflection, not sure it was a good idea though --- src/eu/equalparts/cardbase/utils/IO.java | 35 -------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/eu/equalparts/cardbase/utils/IO.java (limited to 'src/eu/equalparts/cardbase/utils/IO.java') 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; - } -} -- cgit v1.2.3