From 43334c146aea83408628ca222fd90340560f9a64 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Wed, 28 Sep 2016 11:34:31 +0530 Subject: [PATCH] avoid unnecessary map creation --- solr/core/src/java/org/apache/solr/core/ConfigOverlay.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java b/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java index d8a7f8c4b12..34729995c63 100644 --- a/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java +++ b/solr/core/src/java/org/apache/solr/core/ConfigOverlay.java @@ -230,10 +230,9 @@ public class ConfigOverlay implements MapSerializable { @Override public Map toMap(Map map) { - Map result = new LinkedHashMap(); - result.put(ZNODEVER, znodeVersion); - result.putAll(data); - return result; + map.put(ZNODEVER, znodeVersion); + map.putAll(data); + return map; } public Map getNamedPlugins(String typ) {