Re: [OT] How to make a method deprecated
Use the @deprecated javadoc tag. David From: Chiming Huang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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 _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How to make a method deprecated
Use the @deprecated Javadoc tag. Sri -Original Message- From: Chiming Huang [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: [OT] How to make a method deprecated 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] How to make a method deprecated
You can just add @deprecated to the javadoc for that class or method. Example: /** * Does something. * @deprecated */ foo(){ BAL From: Chiming Huang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How to make a method deprecated
Thank you all for your quick reponse. Chiming Sri Sankaran [EMAIL PROTECTED] wrote:Use the @deprecated Javadoc tag. Sri -Original Message- From: Chiming Huang [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: [OT] How to make a method deprecated 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more