@Test public void testConvertToObjectWithNullArg() throws Exception { Integer value = (Integer) new TypeConverter<Integer>(Integer.class).convertToObject(null); assertNull(value); }
public Object convertToObject(String str) throws IOException { if(str == null) { return null; } return mapper.readValue(str, clazz); }
TypeConverter implements ObjectConverter { public Object convertToObject(String str) throws IOException { if(str == null) { return null; } return mapper.readValue(str, clazz); } }
TypeConverter implements ObjectConverter { public Object convertToObject(String str) throws IOException { if(str == null) { return null; } return mapper.readValue(str, clazz); } TypeConverter(Class<T> clazz); }
TypeConverter implements ObjectConverter { public Object convertToObject(String str) throws IOException { if(str == null) { return null; } return mapper.readValue(str, clazz); } TypeConverter(Class<T> clazz); @SuppressWarnings("unchecked") String convertToString(Object obj); Object convertToObject(String str); }
TypeConverter implements ObjectConverter { public Object convertToObject(String str) throws IOException { if(str == null) { return null; } return mapper.readValue(str, clazz); } TypeConverter(Class<T> clazz); @SuppressWarnings("unchecked") String convertToString(Object obj); Object convertToObject(String str);  }