custom charts: Have chart data return a collection
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Thu, 5 Jan 2017 20:56:21 +0000 (15:56 -0500)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Mon, 30 Jan 2017 15:54:12 +0000 (10:54 -0500)
It is read-only, so returning a list does not make sense, it cannot be
modified anyway.

Change-Id: I458dcd83b60f9a2d7960746ff370dc63d94c0332
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/88121
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.chart.core/src/org/eclipse/tracecompass/internal/provisional/tmf/chart/core/chart/ChartData.java

index 2a3deca166784b7d9a04768953a766ceda07b53e..02e947e1617602abd23f001e568c58c677e1eaf0 100644 (file)
@@ -9,6 +9,7 @@
 
 package org.eclipse.tracecompass.internal.provisional.tmf.chart.core.chart;
 
+import java.util.Collection;
 import java.util.List;
 
 import org.eclipse.tracecompass.internal.provisional.tmf.chart.core.descriptor.IDataChartDescriptor;
@@ -65,7 +66,7 @@ public class ChartData {
      *
      * @return The list of series
      */
-    public List<ChartSeries> getChartSeries() {
+    public Collection<ChartSeries> getChartSeries() {
         return fSeries;
     }
 
This page took 0.025223 seconds and 5 git commands to generate.