Skip to content

Commit

Permalink
[Java] Remove last utf-8 encoding for error frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Jul 23, 2024
1 parent df11346 commit 31e47bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public String errorMessage()
*/
public ErrorFlyweight errorMessage(final String errorMessage)
{
final int headerAndMessageLength = putStringUtf8(ERROR_STRING_FIELD_OFFSET, errorMessage, LITTLE_ENDIAN);
final int headerAndMessageLength = putStringAscii(ERROR_STRING_FIELD_OFFSET, errorMessage, LITTLE_ENDIAN);
frameLength(HEADER_LENGTH + (headerAndMessageLength - STR_HEADER_LEN));
return this;
}
Expand Down

0 comments on commit 31e47bb

Please sign in to comment.