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.
|
* is made.
|
||||||
*
|
*
|
||||||
* <p> If this buffer was not mapped in read/write mode ({@link
|
* <p> If this buffer was not mapped in read/write mode ({@link
|
||||||
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then invoking this
|
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then
|
||||||
* 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>
|
||||||
*
|
*
|
||||||
* @return This buffer
|
* @return This buffer
|
||||||
*/
|
*/
|
||||||
@ -271,7 +274,10 @@ public abstract class MappedByteBuffer
|
|||||||
*
|
*
|
||||||
* <p> If this buffer was not mapped in read/write mode ({@link
|
* <p> If this buffer was not mapped in read/write mode ({@link
|
||||||
* java.nio.channels.FileChannel.MapMode#READ_WRITE}) then
|
* 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
|
* @param index
|
||||||
* The index of the first byte in the buffer region that is
|
* The index of the first byte in the buffer region that is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user