struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Lee" <brian_a_...@hotmail.com>
Subject Re: [OT] How to make a method deprecated
Date Thu, 06 Mar 2003 16:30:36 GMT
You can just add @deprecated to the javadoc for that class or method.

Example:
/**
* Does something.
* @deprecated
*/
foo(){
....

BAL

>From: Chiming Huang <tomcat_huang@yahoo.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>Subject: [OT] How to make a method deprecated
>Date: Thu, 6 Mar 2003 08:27:14 -0800 (PST)
>
>
>Hi,
>
>In java, I would like to make a method deprecated.  So that javac will 
>complain if a program uses the deprecated method.  What should I do?
>
>Thanks in advance.
>
>Chiming
>
>
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, and more


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message