From bfa06a9e30416ebfa53490746f99a298b3920c99 Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Mon, 19 Mar 2012 05:00:40 +0000 Subject: [PATCH] remove redundant throws FacetException (as it's not really thrown) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1302271 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/facet/index/CategoryContainer.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java b/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java index 16336e14eac..901f3f6c9cd 100644 --- a/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java +++ b/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java @@ -114,10 +114,8 @@ public class CategoryContainer implements Iterable, Serializa * The {@link CategoryAttribute} to add. * @return The {@link CategoryAttribute} of the category (could be different * from the one provided). - * @throws FacetException */ - public CategoryAttribute addCategory(CategoryAttribute categoryAttribute) - throws FacetException { + public CategoryAttribute addCategory(CategoryAttribute categoryAttribute) { CategoryAttribute ca = mapCategoryAttribute(categoryAttribute .getCategoryPath()); Set> propertyClasses = categoryAttribute @@ -166,15 +164,8 @@ public class CategoryContainer implements Iterable, Serializa map.clear(); } - /** - * Add the categories from another {@link CategoryContainer} to this one. - * - * @param other - * The {@link CategoryContainer} to take categories from. - * @throws FacetException - * If any prohibited merge of category properties is attempted. - */ - public void merge(CategoryContainer other) throws FacetException { + /** Add the categories from another {@link CategoryContainer} to this one. */ + public void merge(CategoryContainer other) { for (CategoryAttribute categoryAttribute : other.map.values()) { addCategory(categoryAttribute); }