Skip to content

Commit 41e3fdc

Browse files
committed
fixed warnings
1 parent f8713d3 commit 41e3fdc

File tree

1 file changed

+4
-4
lines changed
  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor

1 file changed

+4
-4
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/MappingReader.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package io.openapiprocessor.core.processor
1818

1919
import com.fasterxml.jackson.databind.DeserializationFeature
2020
import com.fasterxml.jackson.databind.ObjectMapper
21-
import com.fasterxml.jackson.databind.PropertyNamingStrategy
21+
import com.fasterxml.jackson.databind.PropertyNamingStrategies
2222
import com.fasterxml.jackson.databind.module.SimpleModule
2323
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
2424
import com.fasterxml.jackson.module.kotlin.KotlinModule
@@ -91,7 +91,7 @@ class MappingReader {
9191

9292
return ObjectMapper (YAMLFactory ())
9393
.configure (DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
94-
.setPropertyNamingStrategy (PropertyNamingStrategy.KEBAB_CASE)
94+
.setPropertyNamingStrategy (PropertyNamingStrategies.KEBAB_CASE)
9595
.registerModules (kotlinModule, module)
9696
}
9797

@@ -105,14 +105,14 @@ class MappingReader {
105105

106106
return ObjectMapper (YAMLFactory ())
107107
.configure (DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
108-
.setPropertyNamingStrategy (PropertyNamingStrategy.KEBAB_CASE)
108+
.setPropertyNamingStrategy (PropertyNamingStrategies.KEBAB_CASE)
109109
.registerModules(kotlinModule, module)
110110
}
111111

112112
private fun createVersionParser(): ObjectMapper {
113113
return ObjectMapper (YAMLFactory ())
114114
.configure (DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
115-
.setPropertyNamingStrategy (PropertyNamingStrategy.KEBAB_CASE)
115+
.setPropertyNamingStrategy (PropertyNamingStrategies.KEBAB_CASE)
116116
.registerModule (KotlinModule ())
117117
}
118118

0 commit comments

Comments
 (0)