Update auto-configured ParameterNamesModule to use DEFAULT creator mode

The PROPERTIES creator mode has the unfortunate side-effect of stopping
mixins from working. This commit updates the auto-configured module to
use the DEFAULT creator mode instead.

Closes gh-4336
pull/3160/merge
Andy Wilkinson 9 years ago
parent 7742dafccf
commit eaa4d900eb

@ -143,7 +143,7 @@ public class JacksonAutoConfiguration {
@Bean
@ConditionalOnMissingBean(ParameterNamesModule.class)
public ParameterNamesModule parameterNamesModule() {
return new ParameterNamesModule(JsonCreator.Mode.PROPERTIES);
return new ParameterNamesModule(JsonCreator.Mode.DEFAULT);
}
}

@ -413,7 +413,7 @@ public class JacksonAutoConfigurationTests {
@Test
public void parameterNamesModuleIsAutoConfigured() {
assertParameterNamesModuleCreatorBinding(Mode.PROPERTIES,
assertParameterNamesModuleCreatorBinding(Mode.DEFAULT,
JacksonAutoConfiguration.class);
}

Loading…
Cancel
Save