This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 9ab951b1 Deprecate NullPrintStream ctor to use singleton instead 9ab951b1 is described below commit 9ab951b125d40abe0000245398f487edb9716bdf Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue May 2 17:48:00 2023 -0400 Deprecate NullPrintStream ctor to use singleton instead --- src/main/java/org/apache/commons/io/output/NullPrintStream.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/apache/commons/io/output/NullPrintStream.java b/src/main/java/org/apache/commons/io/output/NullPrintStream.java index c882c756..bbc6de4d 100644 --- a/src/main/java/org/apache/commons/io/output/NullPrintStream.java +++ b/src/main/java/org/apache/commons/io/output/NullPrintStream.java @@ -46,7 +46,10 @@ public class NullPrintStream extends PrintStream { /** * Constructs an instance. + * + * @deprecated Use {@link #INSTANCE}. */ + @Deprecated public NullPrintStream() { // Relies on the default charset which is OK since we are not actually writing. super(NullOutputStream.INSTANCE);