Annotation Tutorial for Dummies in Kotlin
Published in
7 min readSep 12, 2018
Annotation always works like a magic to me. Just add @ to some keyword, and magic happens! Where is the actual work done? Is it some black magic?
We see @Override
and think perhaps we could get to see the source by command+click into it. Below is what we see…
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface Override {
}