" " -> " " / Cleanup
This commit is contained in:
parent
5b978497f8
commit
9396246fe9
@ -980,9 +980,11 @@ public class DefaultCompositeByteBuf extends AbstractReferenceCountedByteBuf imp
|
|||||||
return components.get(0).buf.nioBufferCount();
|
return components.get(0).buf.nioBufferCount();
|
||||||
} else {
|
} else {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (int i = 0; i < components.size(); i++) {
|
int componentsCount = components.size();
|
||||||
|
//noinspection ForLoopReplaceableByForEach
|
||||||
|
for (int i = 0; i < componentsCount; i++) {
|
||||||
Component c = components.get(i);
|
Component c = components.get(i);
|
||||||
count += c.buf.nioBufferCount();
|
count += c.buf.nioBufferCount();
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user