Skip to content

Enable org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod by default #196

Closed
@wilkinsona

Description

@wilkinsona

The JLS says the following:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions