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 b7cbe90cfa Remove unnecessary type specifications
b7cbe90cfa is described below

commit b7cbe90cfa132c5de43cd3ef8d77f1d37f06885b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Oct 22 08:33:57 2024 +0100

    Remove unnecessary type specifications
---
 .../apache/catalina/servlets/TransientPropertiesWebdavServlet.java  | 4 ++--
 java/org/apache/tomcat/util/http/WebdavIfHeader.java                | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/java/org/apache/catalina/servlets/TransientPropertiesWebdavServlet.java 
b/java/org/apache/catalina/servlets/TransientPropertiesWebdavServlet.java
index 80c979c190..0ab6310ed9 100644
--- a/java/org/apache/catalina/servlets/TransientPropertiesWebdavServlet.java
+++ b/java/org/apache/catalina/servlets/TransientPropertiesWebdavServlet.java
@@ -64,7 +64,7 @@ public class TransientPropertiesWebdavServlet extends 
WebdavServlet {
         } else {
             ArrayList<Node> properties = deadProperties.get(path);
             if (properties == null) {
-                properties = new ArrayList<Node>();
+                properties = new ArrayList<>();
                 deadProperties.put(path, properties);
             }
             synchronized (properties) {
@@ -145,7 +145,7 @@ public class TransientPropertiesWebdavServlet extends 
WebdavServlet {
         ArrayList<Node> propertiesDest = deadProperties.get(dest);
         if (properties != null) {
             if (propertiesDest == null) {
-                propertiesDest = new ArrayList<Node>();
+                propertiesDest = new ArrayList<>();
                 deadProperties.put(dest, propertiesDest);
             }
             synchronized (properties) {
diff --git a/java/org/apache/tomcat/util/http/WebdavIfHeader.java 
b/java/org/apache/tomcat/util/http/WebdavIfHeader.java
index c66bce3d0d..39f64051ea 100644
--- a/java/org/apache/tomcat/util/http/WebdavIfHeader.java
+++ b/java/org/apache/tomcat/util/http/WebdavIfHeader.java
@@ -97,17 +97,17 @@ public class WebdavIfHeader {
     /**
      * The list of resources present in the If header.
      */
-    private List<String> resources = new ArrayList<String>();
+    private List<String> resources = new ArrayList<>();
 
     /**
      * The list of all positive tokens present in the If header.
      */
-    private List<String> allTokens = new ArrayList<String>();
+    private List<String> allTokens = new ArrayList<>();
 
     /**
      * The list of all NOT tokens present in the If header.
      */
-    private List<String> allNotTokens = new ArrayList<String>();
+    private List<String> allNotTokens = new ArrayList<>();
 
     private String uriPrefix;
 


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

Reply via email to