tmf : Avoid concatenating nonliterals in a StringBuilder
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Mon, 23 Nov 2015 20:54:21 +0000 (15:54 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 24 Nov 2015 15:24:10 +0000 (10:24 -0500)
Split the append() call in two separates calls

Change-Id: Ib86731f916d76002570aad71f4976f6bfdf163a0
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61070
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/parsers/wizards/CustomTxtParserInputWizardPage.java

index f541a85cd835909ba120fd2dbb3b34fdb1d5858e..7b6808a7c3f38d408df89f907ed0a124e82af9b1 100644 (file)
@@ -628,7 +628,8 @@ public class CustomTxtParserInputWizardPage extends WizardPage {
                     StringBuilder sb = new StringBuilder();
                     String line = null;
                     while ((line = reader.readLine()) != null) {
-                        sb.append(line + "\n"); //$NON-NLS-1$
+                        sb.append(line);
+                        sb.append('\n');
                     }
                     return sb.toString();
                 } catch (CoreException e) {
This page took 0.026492 seconds and 5 git commands to generate.