vm: change private method to take a List instead of ArrayList
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 22 Jan 2016 04:15:36 +0000 (23:15 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 22 Jan 2016 18:53:25 +0000 (13:53 -0500)
Declarations should use Java collection interfaces such as "List"
rather than specific implementation classes such as "LinkedList"

The purpose of the Java Collections API is to provide a well defined
hierarchy of interfaces in order to hide implementation details.

Implementing classes must be used to instantiate new collections,
but the result of an instantiation should ideally be stored in a
variable whose type is a Java Collection interface.

Change-Id: I380287ab4b425167e6378f1b0c4d9aa1af4a8b02
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/64943
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.ui/src/org/eclipse/tracecompass/internal/lttng2/kernel/ui/views/vm/vcpuview/VirtualMachineView.java

index d496efc681ca25704c45d26ac64e25bd82d47fc9..abc44a3479d95defab6e6a58c0ef7b1e8eb84564 100644 (file)
@@ -293,7 +293,7 @@ public class VirtualMachineView extends AbstractTimeGraphView {
 
     }
 
-    private void buildEntryEventLists(ArrayList<@NonNull VirtualMachineViewEntry> entryList, ITmfStateSystem ssq, long startTime, long endTime, IProgressMonitor monitor) {
+    private void buildEntryEventLists(List<@NonNull VirtualMachineViewEntry> entryList, ITmfStateSystem ssq, long startTime, long endTime, IProgressMonitor monitor) {
         for (VirtualMachineViewEntry entry : entryList) {
             if (monitor.isCanceled()) {
                 return;
This page took 0.025815 seconds and 5 git commands to generate.