We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62dd666 commit 62017bfCopy full SHA for 62017bf
1 file changed
src/main/kotlin/io/openapiprocessor/spring/processor/SpringFrameworkAnnotations.kt
@@ -46,14 +46,14 @@ class SpringFrameworkAnnotations: FrameworkAnnotations {
46
}
47
48
private fun getAnnotation(key: String): FrameworkAnnotation {
49
- return PARAMETER_ANNOTATIONS[key]!!
+ return PARAMETER_ANNOTATIONS.getValue(key)
50
51
52
private fun getMultipartAnnotation(contentType: String?): FrameworkAnnotation {
53
return if (contentType != null) {
54
- PARAMETER_ANNOTATIONS["multipart-part"]!!
+ PARAMETER_ANNOTATIONS.getValue("multipart-part")
55
} else {
56
- PARAMETER_ANNOTATIONS["multipart-param"]!!
+ PARAMETER_ANNOTATIONS.getValue("multipart-param")
57
58
59
0 commit comments