From: Roland Haeder Date: Thu, 27 Aug 2015 06:16:21 +0000 (+0200) Subject: This should be an AND boolean comparison. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad903ad6a362ae72a9ba6e44d15828579a7e1904;p=jcore.git This should be an AND boolean comparison. Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/criteria/logical/and/AndLogicalMatcher.java b/src/org/mxchange/jcore/criteria/logical/and/AndLogicalMatcher.java index 93d6297..6dfb4f3 100644 --- a/src/org/mxchange/jcore/criteria/logical/and/AndLogicalMatcher.java +++ b/src/org/mxchange/jcore/criteria/logical/and/AndLogicalMatcher.java @@ -55,6 +55,16 @@ public class AndLogicalMatcher extends BaseFrameworkSystem implements Logical { // Debug message this.getLogger().debug(MessageFormat.format("criteriaKey={0},criteriaMatches={1}", criteriaKey, criteriaMatches)); //NOI18N + + // Is both the same and false? + if ((entry.getKey().equals(criteriaKey)) && (!criteriaMatches)) { + // Debug message + this.getLogger().debug("Not matching, aborting search."); + + // Doesn't match + matches = false; + break; + } } }