according to Java Annotation API:
RetentionPolicy.CLASS Annotations are to be recorded in the class file by the compiler but nee
CLASS Annotations are used in obfuscator tools like http://proguard.sourceforge.net . For example annotation @KeepName disables name mangling when you need to have your class name unchanged to be able to call methods like Class.forName().