Skip to content

Commit 62017bf

Browse files
committed
sonar kotlin:S6611
1 parent 62dd666 commit 62017bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/io/openapiprocessor/spring/processor/SpringFrameworkAnnotations.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ class SpringFrameworkAnnotations: FrameworkAnnotations {
4646
}
4747

4848
private fun getAnnotation(key: String): FrameworkAnnotation {
49-
return PARAMETER_ANNOTATIONS[key]!!
49+
return PARAMETER_ANNOTATIONS.getValue(key)
5050
}
5151

5252
private fun getMultipartAnnotation(contentType: String?): FrameworkAnnotation {
5353
return if (contentType != null) {
54-
PARAMETER_ANNOTATIONS["multipart-part"]!!
54+
PARAMETER_ANNOTATIONS.getValue("multipart-part")
5555
} else {
56-
PARAMETER_ANNOTATIONS["multipart-param"]!!
56+
PARAMETER_ANNOTATIONS.getValue("multipart-param")
5757
}
5858
}
5959

0 commit comments

Comments
 (0)