Removes unnecessary parentheses for @trustin
Part of #496 Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
This commit is contained in:
parent
abc2f87f2f
commit
0aebfb762b
@ -85,20 +85,20 @@ public class BigEndianHeapChannelBuffer extends HeapChannelBuffer {
|
||||
|
||||
public void setShort(int index, int value) {
|
||||
array[index] = (byte) (value >>> 8);
|
||||
array[index + 1] = (byte) (value);
|
||||
array[index + 1] = (byte) value;
|
||||
}
|
||||
|
||||
public void setMedium(int index, int value) {
|
||||
array[index] = (byte) (value >>> 16);
|
||||
array[index + 1] = (byte) (value >>> 8);
|
||||
array[index + 2] = (byte) (value);
|
||||
array[index + 2] = (byte) value;
|
||||
}
|
||||
|
||||
public void setInt(int index, int value) {
|
||||
array[index] = (byte) (value >>> 24);
|
||||
array[index + 1] = (byte) (value >>> 16);
|
||||
array[index + 2] = (byte) (value >>> 8);
|
||||
array[index + 3] = (byte) (value);
|
||||
array[index + 3] = (byte) value;
|
||||
}
|
||||
|
||||
public void setLong(int index, long value) {
|
||||
@ -109,7 +109,7 @@ public class BigEndianHeapChannelBuffer extends HeapChannelBuffer {
|
||||
array[index + 4] = (byte) (value >>> 24);
|
||||
array[index + 5] = (byte) (value >>> 16);
|
||||
array[index + 6] = (byte) (value >>> 8);
|
||||
array[index + 7] = (byte) (value);
|
||||
array[index + 7] = (byte) value;
|
||||
}
|
||||
|
||||
public ChannelBuffer duplicate() {
|
||||
|
@ -158,7 +158,7 @@ public class ByteBufferBackedChannelBuffer extends AbstractChannelBuffer {
|
||||
public void setMedium(int index, int value) {
|
||||
setByte(index, (byte) (value >>> 16));
|
||||
setByte(index + 1, (byte) (value >>> 8));
|
||||
setByte(index + 2, (byte) (value));
|
||||
setByte(index + 2, (byte) value);
|
||||
}
|
||||
|
||||
public void setInt(int index, int value) {
|
||||
|
@ -84,25 +84,25 @@ public class LittleEndianHeapChannelBuffer extends HeapChannelBuffer {
|
||||
}
|
||||
|
||||
public void setShort(int index, int value) {
|
||||
array[index] = (byte) (value);
|
||||
array[index] = (byte) value;
|
||||
array[index + 1] = (byte) (value >>> 8);
|
||||
}
|
||||
|
||||
public void setMedium(int index, int value) {
|
||||
array[index] = (byte) (value);
|
||||
array[index] = (byte) value;
|
||||
array[index + 1] = (byte) (value >>> 8);
|
||||
array[index + 2] = (byte) (value >>> 16);
|
||||
}
|
||||
|
||||
public void setInt(int index, int value) {
|
||||
array[index] = (byte) (value);
|
||||
array[index] = (byte) value;
|
||||
array[index + 1] = (byte) (value >>> 8);
|
||||
array[index + 2] = (byte) (value >>> 16);
|
||||
array[index + 3] = (byte) (value >>> 24);
|
||||
}
|
||||
|
||||
public void setLong(int index, long value) {
|
||||
array[index] = (byte) (value);
|
||||
array[index] = (byte) value;
|
||||
array[index + 1] = (byte) (value >>> 8);
|
||||
array[index + 2] = (byte) (value >>> 16);
|
||||
array[index + 3] = (byte) (value >>> 24);
|
||||
|
Loading…
Reference in New Issue
Block a user