This commit is contained in:
Jesper Wilhelmsson 2019-06-22 02:03:41 +02:00
commit dc0082255a
11 changed files with 339 additions and 41 deletions

View file

@ -235,8 +235,11 @@ public abstract class MappedByteBuffer
* is made.
*
* <p> If this buffer was not mapped in read/write mode ({@link
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then invoking this
* method has no effect. </p>
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then
* invoking this method may have no effect. In particular, the
* method has no effect for buffers mapped in read-only or private
* mapping modes. This method may or may not have an effect for
* implementation-specific mapping modes. </p>
*
* @return This buffer
*/
@ -271,7 +274,10 @@ public abstract class MappedByteBuffer
*
* <p> If this buffer was not mapped in read/write mode ({@link
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then
* invoking this method has no effect. </p>
* invoking this method may have no effect. In particular, the
* method has no effect for buffers mapped in read-only or private
* mapping modes. This method may or may not have an effect for
* implementation-specific mapping modes. </p>
*
* @param index
* The index of the first byte in the buffer region that is