mirror of https://github.com/apache/lucene.git
SOLR-8995: Replace anonymous implementations of SAM interfaces with Lambdas
This commit is contained in:
parent
a07a8499d3
commit
09f92b7edf
|
@ -1822,9 +1822,7 @@ public final class SolrCore implements SolrInfoMBean, Closeable {
|
|||
final RefCounted<SolrIndexSearcher> currSearcherHolderF = currSearcherHolder;
|
||||
if (!alreadyRegistered) {
|
||||
future = searcherExecutor.submit(
|
||||
new Callable() {
|
||||
@Override
|
||||
public Object call() throws Exception {
|
||||
() -> {
|
||||
try {
|
||||
// registerSearcher will decrement onDeckSearchers and
|
||||
// do a notify, even if it fails.
|
||||
|
@ -1841,7 +1839,6 @@ public final class SolrCore implements SolrInfoMBean, Closeable {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue