Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 18, 2025
1 parent 8c78b20 commit 18124b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/com/alibaba/fastjson2/JSONWriterUTF8.java
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ protected final void writeStringEscaped(byte[] values) {
putByte(bytes, off + 1, (byte) (0x80 | (c & 0x3f)));
off += 2;
} else {
putByte(bytes, off++, ch);
putByte(bytes, off++, ch);
}
break;
}
Expand Down Expand Up @@ -1100,7 +1100,7 @@ public final void writeString(char[] chars, int offset, int len, boolean quoted)
default:
if (ch == quote) {
putByte(bytes, off, (byte) '\\');
putByte(bytes, off+ 1, (byte) quote);
putByte(bytes, off + 1, (byte) quote);
off += 2;
} else {
putByte(bytes, off++, (byte) ch);
Expand Down Expand Up @@ -1260,7 +1260,7 @@ public final void writeChar(char ch) {
off += 2;
}

putByte(bytes, off, (byte) quote);
putByte(bytes, off, (byte) quote);
this.off = off + 1;
}

Expand Down

0 comments on commit 18124b8

Please sign in to comment.