This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 d44d90e9ff Fix IDE warning
d44d90e9ff is described below
commit d44d90e9ff3b8275b95b72f166e4334c5f7a56b3
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jul 1 09:36:59 2026 +0100
Fix IDE warning
---
java/org/apache/tomcat/util/buf/CloseableURLConnection.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
b/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
index 06e568ec8d..62e4b8fa37 100644
--- a/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
+++ b/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
@@ -135,7 +135,8 @@ public final class CloseableURLConnection extends
URLConnection implements AutoC
// Ignore
}
} else if (connection instanceof JarURLConnection) {
- try (InputStream is = connection.getInputStream()) {
+ try (@SuppressWarnings("unused")
+ InputStream is = connection.getInputStream()) {
// Open and immediately close to release the JarFile
} catch (Exception e) {
ExceptionUtils.handleThrowable(e);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]