Skip to content

Commit 98abe64

Browse files
committed
minor tweak to AnnotationIntrospector call forwarding (2.6 vs 2.7)
1 parent 3e14f2c commit 98abe64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,16 @@ public PropertyName findRootName(AnnotatedClass ac) {
231231
* false if for deserialization
232232
*/
233233
public String[] findPropertiesToIgnore(Annotated ac, boolean forSerialization) {
234-
// !!! Change direction in 2.7 or later
235-
return findPropertiesToIgnore(ac);
234+
return null;
236235
}
237236

238237
/**
239238
* @deprecated Since 2.6, use variant that takes second argument.
240239
*/
241240
@Deprecated
242241
public String[] findPropertiesToIgnore(Annotated ac) {
243-
return null;
242+
// Changed in 2.7 to call from old to new; with 2.6 was opposite
243+
return findPropertiesToIgnore(ac, true);
244244
}
245245

246246
/**

0 commit comments

Comments
 (0)