Skip to content

Commit 5b51812

Browse files
authored
Merge pull request #962 from k163377/fix/published
Fixed to not expose internal function
2 parents 3fef434 + 055bd47 commit 5b51812

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

+2-4
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)