I have an annotation like this : ```@Target(Annot...
# announcements
s
I have an annotation like this :
Copy code
@Target(AnnotationTarget.VALUE_PARAMETER, 
AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.RUNTIME)
annotation class TestAnnotation
now in an function call I want to see if a parameter is annotated or not something like this :
Copy code
fun testMe(myValue: Any) {
    // Want to see if "myValue" is annotated with "TestAnnotation" or not in runtime
    println(myValue::class.java.annotations.size)
}
the call to testMe is below
Copy code
testMe(@TestAnnotation "dummy value")
I am not getting the count
0
. Any other way to get the annotations associated with a parameter. I have tried both in Java and Kotlin and both the places its the same
0
.