That's fine. I prefer the deployed code to be the same as the original source anyway.
Do we need a custom tag? Couldn't it just check the since attribute on the @Deprecated tags?
/**
* Returns the version in which the annotated element became deprecated.
* The version string is in the same format and namespace as the value of
* the {@code @since} javadoc tag. The default value is the empty
* string.
*
* @return the version string
* @since 9
*/
String since() default "";
Adds a Since heading with the specified since-text value to the generated documentation. The text has no special internal structure.
And the custom annotation is not meant to be used instead of the regular @Deprecated, it has nothing to do with @Deprecated at all. They can be used side by side.
Users browsing this forum: No registered users and 5 guests