From ad903ad6a362ae72a9ba6e44d15828579a7e1904 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 27 Aug 2015 08:16:21 +0200 Subject: [PATCH] =?utf8?q?This=20should=20be=20an=20AND=20boolean=20compar?= =?utf8?q?ison.=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jcore/criteria/logical/and/AndLogicalMatcher.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } } } -- 2.39.5