In some annotations, their preservation is saved only in the source code.
See annotation retention rules :
Annotation retention policy. Constants of this enumerated type describe various annotation retention policies. They are used in conjunction with the Retention annotation type to indicate how long to maintain annotations.
.. SOURCE Annotations should be discarded by the compiler.
source
share