TODO fix possible bug

This commit is contained in:
leventov
2016-05-27 13:04:28 +01:00
parent 5c25d2d10e
commit b037e8a7df
@@ -55,6 +55,7 @@ class DirectBytesBuffer
}
Bytes obtain(long maxSize, boolean boundsChecking) {
// TODO return bounds checking
DirectBytes buf;
if ((buf = buffer) != null) {
if (maxSize <= buf.capacity()) {