1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Add BooleansUtils

This commit is contained in:
Florian Schmaus 2019-02-17 18:19:45 +01:00
parent 8ed872ca63
commit b3ed9bc29f
2 changed files with 33 additions and 4 deletions

View file

@ -33,6 +33,7 @@ import org.jivesoftware.smack.filter.StanzaExtensionFilter;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smack.util.Async;
import org.jivesoftware.smack.util.BooleansUtils;
import org.jivesoftware.smack.util.MultiMap;
import org.jivesoftware.smack.util.StringUtils;
@ -171,10 +172,8 @@ public class XmppConnectionStressTest {
}
for (boolean[] markers : myReceiveMarkers.values()) {
for (boolean b : markers) {
if (!b) {
return;
}
if (BooleansUtils.contains(markers, false)) {
return;
}
}
// All markers set to true, this means we received all messages.