< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java

Print this page
rev 10947 : 8055723: Replace concat String to append in StringBuilder parameters

*** 105,115 **** retval.append("\\\\"); continue; default: if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { String s = "0000" + Integer.toString(ch, 16); ! retval.append("\\u" + s.substring(s.length() - 4, s.length())); } else { retval.append(ch); } continue; } --- 105,115 ---- retval.append("\\\\"); continue; default: if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { String s = "0000" + Integer.toString(ch, 16); ! retval.append("\\u").append(s.substring(s.length() - 4, s.length())); } else { retval.append(ch); } continue; }
< prev index next >