The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


how to make a method as deprecated

Posted by Srinivasa Rao Aravilli on October 20, 2000 at 6:14 AM

You can use javadoc @depcreate tag in order to make any method to deprecate.
suppose you have method add(int i, int j) in class Addition.
you want to deprecate this method. Then you can write the code like this

class Addition {
* @param int i
* @param int j
* @return i+j
* @deprecate use add(Object o1,Object o2)instead
int add(int i, int j){

  • how is this Alok Kumar September 05, 2001 at 9:35 AM (0)

Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us