-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review: feat: configurable encoding of processed source code #5350
review: feat: configurable encoding of processed source code #5350
Conversation
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
…43-processed-code-encoding
@@ -39,6 +39,8 @@ public class JavaOutputProcessor extends AbstractProcessor<CtNamedElement> imple | |||
|
|||
List<File> printedFiles = new ArrayList<>(); | |||
|
|||
Charset charset = Charset.defaultCharset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this field private? The other fields are public but that seems like a design flaw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I changed it.
Thanks @tenax66 |
This pull request is related to #5343.
With this commit,
JavaOutputProcessor
now usesPrintStream(File file, Charset charset)
instead ofPrintStream(File file)
.By default,
Charset.defaultCharset()
is assigned tocharset
. So the default behavior remains the same.