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
This commit is contained in:
Shai Erera 2012-03-19 11:29:52 +00:00
parent 294d4d39b5
commit dd831066b2
1 changed files with 1 additions and 6 deletions

View File

@ -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<CategoryAttribute>, 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);