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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new b96ba58fa8 Fix IDE warnings
b96ba58fa8 is described below

commit b96ba58fa8d48a74a26a40496060b3bc93539f66
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Mar 24 08:48:53 2025 +0000

    Fix IDE warnings
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index ad7a175f99..b2658f3f23 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1254,7 +1254,7 @@ public abstract class AbstractEndpoint<S,U> {
         Executor executor = this.executor;
         if (executor != null && internalExecutor) {
             this.executor = null;
-            if (executor instanceof 
@SuppressWarnings("resource")ThreadPoolExecutor tpe) {
+            if (executor instanceof ThreadPoolExecutor tpe) {
                 //this is our internal one, so we need to shut it down
                 tpe.shutdownNow();
                 long timeout = getExecutorTerminationTimeoutMillis();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to