문제

Why a decompiled java files does not have any annotations in it?

도움이 되었습니까?

해결책

Some annotations have their retention set to source code only.

See the Annotation Retention Policy:

Annotation retention policy. The constants of this enumerated type describe the various policies for retaining annotations. They are used in conjunction with the Retention meta-annotation type to specify how long annotations are to be retained ..

.. SOURCE Annotations are to be discarded by the compiler.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top