Short version
Not interesting to add annotation. Because, as it has this @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.SOURCE), it will not make any difference. Therefore, you do not need to worry about this problem.
, @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME).
@java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.SOURCE) , , JAVASSIST, .
. Java , . JAVASSIST , .
:
- CLASS , VM .
- RUNTIME VM , .
- SOURCE .
JAVASSIST RUNTIME CLASS ( CLASS , . ).