You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JsonbVisibility(value = PrivateVisibilityStrategy.class)
public class Task{
@JsonbProperty(nillable = true)
public Set<Item> getItems(){
return ...;
}
}
Now, even I explicitly assign @JsonbProperty on a getter, the value is not (de)serialized because of @JsonbVisibility(value = PrivateVisibilityStrategy.class). Is this okay? If I choose to select a getter to (de)serialize as an exception, then json-b should take the inner annotation with higher priority than the class level annotation.
So the precedence should be (from higher to lower):
runtime configuration > property/getter/setter annotations > class level annotations
The text was updated successfully, but these errors were encountered:
nimo23
changed the title
inner class annotations should have higher precedence than class annotations
annotations within class should have higher precedence than class annotations
Aug 10, 2019
I have this:
Now, even I explicitly assign
@JsonbProperty
on a getter, the value is not (de)serialized because of@JsonbVisibility(value = PrivateVisibilityStrategy.class)
. Is this okay? If I choose to select a getter to (de)serialize as an exception, then json-b should take the inner annotation with higher priority than the class level annotation.So the precedence should be (from higher to lower):
runtime configuration > property/getter/setter annotations > class level annotations
The text was updated successfully, but these errors were encountered: