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

Replace PrintStream in codebase #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akanksha-kedia
Copy link

@Akanksha-kedia Akanksha-kedia commented Jun 4, 2024

I have replaced PrintStream with OutputStreamWriter.

[INFO] -------------------------------------------------------
[INFO] Running TestSuite
[INFO] Tests run: 118, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.369 s - in TestSuite

@elharo

@Akanksha-kedia Akanksha-kedia requested a review from a team as a code owner June 4, 2024 12:48
@@ -68,8 +68,9 @@ public void testLoadsFromFile()
throws IOException
{
final File file = File.createTempFile("config", ".properties", tempDir);
try (PrintStream out = new PrintStream(new FileOutputStream(file))) {
out.print("test: foo");
try (OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(file))) {
Copy link

Choose a reason for hiding this comment

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

probably specify the charset here and below as UTF-8

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