Skip to content

Commit a7583e8

Browse files
committed
Fixed to not expose internal function
from FasterXML/jackson-module-kotlin#962
1 parent 6b96583 commit a7583e8

File tree

1 file changed

+2
-4
lines changed
  • src/main/kotlin/io/github/projectmapk/jackson/module/kogera

1 file changed

+2
-4
lines changed

src/main/kotlin/io/github/projectmapk/jackson/module/kogera/Extensions.kt

+2-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ public fun ObjectMapper.registerKotlinModule(
5555

5656
public inline fun <reified T> jacksonTypeRef(): TypeReference<T> = object : TypeReference<T>() {}
5757

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 {
58+
@PublishedApi
59+
internal inline fun <reified T> Any?.checkTypeMismatch(): T {
6260
// Basically, this check assumes that T is non-null and the value is null.
6361
// Since this can be caused by both input or ObjectMapper implementation errors,
6462
// a more abstract RuntimeJsonMappingException is thrown.

0 commit comments

Comments
 (0)