We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b96583 commit a7583e8Copy full SHA for a7583e8
src/main/kotlin/io/github/projectmapk/jackson/module/kogera/Extensions.kt
@@ -55,10 +55,8 @@ public fun ObjectMapper.registerKotlinModule(
55
56
public inline fun <reified T> jacksonTypeRef(): TypeReference<T> = object : TypeReference<T>() {}
57
58
-/**
59
- * It is public due to Kotlin restrictions, but should not be used externally.
60
- */
61
-public inline fun <reified T> Any?.checkTypeMismatch(): T {
+@PublishedApi
+internal inline fun <reified T> Any?.checkTypeMismatch(): T {
62
// Basically, this check assumes that T is non-null and the value is null.
63
// Since this can be caused by both input or ObjectMapper implementation errors,
64
// a more abstract RuntimeJsonMappingException is thrown.
0 commit comments