(tomcat) 02/02: Java 8 fix

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

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

commit bba071cfc2522580b4073aaed79481ab7a19b959
Author: remm <[email protected]>
AuthorDate: Fri Jul 3 16:23:22 2026 +0200

    Java 8 fix
---
 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 ea43b0a085..0ced2d453b 100644
--- a/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
+++ b/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
@@ -274,7 +274,8 @@ public final class CloseableURLConnection extends URLConnection implements AutoC
 
 
     @Override
-    public Object getContent(Class<?>[] classes) throws IOException {
+    @SuppressWarnings("rawtypes")
+    public Object getContent(Class[] classes) throws IOException {
         return connection.getContent(classes);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.