• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

how to declare method deprecated?

Hi,

how can I declare a method as deprecated?
0
exorcist
Asked:
exorcist
1 Solution
 
LDCCommented:
Put /** @deprecated */ before the method declaration.
e.g.
/**
 * There were some comments here.
 * @deprecated
 * @return an int
 */
public int deprecatedMethod() {return 1;}
0
 
fi76631Commented:
Simply put the java-doc comment @deprecated before the method signature....ie:

/**
 * @deprecated
*/
public myMethod(...) {


}

0
 
NushiCommented:
exorcist

you should get LDC as the answer.
He/She where the first one to answer your question currectly.

Nushi.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
exorcistAuthor Commented:
I think this is a joke, fi76631. Thanks for your copy-and-past effort.

I will try this tomorrow and grade it then, LDC.
0
 
fi76631Commented:
OOOppps....sorry, in my haste I didn't see LDC's answer. LDC, I apologise.

Exorcist, LDC's answer is perfectly correct
Regards
0
 
exorcistAuthor Commented:
I am too busy right now to test this. I will just accept it and try it another week.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now