You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gurpreet Dhanoa <gu...@smartdatainc.com> on 2003/11/20 12:02:52 UTC
How do you deprecate a method?
hi ALl
Sorry for posting this question here, but it will be highly appreciated if
anyone can explain
Ques: CAn anyone tell me how to depreciate a method in Java
Regards
Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] How do you deprecate a method?
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
Thanks alot Thomas
----- Original Message -----
From: "Thomas Cornet" <th...@cornet.name>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, November 20, 2003 4:55 PM
Subject: Re: [OT] How do you deprecate a method?
>
> By adding a special tag in the method's javadoc. Example
>
> /*
> * Function to deprecate
> *
> * @deprecated
> */
> public void foo()
> { ... }
>
> Thus, the method foo will appear as deprecated in generated javadoc.
> For other tags
> :
>
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#javadoctag
s
>
> Thomas
>
> At 12:02 20/11/2003, you wrote:
> >hi ALl
> >
> >
> >Sorry for posting this question here, but it will be highly appreciated
if
> >anyone can explain
> >
> >Ques: CAn anyone tell me how to depreciate a method in Java
> >
> >
> >
> >Regards
> >Gary
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] How do you deprecate a method?
Posted by Thomas Cornet <th...@cornet.name>.
By adding a special tag in the method's javadoc. Example
/*
* Function to deprecate
*
* @deprecated
*/
public void foo()
{ ... }
Thus, the method foo will appear as deprecated in generated javadoc.
For other tags
:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#javadoctags
Thomas
At 12:02 20/11/2003, you wrote:
>hi ALl
>
>
>Sorry for posting this question here, but it will be highly appreciated if
>anyone can explain
>
>Ques: CAn anyone tell me how to depreciate a method in Java
>
>
>
>Regards
>Gary
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org