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

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 4af2fbfe46 Fix Checkstyle errors
4af2fbfe46 is described below

commit 4af2fbfe46e8db2074469b1f516b3f220356e579
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Aug 30 15:42:19 2025 +0100

    Fix Checkstyle errors
---
 .../tomcat/util/threads/InlineExecutorService.java   | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/java/org/apache/tomcat/util/threads/InlineExecutorService.java 
b/java/org/apache/tomcat/util/threads/InlineExecutorService.java
index dfbdf11353..7f73bea5fa 100644
--- a/java/org/apache/tomcat/util/threads/InlineExecutorService.java
+++ b/java/org/apache/tomcat/util/threads/InlineExecutorService.java
@@ -55,17 +55,17 @@ public class InlineExecutorService extends 
AbstractExecutorService {
 
     @Override
     public boolean awaitTermination(long timeout, TimeUnit unit) throws 
InterruptedException {
-       long timeoutExpiry = System.nanoTime() + unit.toNanos(timeout);
-       long timeoutMillis = unit.toMillis(timeout);
+        long timeoutExpiry = System.nanoTime() + unit.toNanos(timeout);
+        long timeoutMillis = unit.toMillis(timeout);
         synchronized (lock) {
-               /*
-                * Spurious wake-ups are possible. Keep waiting until the 
service has been terminated or the timeout has
-                * expired. 
-                */
-               while (!terminated && timeoutMillis > 0) {
-                       lock.wait(timeoutMillis);
-                       timeoutMillis = (timeoutExpiry - System.nanoTime()) / 
1_000_000;
-               }
+            /*
+             * Spurious wake-ups are possible. Keep waiting until the service 
has been terminated or the timeout has
+             * expired.
+             */
+            while (!terminated && timeoutMillis > 0) {
+                lock.wait(timeoutMillis);
+                timeoutMillis = (timeoutExpiry - System.nanoTime()) / 
1_000_000;
+            }
             return terminated;
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to