Skip to content

Commit 9ab951b

Browse files
committed
Deprecate NullPrintStream ctor to use singleton instead
1 parent db43644 commit 9ab951b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/org/apache/commons/io/output/NullPrintStream.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ public class NullPrintStream extends PrintStream {
4646

4747
/**
4848
* Constructs an instance.
49+
*
50+
* @deprecated Use {@link #INSTANCE}.
4951
*/
52+
@Deprecated
5053
public NullPrintStream() {
5154
// Relies on the default charset which is OK since we are not actually writing.
5255
super(NullOutputStream.INSTANCE);

0 commit comments

Comments
 (0)