File tree 3 files changed +3
-5
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Contributors:
18
18
# 2 .17.0 (not yet released)
19
19
20
20
WrongWrong (@k163377 )
21
+ * #745 : Modified isKotlinClass determination method.
21
22
* #744 : API deprecation update for KotlinModule.
22
23
* #743 : Fix handling of vararg deserialization.
23
24
* #742 : Minor performance improvements to NullToEmptyCollection/Map.
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Co-maintainers:
18
18
19
19
2.17 .0 (not yet released )
20
20
21
+ #745 : Modified isKotlinClass determination method .
21
22
#744 : Functions that were already marked as deprecated ,
22
23
such as the primary constructor in KotlinModule and some functions in Builder ,
23
24
are scheduled for removal in 2.18 and their DeprecationLevel has been raised to Error .
Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ import com.fasterxml.jackson.module.kotlin.SingletonSupport.DISABLED
14
14
import java.util.*
15
15
import kotlin.reflect.KClass
16
16
17
- private const val metadataFqName = " kotlin.Metadata"
18
-
19
- fun Class <* >.isKotlinClass (): Boolean {
20
- return declaredAnnotations.any { it.annotationClass.java.name == metadataFqName }
21
- }
17
+ fun Class <* >.isKotlinClass (): Boolean = this .isAnnotationPresent(Metadata ::class .java)
22
18
23
19
/* *
24
20
* @param reflectionCacheSize Default: 512. Size, in items, of the caches used for mapping objects.
You can’t perform that action at this time.
0 commit comments