Skip to content

Commit

Permalink
Fix #12296 by partial revert of "Fixes #12289 - Improve ConcurrentPoo…
Browse files Browse the repository at this point in the history
…l concurrency. (#12290)"

This reverts/modified parts of commit 115ee1c.
  • Loading branch information
gregw committed Sep 23, 2024
1 parent 6084705 commit 47d5e0c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public class TypeUtil
public static final int CR = '\r';
public static final int LF = '\n';
private static final Pattern TRAILING_DIGITS = Pattern.compile("^\\D*(\\d+)$");
private static final ListIterator<?> EMPTY_LIST_ITERATOR = Collections.EMPTY_LIST.listIterator();

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

Expand Down Expand Up @@ -189,11 +188,7 @@ public static <T> ListIterator<T> listIteratorAtEnd(List<T> list)
{
int size = list.size();
if (size == 0)
{
@SuppressWarnings("unchecked")
ListIterator<T> emptyListIterator = (ListIterator<T>)EMPTY_LIST_ITERATOR;
return emptyListIterator;
}
return Collections.emptyListIterator();
return list.listIterator(size);
}
catch (IndexOutOfBoundsException e)
Expand Down

0 comments on commit 47d5e0c

Please sign in to comment.