A DESCRIPTION OF THE REQUEST :
@Deprecated can be used as on any piece of code for which using is discouraged. I request it to be extended with the following line:
public String value() default "";
This way the change would be backwards compatible.
JUSTIFICATION :
I think when marking sth. as deprecated it should be possible to explain, why sth. is deprecated or where to look elsewhere as a hint for the users of my api. At the moment, I find myself using the annotation @Deprecated paired with a javadoc comment @deprecated to explain why usage is discouraged.
@Deprecated can be used as on any piece of code for which using is discouraged. I request it to be extended with the following line:
public String value() default "";
This way the change would be backwards compatible.
JUSTIFICATION :
I think when marking sth. as deprecated it should be possible to explain, why sth. is deprecated or where to look elsewhere as a hint for the users of my api. At the moment, I find myself using the annotation @Deprecated paired with a javadoc comment @deprecated to explain why usage is discouraged.