miha-x64
10/08/2018, 7:09 PMfunction.annotationEntries.any { it.shortName?.identifier == "PublishedApi" }
works but may be false-positive for some.custom.package.PublishedApi
. How should I fix this, where's annotation FQN?karelpeeters
10/08/2018, 10:55 PMfunction.findAnnotation<PublishedApi>() != null
, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect.full/find-annotation.htmlmiha-x64
10/09/2018, 7:19 AM