remove warning

This commit is contained in:
Athou
2023-04-29 09:10:22 +02:00
parent 0a99dacb6b
commit 15f93b198c

View File

@@ -95,7 +95,8 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
@Override
protected ObjectMapper configureObjectMapper(ObjectMapper objectMapper) {
// disable case sensitivity because EnvironmentSubstitutor maps MYPROPERTY to myproperty and not to myProperty
return objectMapper.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
return objectMapper
.setConfig(objectMapper.getDeserializationConfig().with(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES));
}
});