diff --git a/release-notes/VERSION b/release-notes/VERSION index 6130f29204..32760ae5a2 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -56,6 +56,7 @@ Versions: 3.x (for earlier see VERSION-2.x) (contributed by Joo-Hyuk K) #1058: Add a way to pass std and format-specific parser/generator flags during parser/generation construction +#1484: Changed default of `MapperFeature.DEFAULT_VIEW_INCLUSION` to `false` in 3.0 #1600: Serializing locale with underscore, not standard hyphen (requested by Alexander K) #1762: `StdDateFormat`: serialize time offset using colon diff --git a/src/main/java/tools/jackson/databind/MapperFeature.java b/src/main/java/tools/jackson/databind/MapperFeature.java index 2dac6d3746..51b1bf023d 100644 --- a/src/main/java/tools/jackson/databind/MapperFeature.java +++ b/src/main/java/tools/jackson/databind/MapperFeature.java @@ -259,13 +259,12 @@ public enum MapperFeature * changes between "opt-in" (feature disabled) and * "opt-out" (feature enabled) modes. *

- * Default value is enabled, meaning that non-annotated - * properties are included in all views if there is no + * Feature is disabled by default as of Jackson 3.0 (in 2.x it was enabled), + * meaning that non-annotated + * properties are not included views if there is no * {@link com.fasterxml.jackson.annotation.JsonView} annotation. - *

- * Feature is enabled by default in 2.x: will be disabled in 3.0. */ - DEFAULT_VIEW_INCLUSION(true), + DEFAULT_VIEW_INCLUSION(false), /* /**********************************************************************