File tree 1 file changed +14
-4
lines changed
src/main/java/com/fasterxml/jackson/databind
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -1136,17 +1136,27 @@ public VisibilityChecker<?> getVisibilityChecker() {
1136
1136
}
1137
1137
1138
1138
/**
1139
- * Method for setting currently configured visibility checker;
1139
+ * @deprecated Since 2.6 use {@link #setVisibility(VisibilityChecker)} instead.
1140
+ */
1141
+ public void setVisibilityChecker (VisibilityChecker <?> vc ) {
1142
+ setVisibility (vc );
1143
+ }
1144
+
1145
+ /**
1146
+ * Method for setting currently configured {@link VisibilityChecker},
1140
1147
* object used for determining whether given property element
1141
1148
* (method, field, constructor) can be auto-detected or not.
1142
1149
* This default checker is used if no per-class overrides
1143
1150
* are defined.
1144
- */
1145
- public void setVisibilityChecker (VisibilityChecker <?> vc ) {
1151
+ *
1152
+ * @since 2.6
1153
+ */
1154
+ public ObjectMapper setVisibility (VisibilityChecker <?> vc ) {
1146
1155
_deserializationConfig = _deserializationConfig .with (vc );
1147
1156
_serializationConfig = _serializationConfig .with (vc );
1157
+ return this ;
1148
1158
}
1149
-
1159
+
1150
1160
/**
1151
1161
* Convenience method that allows changing configuration for
1152
1162
* underlying {@link VisibilityChecker}s, to change details of what kinds of
You can’t perform that action at this time.
0 commit comments