I have an ObjectMapper which happens NOT to be a JsonMapper, that I receive 
from a component outside my control.

I would like to do something equivalent to 
objectMapper.disable(MapperFeature.USE_ANNOTATIONS); but this has been 
deprecated since 2.13.  The deprecation message tells me I should use 
JsonMapper.builder().disable(MapperFeature.USE_ANNOTATIONS).build(), but 
there is other configuration in my ObjectMapper that I need to preserve, 
and creating a whole new JsonMapper just won't work for me.  

If my original object were a JsonMapper, I imagine I could 
use ((JsonMapper) objectMapper).rebuild() to get a builder, then go from 
there.  But it's not.  

Any idea how I can disable a MapperFeature on an ObjectMapper in a 
non-deprecated way?

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/6c748d54-eb33-4a35-a993-eeca9ad80018n%40googlegroups.com.

Reply via email to