We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fef434 + 055bd47 commit 5b51812Copy full SHA for 5b51812
src/main/kotlin/com/fasterxml/jackson/module/kotlin/Extensions.kt
@@ -53,10 +53,8 @@ fun ObjectMapper.registerKotlinModule(initializer: KotlinModule.Builder.() -> Un
53
54
inline fun <reified T> jacksonTypeRef(): TypeReference<T> = object: TypeReference<T>() {}
55
56
-/**
57
- * It is public due to Kotlin restrictions, but should not be used externally.
58
- */
59
-inline fun <reified T> Any?.checkTypeMismatch(): T {
+@PublishedApi
+internal inline fun <reified T> Any?.checkTypeMismatch(): T {
60
// Basically, this check assumes that T is non-null and the value is null.
61
// Since this can be caused by both input or ObjectMapper implementation errors,
62
// a more abstract RuntimeJsonMappingException is thrown.
0 commit comments