Sudhir Singh Khanger
05/16/2018, 3:09 AMRetentionPolicy.CLASS in Kotlin?
@Scope
@Retention(RetentionPolicy.CLASS)
public @interface ActivityScope {
}
to
@Scope
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class ActivityScope
I see three options RUNTIME, BINARY, and SOURCE.
Edit: - I suppose it is the SOURCE.
AnnotationRetention.SOURCE - Annotation isn't stored in binary output.
RetentionPolicy.CLASS - Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time.