Skip to content

Commit 064a8d5

Browse files
authored
Update @JsonInclude as per databind#5369 (#331)
1 parent 9d670ac commit 064a8d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonInclude.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@
4545
*<p>
4646
* In addition to {@code Map}s, {@code content} concept is also supported for referential
4747
* types (like {@link java.util.concurrent.atomic.AtomicReference}).
48-
* Note that `content` is NOT currently (as of Jackson 2.20) supported for
48+
*<pre>
49+
* (For Jackson 2 only) Note that `content` is NOT currently (as of Jackson 2.20) supported for
4950
* arrays or {@link java.util.Collection}s; support may be added in
5051
* future versions (but if so, will be configurable to allow disabling it).
52+
*<pre>
53+
* (For Jackson 3 only) As of Jackson 3.1.0, {@link #content()} also supports {@link java.util.Collection}'s
54+
* when {@code tools.jackson.databind.SerializationFeature#APPLY_JSON_INCLUDE_FOR_COLLECTIONS}
55+
* feature is enabled --disabled by default for backward-compatibility. (see [databind#5369] for more detail)
56+
* Note that `content` is NOT currently (as of Jackson 3.1.0) supported for arrays, but may be supported in future versions.
5157
*
5258
* @since 2.0
5359
*/

0 commit comments

Comments
 (0)