mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 11:35:14 +00:00
avoid unnecessary map creation
This commit is contained in:
parent
b0d0f39b3a
commit
43334c146a
@ -230,10 +230,9 @@ public class ConfigOverlay implements MapSerializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> toMap(Map<String, Object> map) {
|
public Map<String, Object> toMap(Map<String, Object> map) {
|
||||||
Map result = new LinkedHashMap();
|
map.put(ZNODEVER, znodeVersion);
|
||||||
result.put(ZNODEVER, znodeVersion);
|
map.putAll(data);
|
||||||
result.putAll(data);
|
return map;
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, Map> getNamedPlugins(String typ) {
|
public Map<String, Map> getNamedPlugins(String typ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user