lttng: Remove unnecessary String object creation
authorAlexis Cabana-Loriaux <alex021994@gmail.com>
Wed, 6 May 2015 17:00:43 +0000 (13:00 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 11 May 2015 22:10:06 +0000 (18:10 -0400)
Change-Id: I984c3218ebe2cff37b5596f53c2bb2d642f1bfd4
Signed-off-by: Alexis Cabana-Loriaux <alex021994@gmail.com>
Reviewed-on: https://git.eclipse.org/r/47353
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.lttng2.ust.ui/src/org/eclipse/tracecompass/internal/lttng2/ust/ui/views/memusage/MemoryUsageViewer.java

index a30d3ef8c87983d3cd0181b6057557932238511e..a1694bbcd3152d1e3cf4d2252aa1524fa0b722f0 100644 (file)
@@ -111,7 +111,7 @@ public class MemoryUsageViewer extends TmfCommonXLineChartViewer {
                     int procNameQuark = ss.getQuarkRelative(quark, UstMemoryStrings.UST_MEMORY_PROCNAME_ATTRIBUTE);
                     try {
                         ITmfStateValue procnameValue = ss.querySingleState(start, procNameQuark).getStateValue();
-                        String procname = new String();
+                        String procname = ""; //$NON-NLS-1$
                         if (!procnameValue.isNull()) {
                             procname = procnameValue.unboxStr();
                         }
@@ -122,10 +122,10 @@ public class MemoryUsageViewer extends TmfCommonXLineChartViewer {
                 }
 
                 /*
-                 * TODO: It should only show active threads in the time range. If a
-                 * tid does not have any memory value (only 1 interval in the time
-                 * range with value null or 0), then its series should not be
-                 * displayed.
+                 * TODO: It should only show active threads in the time range.
+                 * If a tid does not have any memory value (only 1 interval in
+                 * the time range with value null or 0), then its series should
+                 * not be displayed.
                  */
                 double yvalue = 0.0;
                 for (int i = 0; i < xvalues.length; i++) {
This page took 0.02743 seconds and 5 git commands to generate.