diff options
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/i18n/_XCollator.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/i18n/_XCollator.java b/qadevOOo/tests/java/ifc/i18n/_XCollator.java index 48a3d7f50204..a9eece7f7bcc 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XCollator.java +++ b/qadevOOo/tests/java/ifc/i18n/_XCollator.java @@ -408,12 +408,14 @@ public class _XCollator extends MultiMethodTest { */ public String toUnicode(String str) { char[] chars = str.toCharArray() ; - String res = "" ; + StringBuilder res = new StringBuilder(); for (int i = 0; i < chars.length; i++) { - if (i != 0) res += "," ; - res += Integer.toHexString(chars[i]) ; + if (i != 0) { + res.append(","); + } + res.append(Integer.toHexString(chars[i])); } - return res ; + return res.toString(); } } |