[F] Fix warnings

This commit is contained in:
Azalea
2024-11-21 12:26:36 -05:00
parent a947a81772
commit 0e176d5608
4 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ val JACKSON = jacksonObjectMapper().apply {
registerModule(JSON_FUZZY_BOOLEAN)
registerModule(JSON_DATETIME)
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
setPropertyNamingStrategy(PropertyNamingStrategy.LOWER_CAMEL_CASE);
propertyNamingStrategy = PropertyNamingStrategies.LOWER_CAMEL_CASE;
}
inline fun <reified T> ObjectMapper.parse(str: Str) = readValue(str, T::class.java)
inline fun <reified T> ObjectMapper.parse(map: Map<*, *>) = convertValue(map, T::class.java)