https://checkstyle.sourceforge.io/checks/annotation/missingdeprecated.html
Having @deprecated in the javadoc without @Deprecated on the element can lead to an inconsistent view of whether or not something is deprecated. The JLS requires compilers to warn when someone uses code that is annotated with @Deprecated. It does not require them to warn when code is documented with @deprecated, but javac does so. It would be good to always use @deprecated and @Deprecated together so that our code avoids this potential inconsistency.
If we do this, it would also make sense to change this setting in Eclipse:
|
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore |
This would also align with the cleanup settings where @Deprecated is added automatically when the javadoc contains @deprecated:
|
cleanup.add_missing_deprecated_annotations=true |
https://checkstyle.sourceforge.io/checks/annotation/missingdeprecated.html
Having
@deprecatedin the javadoc without@Deprecatedon the element can lead to an inconsistent view of whether or not something is deprecated. The JLS requires compilers to warn when someone uses code that is annotated with@Deprecated. It does not require them to warn when code is documented with@deprecated, butjavacdoes so. It would be good to always use@deprecatedand@Deprecatedtogether so that our code avoids this potential inconsistency.If we do this, it would also make sense to change this setting in Eclipse:
spring-javaformat/spring-javaformat-eclipse/io.spring.javaformat.eclipse/src/io/spring/javaformat/eclipse/projectsettings/org.eclipse.jdt.core.prefs
Line 48 in cea1d86
This would also align with the cleanup settings where
@Deprecatedis added automatically when the javadoc contains@deprecated:spring-javaformat/spring-javaformat-eclipse/io.spring.javaformat.eclipse/src/io/spring/javaformat/eclipse/projectsettings/org.eclipse.jdt.ui.prefs
Line 4 in cea1d86