tmf: annotate TmfContext#location as nullable
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Sun, 2 Oct 2016 03:13:21 +0000 (23:13 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 3 Oct 2016 15:13:30 +0000 (11:13 -0400)
commit38db0431495b718c56c0b59f2c81d9af8108c665
treebf5706bfac9718b0ca14ed71fb2c36ceb3b55782
parent37b7faba6f4b597d03a6fd982bfc49dd1b199080
tmf: annotate TmfContext#location as nullable

This fixes a potential race condition if the context is changed
after a null check but before a dereference. In the current
implementation, it is extremely unlikely to happen, but this
may save later investigation time.

Change-Id: I9083d16fd8e3728fe829583f4de78384109a91e6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82325
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
btf/org.eclipse.tracecompass.btf.core/src/org/eclipse/tracecompass/btf/core/trace/BtfTrace.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/parsers/custom/CustomTxtTrace.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/parsers/custom/CustomXmlTrace.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfContext.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/experiment/TmfExperiment.java
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/text/TextTrace.java
This page took 0.025559 seconds and 5 git commands to generate.