tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémy Maucherat <r...@apache.org>
Subject Re: svn commit: r1558930 - in /tomcat/trunk: java/org/apache/catalina/ java/org/apache/catalina/authenticator/ java/org/apache/catalina/core/ java/org/apache/catalina/security/ java/org/apache/catalina/startup/ webapps/docs/
Date Fri, 17 Jan 2014 09:33:25 GMT
2014/1/17 Mark Thomas <markt@apache.org>

> > +    protected static final ThreadBindingListener
> DEFAULT_NAMING_LISTENER = (new ThreadBindingListener() {
> > +        public void bind() {}
> > +        public void unbind() {}
> > +    });
> > +    protected ThreadBindingListener threadBindingListener =
> DEFAULT_NAMING_LISTENER;
>
> What is the purpose of the above code? Would it not be simpler just to
> leave threadBindingListener as null?


Nothing special, just less null checks.

Rémy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message