code formatting

This commit is contained in:
Arnaud Roques 2022-01-22 13:08:43 +01:00
parent b995dcdb61
commit c94711c2d5
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public class PlantUmlServlet extends HttpServlet {
final StringBuffer sb = new StringBuffer(string.length());
// true if last char was blank
final int length = string.length();
for (int offset = 0; offset < length; ) {
for (int offset = 0; offset < length;) {
final int c = string.codePointAt(offset);
if (c == ' ') {
sb.append(' ');
@ -102,7 +102,7 @@ public class PlantUmlServlet extends HttpServlet {
int ci = 0xffffff & c;
if (ci < 160) {
// nothing special only 7 Bit
sb.append((char)c);
sb.append((char) c);
} else {
// Not 7 Bit use the unicode system
sb.append("&#");