File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ package com.fasterxml.jackson.module.kotlin
3
3
import com.fasterxml.jackson.databind.JsonMappingException
4
4
import kotlinx.metadata.KmClass
5
5
import kotlinx.metadata.KmValueParameter
6
+ import kotlinx.metadata.jvm.JvmFieldSignature
6
7
import kotlinx.metadata.jvm.JvmMethodSignature
7
8
import kotlinx.metadata.jvm.KotlinClassHeader
8
9
import kotlinx.metadata.jvm.KotlinClassMetadata
9
10
import java.lang.reflect.Constructor
11
+ import java.lang.reflect.Field
10
12
import java.lang.reflect.Method
11
13
import java.util.*
12
14
@@ -77,6 +79,9 @@ internal fun Constructor<*>.toSignature(): JvmMethodSignature =
77
79
internal fun Method.toSignature (): JvmMethodSignature =
78
80
JvmMethodSignature (this .name, parameterTypes.toDescString() + this .returnType.descriptor)
79
81
82
+ internal fun Field.toSignature (): JvmFieldSignature =
83
+ JvmFieldSignature (this .name, this .type.descriptor)
84
+
80
85
internal fun List<KmValueParameter>.hasVarargParam (): Boolean =
81
86
lastOrNull()?.let { it.varargElementType != null } ? : false
82
87
You can’t perform that action at this time.
0 commit comments