Fixed a warning reported by FindBugs in CompositeChannelBuffer
This commit is contained in:
parent
33187d0285
commit
d8cd49c1b7
@ -261,7 +261,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
|||||||
if (index + 3 <= indices[sliceId + 1]) {
|
if (index + 3 <= indices[sliceId + 1]) {
|
||||||
slices[sliceId].setMedium(index - indices[sliceId], value);
|
slices[sliceId].setMedium(index - indices[sliceId], value);
|
||||||
} else if (order() == ByteOrder.BIG_ENDIAN) {
|
} else if (order() == ByteOrder.BIG_ENDIAN) {
|
||||||
setShort(index, (short) (value >>> 8));
|
setShort(index, (short) (value >> 8));
|
||||||
setByte(index + 2, (byte) value);
|
setByte(index + 2, (byte) value);
|
||||||
} else {
|
} else {
|
||||||
setShort(index , (short) value);
|
setShort(index , (short) value);
|
||||||
|
Loading…
Reference in New Issue
Block a user