Skip to content
Permalink
Browse files
Remove use of redundant String.substring() parameter.
  • Loading branch information
garydgregory committed Feb 28, 2021
1 parent 9bfab54 commit 0e3b07cab876e513ea9b715ef907469c96348968
Showing 1 changed file with 1 addition and 1 deletion.
@@ -172,7 +172,7 @@ protected static String addEscapes(final String str) {
default:
if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
final String s = "0000" + Integer.toString(ch, 16);
retval.append("//u").append(s.substring(s.length() - 4, s.length()));
retval.append("//u").append(s.substring(s.length() - 4));
} else {
retval.append(ch);
}

0 comments on commit 0e3b07c

Please sign in to comment.