lttng: Fix null annotation error on Eclipse 4.5.x
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 25 Feb 2016 18:19:03 +0000 (13:19 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 25 Feb 2016 22:59:53 +0000 (17:59 -0500)
commitb6fb4b5e0a81830a8623c96124bbe4413df7ff11
tree3909367b90044af68b04ed51b7c1878b94f94edf
parent963d4d7bde779c9b86e2f516b2e4f0d3435a45bb
lttng: Fix null annotation error on Eclipse 4.5.x

getAnalysisModuleOfClass returns a Nullable module, this nullable should
be kept all the way to the Optional returned by findFirst. In 4.5.x,
this works correctly and the result of findFirst cannot be assigned to
an Optional<@NonNull>, hence the error. In 4.6, the @Nullable is lost
along the way and the result of findFirst can be assigned without error
to an Optional<@NonNull>.

Change-Id: If544f9372e2132f5796074f197a7ae01679fe1da
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/67355
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/internal/lttng2/kernel/core/analysis/graph/model/LttngWorker.java
This page took 0.0288 seconds and 5 git commands to generate.