Issue
In my Eclipse Indigo, only @Deprecated
work but not @deprecated
in comment, any idea?
e.g.
// @deprecated <-- not work
@Deprecated <-- work
public String getName()
{
return name;
}
Solution
Your comment is not a javadoc comment so it is ignored by Eclipse. If you would have used
/**
* @deprecated
*/
then Eclipse would have handled it exactly the same as when you specify the @Deprecated
annotation.
Answered By - Mark Rotteveel
Answer Checked By - Marilyn (JavaFixing Volunteer)