Skip to content

Commit

Permalink
Fix #1916
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 29, 2018
1 parent f3ba50c commit be45354
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 86 deletions.
1 change: 1 addition & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ Versions: 3.x (for earlier see VERSION-2.x)
into `JsonDeserializer`
#1889: Merge `ContextualSerializer` into `JsonSerializer`, `ContextualDeserializer`
into `JsonDeserializer`
#1916: Change `MapperFeature.USE_GETTERS_AS_SETTERS)` default to `false`
- Remove `MappingJsonFactory`
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public enum MapperFeature implements ConfigFeature
* precedence than setters, so they are only used if no
* setter is found for the Map/Collection property.
*<p>
* Feature is enabled by default.
* Feature is disabled by default since 3.0 (with 2.x was enabled)
*/
USE_GETTERS_AS_SETTERS(true),
USE_GETTERS_AS_SETTERS(false),

/**
* Feature that determines how <code>transient</code> modifier for fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void testFeatureDefaults()

// Expected defaults:
assertTrue(cfg.isEnabled(MapperFeature.USE_ANNOTATIONS));
assertTrue(cfg.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS));
assertFalse(cfg.isEnabled(MapperFeature.USE_GETTERS_AS_SETTERS)); // 3.0
assertTrue(cfg.isEnabled(MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS));

assertFalse(cfg.isEnabled(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS));
Expand Down
Loading

0 comments on commit be45354

Please sign in to comment.