]> git.mxchange.org Git - jcore.git/commitdiff
This should be an AND boolean comparison.
authorRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 06:16:21 +0000 (08:16 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 06:16:21 +0000 (08:16 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/criteria/logical/and/AndLogicalMatcher.java

index 93d6297b0726fd2e22b94b61649b8d470d46d444..6dfb4f3a306da20b59e10ddfbe0efc653a065d96 100644 (file)
@@ -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;
+                               }
                        }
                }