michaelrocks
11/28/2015, 9:22 PM@Target({ METHOD, CONSTRUCTOR, FIELD })
@Retention(RUNTIME)
@Documented
public @interface Inject {}
Another one is written in Kotlin:
@Retention(AnnotationRetention.RUNTIME)
@Qualifier
annotation class EmptyQualifier
When I use these two annotations on a field, the Java annotation is applied to the field, while the Kotlin annotation is applied to a private synthetic accessor method for the field. However if I add @Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION, AnnotationTarget.FIELD) to the Kotlin annotation, everything starts working as expected.