Fix test failures
This commit is contained in:
parent
1e0146da3e
commit
d4665f1703
@ -267,13 +267,14 @@ public final class MessageList<T> implements Iterable<T> {
|
||||
int i = srcIdx;
|
||||
try {
|
||||
if (byteBufsOnly) {
|
||||
for (; i < srcEndIdx; i ++) {
|
||||
while (i < srcEndIdx) {
|
||||
T m = src[srcIdx];
|
||||
if (m == null) {
|
||||
throw new NullPointerException("src[" + srcIdx + ']');
|
||||
}
|
||||
|
||||
elements[dstIdx ++] = m;
|
||||
i ++;
|
||||
|
||||
if (!(m instanceof ByteBuf)) {
|
||||
byteBufsOnly = false;
|
||||
@ -297,7 +298,7 @@ public final class MessageList<T> implements Iterable<T> {
|
||||
}
|
||||
}
|
||||
|
||||
assert dstIdx == newSize;
|
||||
assert dstIdx == newSize : String.format("dstIdx(%d) != newSize(%d)", dstIdx, newSize);
|
||||
size = newSize;
|
||||
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user