Back
I would like to make one of my methods "deprecated" = not used anymore.
But still I would like to have it in my API. I just want to show "warning" to anyone using that method.
How can I achieve that?
Try @Deprecated on the system. Don't neglect about explaining Javadoc field:
/*** Does some thing in old style.** @deprecated use {@link #new()} instead. */@Deprecatedpublic void old() {// ...}
/**
* Does some thing in old style.
*
* @deprecated use {@link #new()} instead.
*/
@Deprecated
public void old() {
// ...
}
31k questions
32.8k answers
501 comments
693 users