Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Project: jackson-databind

2.21.0 (not yet released)

#1547: Un-deprecate `SerializationFeature.WRITE_EMPTY_JSON_ARRAYS`
#5045: If there is a no-parameter constructor marked as `JsonCreator` and
a constructor reported as `DefaultCreator`, latter is incorrectly used
(reported by @wrongwrong)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,18 @@ public enum SerializationFeature implements ConfigFeature
* dynamically changed on per-call basis, because its effect is considered during
* construction of serializers and property handlers.
*<p>
* Feature is enabled by default.
*
* @deprecated Since 2.8 there are better mechanism for specifying filtering; specifically
* NOTE: Since 2.8 there are better mechanism for specifying filtering; specifically
* using {@link com.fasterxml.jackson.annotation.JsonInclude} or configuration overrides.
* This feature was deprecated from 2.8 through to 2.20 but no longer deprecated
* since 2.21 / 3.0.
*<p>
* Feature is enabled by default.
*/
@Deprecated // since 2.8
WRITE_EMPTY_JSON_ARRAYS(true),

/**
* Feature added for interoperability, to work with oddities of
* so-called "BadgerFish" convention.
* Feature added for inter-operability (originally to work with oddities of
* so-called "BadgerFish" convention).
* Feature determines handling of single element {@link java.util.Collection}s
* and arrays: if enabled, {@link java.util.Collection}s and arrays that contain exactly
* one element will be serialized as if that element itself was serialized.
Expand Down