Community
Participate
Working Groups
Patch in bug 365437 introduces an auxilliary option to go along with reporting "unused private members" option. This option takes a comma separated list of all annotation names (fully qualified) that, when applied to a private method, will suppress the unused warning even if the method is not used. The API is: JavaCore.COMPILER_ANNOTATIONS_TO_EXEMPT_UNUSED_PRIVATE_METHOD Two defaults are also provided: javax.annotation.PreDestroy and javax.annotation.PostConstruct
Closing this bug in light of the recent conversations on bug 365437