The text part of java.text.Bidi.toString() output is wrong. The first char and its level are displayed twice. Other things to be changed: - StringBuilder should be used instead of StringBuffer. - avoid string concatenation in append(), such as buf.append("[dir: " + direction).
|