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)
commit00c15db6f5612119ed0502463c8abb74abed63ce
treef19d7cba175294f35b789aac046e62b7a8189e3f
parent24eb1856ed2c3187f69373857e2a11492e69a444
vm: change private method to take a List instead of ArrayList

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
This page took 0.024727 seconds and 5 git commands to generate.