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:
parent
d0f3bfd4cc
commit
5b2a01a196
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user