While ObjectMapper.setSerializationInclusion() was deprecated a while ago (in 2.0) -- to be replaced with ObjectMapper.setDefaultPropertyInclusion() -- MapperBuilder.serializationInclusion() was not similarly deprecated. Since this method has replacement (MapperBuilder.defaultPropertyInclusion()) -- and since methods are removed from 3.0, let's mark this method as deprecated
.