Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-12-06 20:24:48 -0500
committerGreg Wilkins2012-12-07 09:41:00 -0500
commita20d984d3018d0ed727b9fdd495b4ef80d02714f (patch)
treef69994ef6665ae7b9a93016573f28c8e4424ea59 /jetty-security/src/main/java
parentdc2850c898f37c4fa456cb07e7d196f58ec594c8 (diff)
downloadorg.eclipse.jetty.project-a20d984d3018d0ed727b9fdd495b4ef80d02714f.tar.gz
org.eclipse.jetty.project-a20d984d3018d0ed727b9fdd495b4ef80d02714f.tar.xz
org.eclipse.jetty.project-a20d984d3018d0ed727b9fdd495b4ef80d02714f.zip
jetty-9 Added Trie for cached string lookup. HttpFields does not use StringMap
Diffstat (limited to 'jetty-security/src/main/java')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
index e701dad925..55f677b358 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java
@@ -23,6 +23,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -479,7 +480,7 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr
Map<String, RoleInfo> mappings = _constraintMap.get(mapping.getPathSpec());
if (mappings == null)
{
- mappings = new StringMap<>();
+ mappings = new HashMap<String,RoleInfo>();
_constraintMap.put(mapping.getPathSpec(),mappings);
}
RoleInfo allMethodsRoleInfo = mappings.get(ALL_METHODS);

Back to the top