From dd831066b24c870ba73a05d512ad272e4152d3eb Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Mon, 19 Mar 2012 11:29:52 +0000 Subject: [PATCH] remove another redundant throws FacetException from CategoryContainer git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1302378 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/facet/index/CategoryContainer.java | 7 +------ 1 file changed, 1 insertion(+), 6 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 901f3f6c9cd..3199bea1821 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 @@ -11,7 +11,6 @@ import java.util.Set; import org.apache.lucene.util.Attribute; -import org.apache.lucene.facet.FacetException; import org.apache.lucene.facet.index.attributes.CategoryAttribute; import org.apache.lucene.facet.index.attributes.CategoryAttributeImpl; import org.apache.lucene.facet.index.attributes.CategoryProperty; @@ -93,13 +92,9 @@ public class CategoryContainer implements Iterable, Serializa * @param properties * The properties to associate to the category. * @return The {@link CategoryAttribute} of the category. - * @throws FacetException - * When the category already has a property of the same type as - * one of the new properties, and merging for this property type - * is prohibited. */ public CategoryAttribute addCategory(CategoryPath categoryPath, - CategoryProperty... properties) throws FacetException { + CategoryProperty... properties) { CategoryAttribute ca = mapCategoryAttribute(categoryPath); for (CategoryProperty attribute : properties) { ca.addProperty(attribute);