Re: svn commit: r1682057 - /lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/logging/MDCLoggingContext.java

2015-06-18 Thread Mark Miller
These comments are so easy to miss - just happen to be scanning old email - prob best to put it in the JIRA issue. Makes sense. - Mark On Wed, May 27, 2015 at 4:01 PM Uwe Schindler u...@thetaphi.de wrote: Hi Mark, I am wondering why you be so verbose in Java 8's code. The main reason for

RE: svn commit: r1682057 - /lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/logging/MDCLoggingContext.java

2015-05-27 Thread Uwe Schindler
Hi Mark, I am wondering why you be so verbose in Java 8's code. The main reason for ThreadLocal.withInitial() is to use it like that: private static final ThreadLocalInteger CALL_DEPTH = ThreadLocal.withInitial(() - 0); Using a Supplier without a lambda is not the intention behind