Skip to content

Commit 16ec5f2

Browse files
authored
Update KotlinAnnotationIntrospector.kt (#616)
Fix using lazy init
1 parent 313b69c commit 16ec5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,6 @@ internal class KotlinAnnotationIntrospector(private val context: Module.SetupCon
215215
private fun KType.isRequired(): Boolean = !isMarkedNullable
216216

217217
companion object {
218-
val UNIT_TYPE: KType = Unit::class.createType()
218+
val UNIT_TYPE: KType by lazy { Unit::class.createType() }
219219
}
220220
}

0 commit comments

Comments
 (0)