You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2016/09/04 06:02:02 UTC
NullOutputStream.NULL_OUTPUT_STREAM;
It seems really weird to me to see code like:
os = NullOutputStream.NULL_OUTPUT_STREAM;
instead of:
os = NullOutputStream.INSTANCE;
or:
os = NullOutputStream.getInstance();
Any objection to this change?
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: NullOutputStream.NULL_OUTPUT_STREAM;
Posted by Gary Gregory <ga...@gmail.com>.
Do we really need this kind of clutter
in org.apache.logging.log4j.core.util?
I'm doubtful...
Gary
On Sun, Sep 4, 2016 at 3:09 AM, Remko Popma <re...@gmail.com> wrote:
> Can we deprecate and leave the old one in place after adding the new
> constant?
>
> Sent from my iPhone
>
> On 2016/09/04, at 15:02, Gary Gregory <ga...@gmail.com> wrote:
>
> It seems really weird to me to see code like:
>
> os = NullOutputStream.NULL_OUTPUT_STREAM;
>
> instead of:
>
> os = NullOutputStream.INSTANCE;
>
> or:
>
> os = NullOutputStream.getInstance();
>
> Any objection to this change?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: NullOutputStream.NULL_OUTPUT_STREAM;
Posted by Remko Popma <re...@gmail.com>.
Can we deprecate and leave the old one in place after adding the new constant?
Sent from my iPhone
> On 2016/09/04, at 15:02, Gary Gregory <ga...@gmail.com> wrote:
>
> It seems really weird to me to see code like:
>
> os = NullOutputStream.NULL_OUTPUT_STREAM;
>
> instead of:
>
> os = NullOutputStream.INSTANCE;
>
> or:
>
> os = NullOutputStream.getInstance();
>
> Any objection to this change?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory