Use @Deprecated
on method. Don’t forget about clarifying javadoc field:
/**
* Does some thing in old style.
*
* @deprecated use {@link #new()} instead.
*/
@Deprecated
public void old() {
// ...
}
More Related Contents:
- Why is Java Vector (and Stack) class considered obsolete or deprecated?
- Replacements for deprecated JPMS modules with Java EE APIs
- Why is StringTokenizer deprecated?
- Is it wrong to use Deprecated methods or classes in Java?
- Why were applets deprecated in JDK 9?
- Is the buildSessionFactory() Configuration method deprecated in Hibernate?
- Java: Why is the Date constructor deprecated, and what do I use instead?
- Java’s Date(…) constructor is deprecated; what does that mean?
- Observer is deprecated in Java 9. What should we use instead of it?
- Deprecated ManagedQuery() issue
- Suppress deprecated import warning in Java
- Why were most java.util.Date methods deprecated?
- Why is Cloneable not deprecated?
- java.net.URLEncoder.encode(String) is deprecated, what should I use instead?
- Why is the Date constructor deprecated, and what do I use instead?
- Android – onRequestPermissionsResult() is deprecated. Are there any alternatives?
- Android LocationServices.FusedLocationApi deprecated
- What does it mean for a method to be deprecated? [duplicate]
- org.hibernate.annotations.Entity deprecated in Hibernate 4?
- Understanding Spring @Autowired usage
- POST request send JSON data Java HttpUrlConnection
- How to configure Jackson in Wildfly?
- NullPointerException through auto-boxing-behavior of Java ternary operator
- How can I give an imageview click effect like a button on Android?
- Center message in android dialog box
- What is difference between references and objects in java? [duplicate]
- JDBC- Implementation of interfaces
- Class method and variable with same name, compile error in C++ not in Java?
- Reliable data serving
- Maven- No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups