java - Why does Jackson require ALWAYS visibility to detect multi-arguments setters? -
with jsonautodetect.visibility
set always
, setter multiple arguments correctly invoked during deserialization.
public void setsize( @jsonproperty("width") integer width, @jsonproperty("height") integer height) { super.setwidth(width); super.setheight(height); }
if i, on other hand, try limit visibility of setters, settervisibility = visibility.none
, setter not used though explicitely flag @jsonsetter
.
how can behavior explained? why jackson-275 seem imply there no support multi argument setters while visibility level support there?
Comments
Post a Comment