Skip to content

Commit 055bd47

Browse files
committed
Fixed to not expose internal function
wrt #937
1 parent 3fef434 commit 055bd47

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ fun ObjectMapper.registerKotlinModule(initializer: KotlinModule.Builder.() -> Un
5353

5454
inline fun <reified T> jacksonTypeRef(): TypeReference<T> = object: TypeReference<T>() {}
5555

56-
/**
57-
* It is public due to Kotlin restrictions, but should not be used externally.
58-
*/
59-
inline fun <reified T> Any?.checkTypeMismatch(): T {
56+
@PublishedApi
57+
internal inline fun <reified T> Any?.checkTypeMismatch(): T {
6058
// Basically, this check assumes that T is non-null and the value is null.
6159
// Since this can be caused by both input or ObjectMapper implementation errors,
6260
// a more abstract RuntimeJsonMappingException is thrown.

0 commit comments

Comments
 (0)