(tomcat) branch 11.0.x updated: Fix IDE warning

[email protected] Mon, 20 Jul 2026 08:56:54 +0000
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178453781484.3845431.17519162762370627741@gitbox3-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 46155a4949 Fix IDE warning
46155a4949 is described below

commit 46155a49499027ac8ada96c99b19732254edd396
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jul 20 09:55:44 2026 +0100

    Fix IDE warning
---
 java/org/apache/catalina/util/ResourceSet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/util/ResourceSet.java b/java/org/apache/catalina/util/ResourceSet.java
index 8fcc5cdc81..11be2b121d 100644
--- a/java/org/apache/catalina/util/ResourceSet.java
+++ b/java/org/apache/catalina/util/ResourceSet.java
@@ -226,7 +226,7 @@ public final class ResourceSet<T> extends HashSet<T> {
     public java.util.Spliterator<T> spliterator() {
         if (locked) {
             java.util.Spliterator<T> base = super.spliterator();
-            return new java.util.Spliterator<T>() {
+            return new java.util.Spliterator<>() {
                 @Override public boolean tryAdvance(java.util.function.Consumer<? super T> action) { return base.tryAdvance(action); }
                 @Override public java.util.Spliterator<T> trySplit() { return null; }
                 @Override public long estimateSize() { return base.estimateSize(); }