From e4e72968cddc8c5b9c43fd95c53179ba6ac2e8c8 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Fri, 5 Apr 2019 09:00:45 +0200 Subject: [PATCH] Issue #3361 - HandlerCollection.addHandler is lacking synchronization. Removed unused code. Signed-off-by: Simone Bordet --- .../server/handler/ContextHandlerCollection.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandlerCollection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandlerCollection.java index fd3fbae21af..d082ca7a89e 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandlerCollection.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandlerCollection.java @@ -424,21 +424,10 @@ public class ContextHandlerCollection extends HandlerCollection private final Map _contextBranches = new HashMap<>(); private final Trie> _pathBranches; - Mapping(Handler[] handlers, int capacity) + private Mapping(Handler[] handlers, int capacity) { super(handlers); _pathBranches = new ArrayTernaryTrie<>(false, capacity); } - - public Map getContextBranches() - { - return _contextBranches; - } - - public Trie> getPathBranches() - { - return _pathBranches; - } - } }