Skip to content

Commit

Permalink
AS-4027: add string write function (#308)
Browse files Browse the repository at this point in the history
This function was recently changed causing a failure in broker metrics.
  • Loading branch information
pgier authored Aug 26, 2024
1 parent 7b7d335 commit 751aea3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ public SimpleTextOutputStream write(char c) {
return this;
}

public SimpleTextOutputStream write(String s) {
if (s == null) {
return this;
}

buffer.writeCharSequence(s, CharsetUtil.UTF_8);
return this;
}

public SimpleTextOutputStream write(CharSequence s) {
if (s == null) {
return this;
Expand Down

0 comments on commit 751aea3

Please sign in to comment.