common: Add a checkNotNullContents() for arrays
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 24 Nov 2015 23:50:31 +0000 (18:50 -0500)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 27 Nov 2015 22:07:05 +0000 (17:07 -0500)
commit7fb07f6f7df541331a6f746cbba5b6e13d3466e4
tree8b817d933bea7517124265008af6196470ddc3ea
parent40854318f85f8ec28c928ba14e99196b67af8731
common: Add a checkNotNullContents() for arrays

For Collections we can easily go through a Stream and back
to call checkNotNullContents(Stream<T>), for arrays it's slightly
more complicated, so we might as well define a new method
specifically for arrays.

Also add some "tests" (not actual runnable tests, but just snippets
of code that should compile) to make sure the annotations are working
correctly.

Change-Id: I2d18ba912076ea98cfca3628e7c8d6077209f74b
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/59427
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
common/org.eclipse.tracecompass.common.core.tests/src/org/eclipse/tracecompass/common/core/tests/NonNullUtilsTest.java
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/NonNullUtils.java
This page took 0.027862 seconds and 5 git commands to generate.