Renamed setFromList to setComponents
This commit is contained in:
parent
85712a72b8
commit
ed27ca19ea
@ -78,7 +78,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
order = expectedEndianness;
|
order = expectedEndianness;
|
||||||
setFromList(newComponents);
|
setComponents(newComponents);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -131,7 +131,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
|||||||
/**
|
/**
|
||||||
* Setup this ChannelBuffer from the list
|
* Setup this ChannelBuffer from the list
|
||||||
*/
|
*/
|
||||||
private void setFromList(List<ChannelBuffer> newComponents) {
|
private void setComponents(List<ChannelBuffer> newComponents) {
|
||||||
assert !newComponents.isEmpty();
|
assert !newComponents.isEmpty();
|
||||||
|
|
||||||
// Clear the cache.
|
// Clear the cache.
|
||||||
@ -148,6 +148,10 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
|||||||
|
|
||||||
assert c.readerIndex() == 0;
|
assert c.readerIndex() == 0;
|
||||||
assert c.writerIndex() == c.capacity();
|
assert c.writerIndex() == c.capacity();
|
||||||
|
if (c.writerIndex() != c.capacity()) {
|
||||||
|
System.err.println(c);
|
||||||
|
throw new Error();
|
||||||
|
}
|
||||||
|
|
||||||
components[i] = c;
|
components[i] = c;
|
||||||
}
|
}
|
||||||
@ -689,7 +693,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
|||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
setFromList(list);
|
setComponents(list);
|
||||||
|
|
||||||
// reset marked Indexes
|
// reset marked Indexes
|
||||||
localMarkedReaderIndex = Math.max(localMarkedReaderIndex - localReaderIndex, 0);
|
localMarkedReaderIndex = Math.max(localMarkedReaderIndex - localReaderIndex, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user