Repository: logging-log4j2 Updated Branches: refs/heads/master a40ce5818 -> df810d76f
In-line local var. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/df810d76 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/df810d76 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/df810d76 Branch: refs/heads/master Commit: df810d76f1cb51c8b3c70457f8571656719e7abe Parents: a40ce58 Author: ggregory <[email protected]> Authored: Wed Jul 5 13:40:37 2017 -0700 Committer: ggregory <[email protected]> Committed: Wed Jul 5 13:40:37 2017 -0700 ---------------------------------------------------------------------- .../apache/logging/log4j/core/selector/JndiContextSelector.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/df810d76/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java index f6d5c6a..b790eaf 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java @@ -147,8 +147,7 @@ public class JndiContextSelector implements NamedContextSelector { @Override public List<LoggerContext> getLoggerContexts() { - final List<LoggerContext> list = new ArrayList<>(CONTEXT_MAP.values()); - return Collections.unmodifiableList(list); + return Collections.unmodifiableList(new ArrayList<>(CONTEXT_MAP.values())); } }
