Commit da8a78af authored by Him188's avatar Him188

Fix `contentToString`

parent 58e4c156
package net.mamoe.mirai.utils
import kotlin.reflect.KProperty1
import kotlin.reflect.jvm.javaField
internal actual fun KProperty1<*, *>.getValueAgainstPermission(receiver: Any): Any? {
return this.javaField?.apply { isAccessible = true }?.get(receiver)
}
\ No newline at end of file
package net.mamoe.mirai.utils
import kotlin.reflect.KProperty1
import kotlin.reflect.jvm.javaField
internal actual fun KProperty1<*, *>.getValueAgainstPermission(receiver: Any): Any? {
return this.javaField?.apply { isAccessible = true }?.get(receiver)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment