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

Change-Id: Icd7b69f793bf8a19b44b89d8506981cfbad38ddb
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61069
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/CustomXmlParserInputWizardPage.java

index 853df7979b4bee3f2cfc743cfe6b512e365b032c..dee6739462cf278bc9f25bc9a336556116011dbe 100644 (file)
@@ -725,7 +725,8 @@ public class CustomXmlParserInputWizardPage 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');
                 }
                 parseXmlInput(sb.toString());
                 return sb.toString();
This page took 0.02859 seconds and 5 git commands to generate.