Skip to content

Commit

Permalink
Upgraded a deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Mar 12, 2024
1 parent 3a530e6 commit 2dbea50
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ public static InputStream openStdIn() {
return new FileInputStream(FileDescriptor.in);
}


public static OutputStream openStdOutWithCloseShield() {
return new CloseShieldOutputStream(openStdOut());
return CloseShieldOutputStream.wrap(openStdOut());
}

public static OutputStream openStdErrWithCloseShield() {
return new CloseShieldOutputStream(openStdErr());
return CloseShieldOutputStream.wrap(openStdErr());
}

public static InputStream openStdInWithCloseShield() {
return new CloseShieldInputStream(openStdIn());
return CloseShieldInputStream.wrap(openStdIn());
}
}

0 comments on commit 2dbea50

Please sign in to comment.