ctf: Explicitly create a Long object for Integer fields
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 4 Apr 2016 23:03:14 +0000 (19:03 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 5 Apr 2016 18:39:30 +0000 (14:39 -0400)
Just in case, and to be more clear, explicitly box the primitive
into its expected Long object.

Change-Id: I8cd2cbee034479ca7e6361b02e7ef1b74b51e178
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/69865
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEventField.java

index f7ebb56ec82adbcf8f88476287ac39a68689c391..4f502d68f0bdd8323424cfe49102a5888b6de383 100644 (file)
@@ -246,7 +246,7 @@ final class CTFIntegerField extends CtfTmfEventField {
      *            Is the value signed or not
      */
     CTFIntegerField(@NonNull String name, long longValue, int base, boolean signed) {
-        super(name, longValue, null);
+        super(name, Long.valueOf(longValue), null);
         fSigned = signed;
         fBase = base;
     }
This page took 0.027153 seconds and 5 git commands to generate.