Never use deprecated fields, methods, or classes in new code. Java also provides a @deprecated
annotation to indicate the deprecation of specific fields, methods, and classes. For example, many methods of java.util.Date
, such as Date.getYear()
, have been explicitly deprecated. Rule THI05-J. Do not use Thread.stop() to terminate threads describes issues that can result from using the deprecated Thread.stop()
method.
The Java SE documentation provides a list of deprecated APIs for each version of the language:
...
[API 2006] | |
[SDN 2008] | Bug database, Bug ID 4264153 |
...