Make reflectField internal
This commit is contained in:
@@ -3,7 +3,7 @@ package net.axay.kspigot.utils
|
|||||||
/**
|
/**
|
||||||
* Loads the value of the given field for this object.
|
* Loads the value of the given field for this object.
|
||||||
*/
|
*/
|
||||||
fun <T> Any.reflectField(field: String): T {
|
internal fun <T> Any.reflectField(field: String): T {
|
||||||
val reflectedField = this::class.java.getDeclaredField(field)
|
val reflectedField = this::class.java.getDeclaredField(field)
|
||||||
reflectedField.isAccessible = true
|
reflectedField.isAccessible = true
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
Reference in New Issue
Block a user