Merge remote-tracking branch 'origin/master'

This commit is contained in:
ryoii 2020-03-30 21:33:45 +08:00
commit 828f1e6ec0

View File

@ -307,9 +307,11 @@ private val trySetAccessibleMethod: Method? = runCatching {
}.getOrNull()
private fun Constructor<out PluginBase>.againstPermission() {
trySetAccessibleMethod?.let { it.invoke(this, true) }
?: kotlin.runCatching {
@Suppress("DEPRECATED")
this.isAccessible = true
}
kotlin.runCatching {
trySetAccessibleMethod?.let { it.invoke(this) }
?: kotlin.runCatching {
@Suppress("DEPRECATED")
this.isAccessible = true
}
}
}