• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add deprecated tag to java files in an entire module

 
Unni Pillai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to add @deprecated tag to about 300 java files . Is there any plugins available to do that at once? or I have to open each one of them and do that :-)

Any ideas appreciated.

Thanks
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Unni, that sounds like something I would look to do with a shell script or batch file. Or a scripting language like Ruby or Groovy. Try asking around in those forums. Good luck.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But why are you deprecating so many things? Are you saying there are >300 mistakes which you cannot correct?
 
Unni Pillai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply !

@Campbell Ritchie The reason why I need to do is something like, we have some APIs which are going to to be rewritten soon.. but will be used by other developers . so we have to warn them saying that this class will be changed soon.. I know, this is kind of wired but.....
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can’t you change the implementation and keep the public interface unchanged?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic