Wiki Markup |
---|
Never use deprecated fields, methods, or classes in new code. The Java SE 6 documentation provides a [complete list|http://download.oracle.com/javase/6/docs/api/deprecated-list.html] of deprecated APIs \[[API 2006|AA. Bibliography#API 06]\]. Java provides a {{@deprecated}} annotation to indicate the deprecation of specific fields, methods, and classes. For instance, many methods of {{java.util.Date}}, such as {{Date.getYear()}}, have been explicitly deprecated. The rule [THI05-J. Do not use Thread.stop() to terminate threads|THI05THI06-J. Do not use Thread.stop() to terminate threads] describes issues that can result from using the deprecated {{Thread.stop()}} method. |
...
Class or Method | Replacement | Rule |
---|---|---|
| |
|
| |
|
| |
|
| | ERR06-J. Do not let code throw undeclared checked exceptions |
| |
|
| |
|
| |
|
| | |
| inherently unsafe |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ba4da2ae79ba5f50-e622c867-460a49f9-9019ab85-38b264c317090ca528427f7e"><ac:plain-text-body><![CDATA[ | [ISO/IEC TR 24772:2010 | http://www.aitcnet.org/isai/] | "Deprecated Language Features [MEM]" | ]]></ac:plain-text-body></ac:structured-macro> |
CWE ID 589, "Call to Non-ubiquitous API" |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="70749b731dca9a5e-e8f0f2c8-40834b03-a2479b8c-32aa34272c97d18d3d9bd47b"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | [Deprecated API | http://java.sun.com/javase/6/docs/api/deprecated-list.html], [Dictionary | http://download.oracle.com/javase/6/docs/api/java/util/Dictionary.html] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8a8073340aeae54a-265d5e6f-48014a8b-8b35a6fe-4d5ade6e7c791cdea87052e9"><ac:plain-text-body><![CDATA[ | [[SDN 2008 | AA. Bibliography#SDN 08]] | Bug database, [Bug ID 4264153 | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4264153] | ]]></ac:plain-text-body></ac:structured-macro> |
...