• Post Reply Bookmark Topic Watch Topic
  • New Topic

@deprecated  RSS feed

 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read some where that @deprecated is still for documentation and @Deprecated for programming. Because the @Deprecated has the @Documented on it why we still needed @deprecated ?
 
Campbell Ritchie
Marshal
Posts: 56592
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why should you delete a language feature because it has become redundant?
There is no problem with redundancy, putting @deprecated inside /**...*/ and @Deprecated after the /**...*/.

Why not put the warning in two places?

Besides, if you remove @deprecated from the language because it is old, ten years' worth of documentation comments will be "broken."
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Eclipse installation even requires me to use @deprecated if I use @Deprecated, and I think this is a good thing.

It forces me to write the reason why the method / class / ... is deprecated, and if possible what the replacement is. You can't put that in @Deprecated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!