Skip to content

Commit

Permalink
Update DefaultCharset.java
Browse files Browse the repository at this point in the history
  • Loading branch information
delanym authored Sep 24, 2023
1 parent 14e500d commit 18dbdc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ private Description handlePrintWriter(NewClassTree tree) {
SuggestedFix.builder()
.postfixWith(
getOnlyElement(tree.getArguments()),
String.format(", %s.name()", charsetFix.replacement()));
String.format(", %s", charsetFix.replacement()));
charsetFix.addImport(fix);
description.addFix(fix.build());
}
Expand Down

0 comments on commit 18dbdc4

Please sign in to comment.