Fix compilation errors
This commit is contained in:
parent
7ac89ace4f
commit
c32df371ab
@ -145,7 +145,7 @@ public class ByteBufferBackedChannelBuffer extends AbstractChannelBuffer {
|
|||||||
tmpBuf.clear().position(index).limit(index + length);
|
tmpBuf.clear().position(index).limit(index + length);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
throw new IndexOutOfBoundsException("Too many bytes to read - Need "
|
throw new IndexOutOfBoundsException("Too many bytes to read - Need "
|
||||||
+ (index + length) + ", maximum is " + data.limit());
|
+ (index + length) + ", maximum is " + buffer.limit());
|
||||||
}
|
}
|
||||||
tmpBuf.get(dst, dstIndex, length);
|
tmpBuf.get(dst, dstIndex, length);
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ public class ByteBufferBackedChannelBuffer extends AbstractChannelBuffer {
|
|||||||
tmpBuf.clear().position(index).limit(index + bytesToCopy);
|
tmpBuf.clear().position(index).limit(index + bytesToCopy);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
throw new IndexOutOfBoundsException("Too many bytes to read - Need "
|
throw new IndexOutOfBoundsException("Too many bytes to read - Need "
|
||||||
+ (index + bytesToCopy) + ", maximum is " + data.limit());
|
+ (index + bytesToCopy) + ", maximum is " + buffer.limit());
|
||||||
}
|
}
|
||||||
dst.put(tmpBuf);
|
dst.put(tmpBuf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user