tmf: Bug 416660: -1 long state value is not long
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 12 Sep 2013 22:00:50 +0000 (18:00 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 29 Nov 2013 15:13:35 +0000 (10:13 -0500)
commit359eeba0f00eb9fc272f2c54c1209886b7cd5e67
treecd5eacb7f6c505200f55bf68e14e5a81119a8d0f
parent6f7e27a0a2a9abe657336d3c5b0b16c28d9c3d0d
tmf: Bug 416660: -1 long state value is not long

- Do not return nullValue when creating a new int or long with a value
of -1. This ensures that these values can be used and be differentiated
from a null value.

- Change occurences of -1 null value check to use isNull() method.

Change-Id: I7c9e80963736e701a0b30f5f3009a0c7084527bb
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/16396
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/LttngKernelStateProvider.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/StateSystem.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HTInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/IntegerStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/TmfStateValue.java
This page took 0.026992 seconds and 5 git commands to generate.