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
This commit is contained in:
Shai Erera 2012-03-19 05:00:40 +00:00
parent c4f72f61ac
commit bfa06a9e30
1 changed files with 3 additions and 12 deletions

View File

@ -114,10 +114,8 @@ public class CategoryContainer implements Iterable<CategoryAttribute>, Serializa
* The {@link CategoryAttribute} to add. * The {@link CategoryAttribute} to add.
* @return The {@link CategoryAttribute} of the category (could be different * @return The {@link CategoryAttribute} of the category (could be different
* from the one provided). * from the one provided).
* @throws FacetException
*/ */
public CategoryAttribute addCategory(CategoryAttribute categoryAttribute) public CategoryAttribute addCategory(CategoryAttribute categoryAttribute) {
throws FacetException {
CategoryAttribute ca = mapCategoryAttribute(categoryAttribute CategoryAttribute ca = mapCategoryAttribute(categoryAttribute
.getCategoryPath()); .getCategoryPath());
Set<Class<? extends CategoryProperty>> propertyClasses = categoryAttribute Set<Class<? extends CategoryProperty>> propertyClasses = categoryAttribute
@ -166,15 +164,8 @@ public class CategoryContainer implements Iterable<CategoryAttribute>, Serializa
map.clear(); map.clear();
} }
/** /** Add the categories from another {@link CategoryContainer} to this one. */
* Add the categories from another {@link CategoryContainer} to this one. public void merge(CategoryContainer other) {
*
* @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 {
for (CategoryAttribute categoryAttribute : other.map.values()) { for (CategoryAttribute categoryAttribute : other.map.values()) {
addCategory(categoryAttribute); addCategory(categoryAttribute);
} }