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 511c4e209a Restore @SuppressWarnings - it is needed when using Java 22 511c4e209a is described below commit 511c4e209a84af09e62369c1646004a774c9f94a Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Mar 19 11:01:30 2024 +0000 Restore @SuppressWarnings - it is needed when using Java 22 --- java/org/apache/tomcat/util/net/AbstractEndpoint.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java index b63a493c27..2c8a77ddd2 100644 --- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java +++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java @@ -1240,6 +1240,7 @@ public abstract class AbstractEndpoint<S,U> { this.executor = null; if (executor instanceof ThreadPoolExecutor) { //this is our internal one, so we need to shut it down + @SuppressWarnings("resource") ThreadPoolExecutor tpe = (ThreadPoolExecutor) executor; tpe.shutdownNow(); long timeout = getExecutorTerminationTimeoutMillis(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org