...
Finally, several classes and methods impose particular limitations on their use. For instance, all of the subclasses of the abstract
class java.text.Format
are thread-unsafe. These classes must be avoided in multi-threaded code. For more information about thread-safety, see guideline TSM04-J. Document thread-safety and use annotations where applicable.
Obsolete Methods and Classes
The following methods and classes must not be used in new code:
Class or Method | Replacement | Guideline |
---|---|---|
{[java.lang.Character.isJavaLetter()}} | {[java.lang.Character.isJavaIdentifierStart()}} |
|
{[java.lang.Character.isJavaLetterOrDigit()}} | {[java.lang.Character.isJavaIdentifierPart()}} |
|
{[java.lang.Character.isSpace()}} | {[java.lang.Character.isWhitespace()}} |
|
|
| |
| |
|
| {{java.util.Map<K,V> |
|
| |
|
Risk Assessment
Using deprecated or obsolete classes or methods in program code can lead to erroneous behavior.
...