Skip to content

Commit

Permalink
Removed useless throws
Browse files Browse the repository at this point in the history
  • Loading branch information
mnilsson23 committed Sep 27, 2016
1 parent 9063b1c commit 9f15e79
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,11 @@ protected void onManagedDataLoadedFromStorage(NamedList<?> managedInitArgs,
}
}

public synchronized void addFeature(Map<String,Object> 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<String,Object> 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")
Expand Down

0 comments on commit 9f15e79

Please sign in to comment.