os.linux: Extract returned value to a local variable
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 29 Jan 2015 20:14:21 +0000 (15:14 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 30 Jan 2015 20:03:13 +0000 (15:03 -0500)
Change-Id: I68c22af78898bb342a2212ad3a79ee1d0b200119
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/40660
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernelanalysis/KernelStateProvider.java

index ab1c397ca8311b3f06b84f66306b185015b64b06..37ee0cb59f10da7197af4bf4959a1bfe7ef11fe7 100644 (file)
@@ -110,8 +110,9 @@ public class KernelStateProvider extends AbstractTmfStateProvider {
         builder.put(layout.eventSchedProcessExit(), SCHED_PROCESS_EXIT_INDEX);
         builder.put(layout.eventSchedProcessFree(), SCHED_PROCESS_FREE_INDEX);
 
-        if (layout.eventStatedumpProcessState() != null) {
-            builder.put(layout.eventStatedumpProcessState(), STATEDUMP_PROCESS_STATE_INDEX);
+        final String eventStatedumpProcessState = layout.eventStatedumpProcessState();
+        if (eventStatedumpProcessState != null) {
+            builder.put(eventStatedumpProcessState, STATEDUMP_PROCESS_STATE_INDEX);
         }
 
         for (String eventSchedWakeup : layout.eventsSchedWakeup()) {
This page took 0.027342 seconds and 5 git commands to generate.