Should I use JavaDoc deprecation or the annotation in Java?

You should use both. The Annotation allows the compiler to display a warning whenever a deprecated method is used, and the javadoc explains why. Both are important.

As per Oracle’s Java Annotations tutorial:

When an element is deprecated, it should also be documented using the Javadoc @deprecated tag…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)