Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to make a method deprecated ?

  Asked By: Nichole    Date: Feb 18    Category: Java    Views: 1240

I want to have one deprecated method in my code.

What do Ineed to write in my code, so that when I compile, it shows me the
warning that <method-name> is deprecated.



1 Answer Found

Answer #1    Answered By: Rickey Scott     Answered On: Feb 18

I'm not sure, but I think you should add the following comment just before
the declaration of your method:

/** @deprecated */

For more info, search for javadoc.

Didn't find what you were looking for? Find more on How to make a method deprecated ? Or get search suggestion and latest updates.