common: Annotate ByteBuffer.array()
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Sun, 10 Apr 2016 22:20:16 +0000 (18:20 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 11 Apr 2016 20:05:53 +0000 (16:05 -0400)
commit9c5402ebe41166b26f73e075a045b91c34bdfbdd
treefd5ce707e3bed0f869c4164934adb3310ca694b4
parent6bdb35a25b2955bb3706f7d396e73869f4ef7e53
common: Annotate ByteBuffer.array()

to make it return a "byte @NonNull []", which means that
the array reference cannot be null.

It returns the buffer's internal array, and the implementation
first checks if it is null, and throws a
UnsupportedOperationException if it is.

Change-Id: I91d8a90d11dbe30ba0895103fadba78ed4b35ecf
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/70336
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
common/org.eclipse.tracecompass.common.core/annotations/java/nio/ByteBuffer.eea
This page took 0.026446 seconds and 5 git commands to generate.