A method (or constructor) can be marked as deprecated using either the @Deprecated annotation or the @deprecated Javadoc tag. Using a method that has been marked as deprecated is bad practice, typically for one or more of the following reasons:

Avoid using a method that has been marked as deprecated. Follow any guidance that is provided with the @deprecated Javadoc tag, which should explain how to replace the call to the deprecated method.

  • Help - Eclipse Platform: Java Compiler Errors/Warnings Preferences.
  • Java API Specification: Annotation Type Deprecated.
  • Java SE Documentation: How and When To Deprecate APIs.