8326951: since-checker - missing @ since tags

Reviewed-by: jpai
This commit is contained in:
Nizar Benalla 2024-06-04 16:51:39 +00:00 committed by Jaikiran Pai
parent 31f70391e5
commit e0bab78640
7 changed files with 22 additions and 5 deletions

View file

@ -397,6 +397,8 @@ public abstract sealed class MappedByteBuffer
* {@code force()} on the returned buffer, will only act on the sub-range
* of this buffer that the returned buffer represents, namely
* {@code [position(),limit())}.
*
* @since 17
*/
@Override
public abstract MappedByteBuffer slice();
@ -410,12 +412,16 @@ public abstract sealed class MappedByteBuffer
* of this buffer that the returned buffer represents, namely
* {@code [index,index+length)}, where {@code index} and {@code length} are
* assumed to satisfy the preconditions.
*
* @since 17
*/
@Override
public abstract MappedByteBuffer slice(int index, int length);
/**
* {@inheritDoc}
*
* @since 17
*/
@Override
public abstract MappedByteBuffer duplicate();
@ -423,6 +429,8 @@ public abstract sealed class MappedByteBuffer
/**
* {@inheritDoc}
* @throws ReadOnlyBufferException {@inheritDoc}
*
* @since 17
*/
@Override
public abstract MappedByteBuffer compact();