com.fasterxml.jackson.module.kotlin.ConstructorValueCreator.kt Maven / Gradle / Ivy
package com.fasterxml.jackson.module.kotlin
import kotlin.reflect.KFunction
import kotlin.reflect.jvm.isAccessible
internal class ConstructorValueCreator(override val callable: KFunction) : ValueCreator() {
override val accessible: Boolean = callable.isAccessible
init {
// To prevent the call from failing, save the initial value and then rewrite the flag.
if (!accessible) callable.isAccessible = true
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy