commit | 7d2549c690bab5d4ccd8db0e501d61c2a4fc302c | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Feb 16 13:39:29 2016 +0000 |
committer | Narayan Kamath <narayan@google.com> | Tue Feb 16 13:44:01 2016 +0000 |
tree | 4415b17bd09a5b9d01cb5b18b4cb33785ca578f3 | |
parent | 4f91c9116ac55ca8cf4e116fb2d518d8bd3d6b1d [diff] |
ByteBuffer: Use |offset| directly. Calling arrayOffset will throw for buffers that are read only. This fixes FileChannelTest#testReadOnlyByteArrays and BufferTest#testPutByteBuffer. Also contains some pedantic trailing whitespace removal. Change-Id: Ib6335a1a542d78702721e16ff4b39dc353564301