-
Sub-task
-
Resolution: Delivered
-
P4
-
9
-
Verified
If the javadoc deprecated tag is used on an element without it also being deprecated using the @Deprecated annotation,
the compiler will by default produce a new warning to this effect.
The new warning can be suppressed either by adding the command line option -Xlint:-dep-ann to the javac command line or by using
@SuppressWarnings("dep-ann") annotation (as with any other warning-suppressing annotation, it is always a good practice to add
such an annotation as close to the member being deprecated as possible).
In a future version of Java SE, the compiler may no longer treat @deprecated javadoc tag as indicating formal deprecation.
the compiler will by default produce a new warning to this effect.
The new warning can be suppressed either by adding the command line option -Xlint:-dep-ann to the javac command line or by using
@SuppressWarnings("dep-ann") annotation (as with any other warning-suppressing annotation, it is always a good practice to add
such an annotation as close to the member being deprecated as possible).
In a future version of Java SE, the compiler may no longer treat @deprecated javadoc tag as indicating formal deprecation.