From 4f6c9de9437aace12ca1c7c597bc0ec0c441476a Mon Sep 17 00:00:00 2001 From: syev Date: Thu, 2 Oct 2014 12:02:13 +0200 Subject: Fix return values from includes filters The method returned false when an include filter matched, and true if none of the filters matched. --- .../main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java b/api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java index d7d97e1..a2b8ae9 100755 --- a/api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java +++ b/api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java @@ -286,9 +286,10 @@ public final class DifferenceAccumulatingHandler extends AbstractDiffHandler { final Matcher includeMatcher = includePattern.matcher( fixedClassName ); while ( includeMatcher.find() ) { - return false; + return true; } } + return false; } return true; } -- cgit v1.2.3