tmf: Change getTracesToBuild trace parameter to be @Nullable
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 28 Jul 2016 20:56:44 +0000 (16:56 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 29 Jul 2016 16:14:45 +0000 (12:14 -0400)
commitf9e76b646c70a81fe3f827f56aa5ef08b6aee39e
tree190d1d9fdc65ff5eb93a5dced29beb1f954ca885
parent4cc15e510f3bda4b6af2521b1eda33c3701d2144
tmf: Change getTracesToBuild trace parameter to be @Nullable

The default implementation already handles a null trace, and
VirtualMachineView overrides it as @Nullable.

This allows subclasses to call the method with the return value of
getTrace(), which can be null, without needing a null check and get an
empty list back.

Change-Id: Ie7cb5c79bb841796be4e20fcafedb43ad8b2c839
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/78104
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/timegraph/AbstractTimeGraphView.java
This page took 0.026014 seconds and 5 git commands to generate.