Skip to content

Commit 0f33d63

Browse files
authored
Merge pull request #6 from ProjectMapK/refactors
File organization
2 parents c3718a4 + ef0f0d8 commit 0f33d63

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import com.fasterxml.jackson.databind.JsonSerializer
66
import com.fasterxml.jackson.databind.module.SimpleModule
77
import java.util.*
88
import kotlin.reflect.KClass
9+
import kotlin.reflect.KType
10+
import kotlin.reflect.jvm.jvmErasure
911

1012
internal fun JsonMappingException.wrapWithPath(refFrom: Any?, refFieldName: String) = JsonMappingException.wrapWithPath(this, refFrom, refFieldName)
1113
internal fun JsonMappingException.wrapWithPath(refFrom: Any?, index: Int) = JsonMappingException.wrapWithPath(this, refFrom, index)
@@ -39,3 +41,5 @@ internal fun Int.toBitSet(): BitSet {
3941
// The JvmInline annotation can be added to Java classes,
4042
// so the isKotlinClass decision is necessary (the order is preferable in terms of possible frequency).
4143
internal fun Class<*>.isUnboxableValueClass() = annotations.any { it is JvmInline } && this.isKotlinClass()
44+
45+
internal fun KType.erasedType(): Class<out Any> = this.jvmErasure.java

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)