This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch jira/solr-13350
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/jira/solr-13350 by this push:
     new 3bb97a543b5 ./gradlew tidy
3bb97a543b5 is described below

commit 3bb97a543b5298fed1860a9ee87bf2c197edf72a
Author: Christine Poerschke <[email protected]>
AuthorDate: Thu Apr 11 12:46:30 2024 +0100

    ./gradlew tidy
---
 .../src/java/org/apache/solr/core/CoreContainer.java   | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java 
b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
index 56df0963c46..b61797470fb 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -51,8 +51,6 @@ import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.Executor;
 import java.util.concurrent.ExecutorService;
-import java.util.concurrent.RejectedExecutionHandler;
-import java.util.concurrent.ThreadPoolExecutor;
 import java.util.concurrent.TimeoutException;
 import java.util.function.Function;
 import java.util.function.Supplier;
@@ -449,14 +447,14 @@ public class CoreContainer {
             new SolrNamedThreadFactory("searcherCollector"));
     ((ExecutorUtil.MDCAwareThreadPoolExecutor) collectorExecutor)
         .setRejectedExecutionHandler(
-                (r, executor) -> {
-                  if (!executor.isShutdown()) {
-                    try {
-                      executor.getQueue().put(r);
-                    } catch (InterruptedException e) {
-                    }
-                  }
-                });
+            (r, executor) -> {
+              if (!executor.isShutdown()) {
+                try {
+                  executor.getQueue().put(r);
+                } catch (InterruptedException e) {
+                }
+              }
+            });
   }
 
   @SuppressWarnings({"unchecked"})

Reply via email to