You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/10/22 12:17:03 UTC
(tomcat) 11/19: Remove unnecessary type specifications
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 497652069070a5708659e64e098cc43f85a67778
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org