Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java Language
Expertise: Beginner
Oct 24, 2000

Deprecated APIs

Question:
How do I make a method deprecated?

Answer:
Deprecating a method or entire class is as simple as using the "@deprecated javadoc" tag in its documentation. For example:

/**
 * @deprecated As of version 2.3, use the newer {@link #bar()} instead.
 */

public void foo() {

}
Deprecating an API does not prevent you from using it, but rather serves as a warning that support for the API may be discontinued in the future.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date