Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wilkinsona opened this issue Jun 4, 2020 · 1 comment

Comments

@wilkinsona
Copy link
Contributor

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.

@philwebb
Copy link
Contributor

Fixed in 021a962 but I accidentally referenced the incorrect issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants