We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b0819 commit 4ce5d44Copy full SHA for 4ce5d44
src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinModule.kt
@@ -14,11 +14,7 @@ import com.fasterxml.jackson.module.kotlin.SingletonSupport.DISABLED
14
import java.util.*
15
import kotlin.reflect.KClass
16
17
-private const val metadataFqName = "kotlin.Metadata"
18
-
19
-fun Class<*>.isKotlinClass(): Boolean {
20
- return declaredAnnotations.any { it.annotationClass.java.name == metadataFqName }
21
-}
+fun Class<*>.isKotlinClass(): Boolean = this.isAnnotationPresent(Metadata::class.java)
22
23
/**
24
* @param reflectionCacheSize Default: 512. Size, in items, of the caches used for mapping objects.
0 commit comments