Skip to content

Commit cb6742d

Browse files
committed
modify
1 parent c8a131a commit cb6742d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinNamesAnnotationIntrospector.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ internal class KotlinNamesAnnotationIntrospector(val module: KotlinModule, val c
5959
private fun hasCreatorAnnotation(member: AnnotatedConstructor): Boolean {
6060
// don't add a JsonCreator to any constructor if one is declared already
6161

62-
val kClass = cache.kotlinFromJava(member.declaringClass as Class<Any>).apply {
63-
if (this in ignoredClassesForImplyingJsonCreator) return false
64-
}
62+
val kClass = cache.kotlinFromJava(member.declaringClass as Class<Any>)
63+
.apply { if (this in ignoredClassesForImplyingJsonCreator) return false }
6564
val kConstructor = cache.kotlinFromJava(member.annotated as Constructor<Any>)
6665

6766
return if (kConstructor != null) {

0 commit comments

Comments
 (0)