tmf: Fix zero timestamp being included in all time ranges
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 1 Nov 2013 18:50:46 +0000 (14:50 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 5 Nov 2013 18:19:50 +0000 (13:19 -0500)
commit2d17cf162cf787f668cc813e192313bfe0bc7864
tree13784f997b7c923b6f6cc556f0ccc8a28737242e
parentab346a2ba20b055be2de60de92131c901dc7f27f
tmf: Fix zero timestamp being included in all time ranges

For some obscure unknown reason, if a timestamp's value was equal
to 0, the TmfTimeRange.contains() method would always consider that
timestamp to be included in the time range, which is obviously wrong.

Change-Id: I61afea2eb05ede61b02dbaaed388e1a49c041fa2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17980
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfTimeRangeTest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/timestamp/TmfTimeRange.java
This page took 0.025702 seconds and 5 git commands to generate.