calrissian / mango

Common utilities for rapid application development
Apache License 2.0
17 stars 7 forks source link

Most of the criteria objects don't evaluate correctly #188

Closed eawagner closed 9 years ago

eawagner commented 9 years ago

Most of them use the following pattern:

    for (Attribute attribute : attributes) {
        return comparator.compare(attribute.getValue(), value) >= 0;
    }

The problem with this is that it simply returns based on the first result and does not evaluate any other results. Some of them actually appear correct (the ones with unit tests), but we should correctly implement all the criteria apply methods.