6263646566676869
public static <T> T decodeValue(String str, Class<?> clazz) throws DecodeException { try { return (T)mapper.readValue(str, clazz); } catch (Exception e) { throw new DecodeException("Failed to decode:" + e.getMessage()); } }
115116117118119120121122
public static Object decodeValue(String str, Class<?> clazz) throws DecodeException { try { return mapper.readValue(str, clazz); } catch (Exception e) { throw new DecodeException("Failed to decode"); } }