Skip to content
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

Merged
merged 6 commits into from
Jul 20, 2023

Conversation

tenax66
Copy link
Contributor

@tenax66 tenax66 commented Jul 18, 2023

This pull request is related to #5343.

With this commit, JavaOutputProcessor now uses PrintStream​(File file, Charset charset) instead of PrintStream​(File file).
By default, Charset.defaultCharset() is assigned to charset. So the default behavior remains the same.

@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Jul 18, 2023

Sonatype Lift is retiring

Sonatype 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.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@@ -39,6 +39,8 @@ public class JavaOutputProcessor extends AbstractProcessor<CtNamedElement> imple

List<File> printedFiles = new ArrayList<>();

Charset charset = Charset.defaultCharset();
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I changed it.

@tenax66 tenax66 changed the title feat: configurable encoding of processed source code review: feat: configurable encoding of processed source code Jul 18, 2023
@tenax66 tenax66 requested a review from MartinWitt July 18, 2023 13:39
@MartinWitt MartinWitt merged commit dae341a into INRIA:master Jul 20, 2023
11 checks passed
@MartinWitt
Copy link
Collaborator

Thanks @tenax66

@tenax66 tenax66 deleted the issue/5343-processed-code-encoding branch July 20, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants