You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/10/06 13:16:44 UTC

[tomcat] 02/03: Switch Deque implementations from LinkedList to ArrayDeque

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

commit 18fea82fe32fc230f7b7deb327155d5c0f5ae080
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Oct 6 13:55:48 2022 +0100

    Switch Deque implementations from LinkedList to ArrayDeque
---
 java/jakarta/el/ELContext.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/jakarta/el/ELContext.java b/java/jakarta/el/ELContext.java
index 1c86b98121..6ef3001423 100644
--- a/java/jakarta/el/ELContext.java
+++ b/java/jakarta/el/ELContext.java
@@ -16,11 +16,11 @@
  */
 package jakarta.el;
 
+import java.util.ArrayDeque;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Deque;
 import java.util.HashMap;
-import java.util.LinkedList;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
@@ -38,7 +38,7 @@ public abstract class ELContext {
 
     private List<EvaluationListener> listeners;
 
-    private Deque<Map<String,Object>> lambdaArguments = new LinkedList<>();
+    private Deque<Map<String,Object>> lambdaArguments = new ArrayDeque<>();
 
     public ELContext() {
         this.resolved = false;


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