Skip to content

Commit a8a4002

Browse files
committed
Further improve @JsonSerialize.include javadocs to emphasize deprecation
1 parent c00dd8a commit a8a4002

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/annotation/JsonSerialize.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ public Class<? extends JsonSerializer> nullsUsing()
161161
* being property setting for a Bean constructed with default no-arg
162162
* constructor, often null).
163163
*<p>
164+
* This property has been replaced by special-purpose {@link com.fasterxml.jackson.annotation.JsonInclude}
165+
* annotation, introduced in Jackson 2.0.
166+
*<p>
164167
* Note that Jackson 2.3 changed default to <code>DEFAULT_INCLUSION</code>,
165168
* which is roughly same as saying "whatever". This is important because
166169
* it allows hierarchic default values to be used.

0 commit comments

Comments
 (0)