You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/01/23 19:44:13 UTC

[tomcat] branch main updated: Fix warnings

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 f949ac1cd0 Fix warnings
f949ac1cd0 is described below

commit f949ac1cd08004d1a149d3a411b079c7712e44bb
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jan 23 19:44:06 2023 +0000

    Fix warnings
---
 .../webresources/TomcatURLStreamHandlerFactory.java      |  1 +
 .../webresources/TomcatURLStreamHandlerProvider.java     | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/java/org/apache/catalina/webresources/TomcatURLStreamHandlerFactory.java b/java/org/apache/catalina/webresources/TomcatURLStreamHandlerFactory.java
index 408ad8dce7..830858e774 100644
--- a/java/org/apache/catalina/webresources/TomcatURLStreamHandlerFactory.java
+++ b/java/org/apache/catalina/webresources/TomcatURLStreamHandlerFactory.java
@@ -26,6 +26,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
  * @deprecated Unused. Use the ServiceLoader mechanism to define additional
  *             handlers. Will be removed in Tomcat 11 onwards.
  */
+@Deprecated
 public class TomcatURLStreamHandlerFactory implements URLStreamHandlerFactory {
 
     // Singleton instance
diff --git a/java/org/apache/catalina/webresources/TomcatURLStreamHandlerProvider.java b/java/org/apache/catalina/webresources/TomcatURLStreamHandlerProvider.java
index ac3ac47acb..971e5ea4f8 100644
--- a/java/org/apache/catalina/webresources/TomcatURLStreamHandlerProvider.java
+++ b/java/org/apache/catalina/webresources/TomcatURLStreamHandlerProvider.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.catalina.webresources;
 
 import java.net.URLStreamHandler;


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