Hi!

Here, I replaced numerous String.zeroBasedStringValue(CharData.xxx[i]) with a 
single call to convertCharData() (which does the work).
The other changes are several minor optimizations of expressions.

ChangeLog entries:
        * java/lang/Character.java (UnicodeBlock.of, UnicodeBlock.forName):
        Remove the trailing dot character for exception messages.
        * java/lang/Character.java (charCache): Make the private field final.
        * java/lang/Character.java (convertCharData): New private static
        function (called during the class initialization only).
        * java/lang/Character.java (blocks, data, numValue, upper, lower,
        direction): Call convertCharData() (which creates the appropriate
        array and calls zeroBasedStringValue() for each array element).
        * java/lang/Character.java (readCodePoint, reverseBytes): Remove
        unnecessary "&" operation.
        * java/lang/Character.java (isSpace): Simplify the expression.

Attachment: classpath-ivmai-13.diff
Description: Binary data

Reply via email to