Skip to content

Commit

Permalink
Fix the coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
programbeginnerTW committed Jan 3, 2025
1 parent 2233755 commit f5796ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/hudson/console/ConsoleNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ public void encodeTo(OutputStream out) throws IOException {
* encoding is ASCII compatible.
*/
public void encodeTo(Writer out) throws IOException {
String writeUTF8 = new String(encodeToBytes().toByteArray(), StandardCharsets.UTF_8);
out.write(writeUTF8);
out.write(new String(encodeToBytes().toByteArray(), StandardCharsets.UTF_8));
}

private ByteArrayOutputStream encodeToBytes() throws IOException {
Expand Down

0 comments on commit f5796ee

Please sign in to comment.