You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2025/08/30 14:43:39 UTC

(tomcat) branch 10.1.x updated: Fix Checkstyle errors

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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 1c42b21ad8 Fix Checkstyle errors
1c42b21ad8 is described below

commit 1c42b21ad8a4627c91c21de5a81836765e67574a
Author: Mark Thomas <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org