Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Feb 13, 2025
1 parent 8ca7cc4 commit a81513c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/src/main/java/com/alibaba/fastjson2/JSONReaderUTF8.java
Original file line number Diff line number Diff line change
Expand Up @@ -7134,16 +7134,14 @@ public final String info(String message) {
buf.append(message).append(", ");
}

buf.append("offset ").append(offset)
return buf.append("offset ").append(offset)
.append(", character ").append(ch)
.append(", line ").append(line)
.append(", column ").append(column)
.append(", fastjson-version ").append(JSON.VERSION)
.append(line > 1 ? '\n' : ' ');

String str = new String(bytes, this.start, Math.min(length, 65535));
buf.append(str);
return buf.toString();
.append(line > 1 ? '\n' : ' ')
.append(new String(bytes, this.start, Math.min(length, 65535)))
.toString();
}

@Override
Expand Down

0 comments on commit a81513c

Please sign in to comment.