Fix warning about deprecated SNAKE_CASE constant

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 22c1b8a183
commit 0a92ce020d
  1. 4
      json/src/main/kotlin/org/openrs2/json/ObjectMapperProvider.kt
  2. 4
      yaml/src/main/kotlin/org/openrs2/yaml/ObjectMapperProvider.kt

@ -2,7 +2,7 @@ package org.openrs2.json
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import javax.inject.Inject
import javax.inject.Provider
@ -14,6 +14,6 @@ public class ObjectMapperProvider @Inject constructor(
return ObjectMapper()
.registerKotlinModule()
.registerModules(modules)
.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE)
}
}

@ -2,7 +2,7 @@ package org.openrs2.yaml
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import javax.inject.Inject
@ -15,6 +15,6 @@ public class ObjectMapperProvider @Inject constructor(
return ObjectMapper(YAMLFactory())
.registerKotlinModule()
.registerModules(modules)
.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE)
}
}

Loading…
Cancel
Save