Skip to content

Commit 6982e5c

Browse files
committed
Fix #1484: change MapperFeature.DEFAULT_VIEW_INCLUSION default to false
1 parent b63eb33 commit 6982e5c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

release-notes/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Versions: 3.x (for earlier see VERSION-2.x)
1111
(contributed by Joo-Hyuk K)
1212
#1058: Add a way to pass std and format-specific parser/generator flags during
1313
parser/generation construction
14+
#1484: Changed default of `MapperFeature.DEFAULT_VIEW_INCLUSION` to `false` in 3.0
1415
#1600: Serializing locale with underscore, not standard hyphen
1516
(requested by Alexander K)
1617
#1762: `StdDateFormat`: serialize time offset using colon

src/main/java/tools/jackson/databind/MapperFeature.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,12 @@ public enum MapperFeature
259259
* changes between "opt-in" (feature disabled) and
260260
* "opt-out" (feature enabled) modes.
261261
*<p>
262-
* Default value is enabled, meaning that non-annotated
263-
* properties are included in all views if there is no
262+
* Feature is disabled by default as of Jackson 3.0 (in 2.x it was enabled),
263+
* meaning that non-annotated
264+
* properties are not included views if there is no
264265
* {@link com.fasterxml.jackson.annotation.JsonView} annotation.
265-
*<p>
266-
* Feature is enabled by default.
267266
*/
268-
DEFAULT_VIEW_INCLUSION(true),
267+
DEFAULT_VIEW_INCLUSION(false),
269268

270269
/*
271270
/**********************************************************************

0 commit comments

Comments
 (0)