aboutsummaryrefslogtreecommitdiffstats
path: root/api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java
diff options
context:
space:
mode:
authorsyev <[email protected]>2014-10-02 12:02:13 +0200
committersyev <[email protected]>2014-10-02 12:02:13 +0200
commit4f6c9de9437aace12ca1c7c597bc0ec0c441476a (patch)
tree6f941c8374239b5da16621bb0c1dcb01c4eab792 /api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java
parent12649993a2638e8998ed848f6845fd2e0208b773 (diff)
Fix return values from includes filters
The method returned false when an include filter matched, and true if none of the filters matched.
Diffstat (limited to 'api/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java')
-rwxr-xr-xapi/src/main/java/org/semver/jardiff/DifferenceAccumulatingHandler.java3
1 files changed, 2 insertions, 1 deletions
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;
}