Skip to content

Replace PrintStream in codebase#87

Open
Akanksha-kedia wants to merge 1 commit intoprestodb:masterfrom
Akanksha-kedia:codebase
Open

Replace PrintStream in codebase#87
Akanksha-kedia wants to merge 1 commit intoprestodb:masterfrom
Akanksha-kedia:codebase

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
@Akanksha-kedia Akanksha-kedia requested a review from presto-oss June 4, 2024 12:48
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