Revision 46696 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/featureset/FastEditedFilteredIterator.java

View differences:

FastEditedFilteredIterator.java
23 23
 */
24 24
package org.gvsig.fmap.dal.feature.impl.featureset;
25 25

  
26
import org.apache.commons.lang3.BooleanUtils;
26 27
import org.gvsig.fmap.dal.exception.DataEvaluatorException;
27 28
import org.gvsig.fmap.dal.exception.DataException;
28 29
import org.gvsig.fmap.dal.feature.impl.DefaultFeature;
......
39 40
        @Override
40 41
	public boolean match(DefaultFeature feature) throws DataException {
41 42
		try {
42
			return ((boolean) this.filter.evaluate(feature));
43
		} catch (EvaluatorException e) {
43
                    Object v = this.filter.evaluate(feature);
44
                    return toBooleanMatch(v);
45
		} catch (Exception e) {
44 46
			throw new DataEvaluatorException(e);
45 47
		}
46 48
	}

Also available in: Unified diff