From 9f15e79f6f4da005a2a47547cafe5952fbb9e2a4 Mon Sep 17 00:00:00 2001 From: mnilsson23 Date: Tue, 27 Sep 2016 14:46:51 -0400 Subject: [PATCH] Removed useless throws --- .../apache/solr/ltr/rest/ManagedFeatureStore.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java index 7913ec6a1819..5b41771c71f5 100644 --- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java +++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java @@ -89,16 +89,11 @@ protected void onManagedDataLoadedFromStorage(NamedList managedInitArgs, } } - public synchronized void addFeature(Map map, String featureStore) - throws FeatureException { - try { - log.info("register feature based on {}", map); - final FeatureStore fstore = getFeatureStore(featureStore); - final Feature feature = fromFeatureMap(solrResourceLoader, map); - fstore.add(feature); - } catch (final FeatureException e) { - throw new SolrException(ErrorCode.BAD_REQUEST, e); - } + public synchronized void addFeature(Map map, String featureStore) { + log.info("register feature based on {}", map); + final FeatureStore fstore = getFeatureStore(featureStore); + final Feature feature = fromFeatureMap(solrResourceLoader, map); + fstore.add(feature); } @SuppressWarnings("unchecked")