Closed
Description
A Java compiler must produce a deprecation warning when a type, method, field, or constructor whose declaration is annotated with
@Deprecated
is used (overridden, invoked, or referenced by name) in a construct which is explicitly or implicitly declared, unless:
- The use is within an entity that is itself annotated with the annotation
@Deprecated
; or- The use is within an entity that is annotated to suppress the warning with the annotation
@SuppressWarnings("deprecation")
; or- The use and declaration are both within the same outermost class.
Spring Java Format currently disables deprecation warnings when overriding deprecated methods. We should enable it so that Eclipse's behaviour is JLS-compliant by default.