This rule flags instances of the java.lang.Character
isLowerCase()
and
isUpperCase()
methods.
These methods are flagged because there is a behavior change associated with them. According to Java SE 7 and JDK 7 Compatibility documentation, the two methods have been "updated to comply with the specified unicode definition." In particular the "specification and the implementation of the isLowerCase and isUpperCase methods have been updated to comply with the Unicode Standard definition to be GD=Lu/Ll + Other_UpperCase/LowerCase." There is a possibility that instances of these methods which previously returned true, now return false, and vice versa.
The recommended action is to evaluate your code and determine if it is affected by the behavior change, pursue any appropriate testing, and make any necessary changes to your code.
Note that two new methods, java.lang.Character.isAlphabetic(int) and java.lang.Character.isIdeographic(int) have been added which you may find useful.
For additional information see: