Why java decompiler does not save annotations

Why are there no comments in decompiled java files?

+5
source share
1 answer

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.

+13
source

All Articles