Skip to content

Commit 47d5e0c

Browse files
committed
Fix #12296 by partial revert of "Fixes #12289 - Improve ConcurrentPool concurrency. (#12290)"
This reverts/modified parts of commit 115ee1c.
1 parent 6084705 commit 47d5e0c

File tree

1 file changed

+1
-6
lines changed
  • jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util

1 file changed

+1
-6
lines changed

jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/TypeUtil.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public class TypeUtil
6565
public static final int CR = '\r';
6666
public static final int LF = '\n';
6767
private static final Pattern TRAILING_DIGITS = Pattern.compile("^\\D*(\\d+)$");
68-
private static final ListIterator<?> EMPTY_LIST_ITERATOR = Collections.EMPTY_LIST.listIterator();
6968

7069
private static final HashMap<String, Class<?>> name2Class = new HashMap<>();
7170

@@ -189,11 +188,7 @@ public static <T> ListIterator<T> listIteratorAtEnd(List<T> list)
189188
{
190189
int size = list.size();
191190
if (size == 0)
192-
{
193-
@SuppressWarnings("unchecked")
194-
ListIterator<T> emptyListIterator = (ListIterator<T>)EMPTY_LIST_ITERATOR;
195-
return emptyListIterator;
196-
}
191+
return Collections.emptyListIterator();
197192
return list.listIterator(size);
198193
}
199194
catch (IndexOutOfBoundsException e)

0 commit comments

Comments
 (0)