diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/utilities/json.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/utilities/json.kt b/core/src/main/kotlin/utilities/json.kt index 61736a99..eb666d31 100644 --- a/core/src/main/kotlin/utilities/json.kt +++ b/core/src/main/kotlin/utilities/json.kt @@ -20,10 +20,11 @@ private val objectMapper = run { } @PublishedApi -internal class TypeReference<T> private constructor( +internal class TypeReference<T> @PublishedApi internal constructor( internal val jackson: JacksonTypeReference<T> ) { companion object { + @PublishedApi internal inline operator fun <reified T> invoke(): TypeReference<T> = TypeReference(jacksonTypeRef()) } } |