Fixed a warning reported by FindBugs in CompositeChannelBuffer

This commit is contained in:
Trustin Lee 2008-11-07 02:08:36 +00:00
parent 33187d0285
commit d8cd49c1b7

View File

@ -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);