You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2012/03/19 06:00:41 UTC
svn commit: r1302271 -
/lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java
Author: shaie
Date: Mon Mar 19 05:00:40 2012
New Revision: 1302271
URL: http://svn.apache.org/viewvc?rev=1302271&view=rev
Log:
remove redundant throws FacetException (as it's not really thrown)
Modified:
lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java
Modified: lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java?rev=1302271&r1=1302270&r2=1302271&view=diff
==============================================================================
--- lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java (original)
+++ lucene/dev/trunk/modules/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java Mon Mar 19 05:00:40 2012
@@ -114,10 +114,8 @@ public class CategoryContainer implement
* 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<Class<? extends CategoryProperty>> propertyClasses = categoryAttribute
@@ -166,15 +164,8 @@ public class CategoryContainer implement
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);
}