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

commit a3057c8d9135b36f718163bef43d597098cb8e05
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu May 11 22:33:53 2023 +0100

    Suppress this warning as there is no other option at present
---
 java/org/apache/catalina/webresources/CachedResource.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/org/apache/catalina/webresources/CachedResource.java 
b/java/org/apache/catalina/webresources/CachedResource.java
index 4338aafa10..332f74f012 100644
--- a/java/org/apache/catalina/webresources/CachedResource.java
+++ b/java/org/apache/catalina/webresources/CachedResource.java
@@ -342,6 +342,9 @@ public class CachedResource implements WebResource {
         try {
             CachedResourceURLStreamHandler handler = new 
CachedResourceURLStreamHandler(resourceURL, root, webAppPath,
                     usesClassLoaderResources);
+            // Need the custom handler for all protocols. URL.of(...) does not 
allow file to use a custom handler.
+            // Ignore the deprecation for now.
+            @SuppressWarnings("deprecation")
             URL result = new URL(null, resourceURL.toExternalForm(), handler);
             handler.setCacheURL(result);
             return result;


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

Reply via email to