Fix broken CompositeMatcher

Motivation:

ChannelMatchers#CompositeMatcher inverts matches result.

Modifications:

Switched return values.

Result:

ChannelMatchers#CompositeMatcher will return correct results.
This commit is contained in:
Korotaev Boris 2014-05-31 13:36:50 +06:00 committed by Norman Maurer
parent d0f3bfd4cc
commit 5b2a01a196

View File

@ -121,10 +121,10 @@ public final class ChannelMatchers {
public boolean matches(Channel channel) {
for (int i = 0; i < matchers.length; i++) {
if (!matchers[i].matches(channel)) {
return true;
return false;
}
}
return false;
return true;
}
}