8226203: MappedByteBuffer.force method may have no effect on implementation specific map modes
Fix comment for MappedByteBuffer force methods Reviewed-by: alanb
This commit is contained in:
parent
d1017b71ad
commit
547e919979
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user