• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

@deprecated

 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Marshal
Posts: 79398
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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."
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic