" " -> " " / Cleanup

This commit is contained in:
Trustin Lee 2013-06-12 04:07:09 +09:00
parent 5b978497f8
commit 9396246fe9

View File

@ -980,9 +980,11 @@ public class DefaultCompositeByteBuf extends AbstractReferenceCountedByteBuf imp
return components.get(0).buf.nioBufferCount();
} else {
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);
count += c.buf.nioBufferCount();
count += c.buf.nioBufferCount();
}
return count;
}