lttng.control: remove useless data assignment
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Sat, 15 Oct 2016 15:43:08 +0000 (11:43 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 17 Oct 2016 14:07:26 +0000 (10:07 -0400)
In an elvis switch ?: a value was assigned in one of the branches.
This fixes the issue.

Change-Id: I4fedee2efdfbe184f8857d37004dc3192235f9f0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83301
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
lttng/org.eclipse.tracecompass.lttng2.control.core/src/org/eclipse/tracecompass/lttng2/control/core/session/SessionConfigGenerator.java

index 1c8921bc3b2f330000d12d6df58ee9c4b46b15ff..4b9ecb3af5e57608c37d1c5d161c94be0b886bdf 100644 (file)
@@ -326,7 +326,7 @@ public final class SessionConfigGenerator {
             addElementContent(document, channelElement, SessionConfigStrings.CONFIG_ELEMENT_READ_TIMER_INTERVAL, channel.getReadTimer());
 
             String outputType = channel.getOutputType().getInName().startsWith(SessionConfigStrings.CONFIG_OUTPUT_TYPE_MMAP) ?
-                    outputType = SessionConfigStrings.CONFIG_OUTPUT_TYPE_MMAP : SessionConfigStrings.CONFIG_OUTPUT_TYPE_SPLICE;
+                    SessionConfigStrings.CONFIG_OUTPUT_TYPE_MMAP : SessionConfigStrings.CONFIG_OUTPUT_TYPE_SPLICE;
             addElementContent(document, channelElement, SessionConfigStrings.CONFIG_ELEMENT_OUTPUT_TYPE, outputType);
             addElementContent(document, channelElement, SessionConfigStrings.CONFIG_ELEMENT_TRACEFILE_SIZE, channel.getMaxSizeTraceFiles());
             addElementContent(document, channelElement, SessionConfigStrings.CONFIG_ELEMENT_TRACEFILE_COUNT, channel.getMaxNumberTraceFiles());
This page took 0.024828 seconds and 5 git commands to generate.