Commit eaa4d900 authored by Andy Wilkinson's avatar Andy Wilkinson

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
parent 7742dafc
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment