Hi, how do I test if a Kotlin method has a specifi...
# getting-started
a
Hi, how do I test if a Kotlin method has a specific Java annotation ?
s
depends on if you want it in a gradle plugin (in which case, check out KSP) or from within the code, in which case you'll like want to use reflection: https://kotlinlang.org/docs/reflection.html
a
No it's for a Minecraft plugin
m
@Ayfri mm, i think you can use the Kotlin 
KFunction
 _directly_: https://stackoverflow.com/questions/47510595/read-kotlin-function-annotation-value-using-reflection