@Test(expected = IllegalArgumentException.class) public void testByteConversion() { ObjectMapper mapper = new JSONBindingFactory().createBaseObjectMapper(); JsonNode paramValue = new IntNode(128); JavaType javaType = SimpleType.construct(byte.class); mapper.convertValue(paramValue, javaType); }
public ObjectMapper createBaseObjectMapper() { ObjectMapper mapper = new ObjectMapper(); JSONDateFormat jdf=new JSONDateFormat(); mapper.setDateFormat(jdf); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); if (enableAfterburner) { AfterburnerModule module = new AfterburnerModule(); module.setUseOptimizedBeanDeserializer(useOptimizedBeanDeserializer); module.setUseValueClassLoader(useValueClassLoader); mapper.registerModule(module); } applyNumericRangeBugfixes(mapper); return mapper; }
JSONBindingFactory implements DataBindingFactory { public ObjectMapper createBaseObjectMapper() { ObjectMapper mapper = new ObjectMapper(); JSONDateFormat jdf=new JSONDateFormat(); mapper.setDateFormat(jdf); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); if (enableAfterburner) { AfterburnerModule module = new AfterburnerModule(); module.setUseOptimizedBeanDeserializer(useOptimizedBeanDeserializer); module.setUseValueClassLoader(useValueClassLoader); mapper.registerModule(module); } applyNumericRangeBugfixes(mapper); return mapper; } }
JSONBindingFactory implements DataBindingFactory { public ObjectMapper createBaseObjectMapper() { ObjectMapper mapper = new ObjectMapper(); JSONDateFormat jdf=new JSONDateFormat(); mapper.setDateFormat(jdf); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); if (enableAfterburner) { AfterburnerModule module = new AfterburnerModule(); module.setUseOptimizedBeanDeserializer(useOptimizedBeanDeserializer); module.setUseValueClassLoader(useValueClassLoader); mapper.registerModule(module); } applyNumericRangeBugfixes(mapper); return mapper; } JSONBindingFactory(); }
JSONBindingFactory implements DataBindingFactory { public ObjectMapper createBaseObjectMapper() { ObjectMapper mapper = new ObjectMapper(); JSONDateFormat jdf=new JSONDateFormat(); mapper.setDateFormat(jdf); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); if (enableAfterburner) { AfterburnerModule module = new AfterburnerModule(); module.setUseOptimizedBeanDeserializer(useOptimizedBeanDeserializer); module.setUseValueClassLoader(useValueClassLoader); mapper.registerModule(module); } applyNumericRangeBugfixes(mapper); return mapper; } JSONBindingFactory(); ObjectMapper createBaseObjectMapper(); @Override UnMarshaller getUnMarshaller(); @Override Marshaller getMarshaller(); @Override FaultMarshaller getFaultMarshaller(); @Override FaultUnMarshaller getFaultUnMarshaller(); void setEnableAfterburner(boolean enableAfterburner); void setUseOptimizedBeanDeserializer(boolean useOptimizedBeanDeserializer); void setUseValueClassLoader(boolean useValueClassLoader); }
JSONBindingFactory implements DataBindingFactory { public ObjectMapper createBaseObjectMapper() { ObjectMapper mapper = new ObjectMapper(); JSONDateFormat jdf=new JSONDateFormat(); mapper.setDateFormat(jdf); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); if (enableAfterburner) { AfterburnerModule module = new AfterburnerModule(); module.setUseOptimizedBeanDeserializer(useOptimizedBeanDeserializer); module.setUseValueClassLoader(useValueClassLoader); mapper.registerModule(module); } applyNumericRangeBugfixes(mapper); return mapper; } JSONBindingFactory(); ObjectMapper createBaseObjectMapper(); @Override UnMarshaller getUnMarshaller(); @Override Marshaller getMarshaller(); @Override FaultMarshaller getFaultMarshaller(); @Override FaultUnMarshaller getFaultUnMarshaller(); void setEnableAfterburner(boolean enableAfterburner); void setUseOptimizedBeanDeserializer(boolean useOptimizedBeanDeserializer); void setUseValueClassLoader(boolean useValueClassLoader);  }