From c829e36d2367366c645cd51148e43f840030b4d4 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Fri, 4 Sep 2009 10:14:50 +0000 Subject: [PATCH] SOLR-1198. remove duplicate code git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@811337 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/core/SolrConfig.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/solr/core/SolrConfig.java b/src/java/org/apache/solr/core/SolrConfig.java index 8e495d675a8..d0994d09aa9 100644 --- a/src/java/org/apache/solr/core/SolrConfig.java +++ b/src/java/org/apache/solr/core/SolrConfig.java @@ -247,13 +247,9 @@ public class SolrConfig extends Config { Collections.>emptyMap(): Collections.unmodifiableMap(chains); } - private PluginInfo loadSinglePlugin(String tag){ - NodeList nodes = (NodeList) evaluate(tag, XPathConstants.NODESET); - for (int i=0; i l = loadPluginInfo(tag, false); + return l.isEmpty() ? null : l.get(0); } private List loadPluginInfo(String tag, boolean requireName) {