Thanks, this was really helpful. I always get surprised about the many 
possible settings that Jackson allows, and this was one of those I never 
payed any attention to previously.

On Sunday, April 5, 2020 at 6:48:35 PM UTC+2, Tatu Saloranta wrote:
>
>
> Good question! 
>
> This is intentional, controlled by feature: 
>
>     MapperFeature.INFER_PROPERTY_MUTATORS 
>
> which, when enabled (default: true) will "pull in" otherwise 
> non-visible mutators (setter or field), as long as there is accessor 
> (visible get method). 
> If you do not wish this to happen (for example, due to security 
> reasons), you would want to disable this setting -- or, remove 
> visibility of getters as well. 
>
> I hope this helps, 
>
> -+ Tatu +- 
>

-- 
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/c1c6df1d-2383-45cc-b4be-00325abdf589%40googlegroups.com.

Reply via email to