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 .

Comment From: cowtowncoder

Note: change committed earlier, included in 2.20.0: https://github.com/FasterXML/jackson-databind/commit/cb45537657a15ee18fe3e6177a31378074541851 .

Also see #5294 for follow-up discussion.