lttng: Add clear() call before add elements to list
authorBernd Hufmann <bhufmann@gmail.com>
Thu, 28 Feb 2013 13:12:48 +0000 (08:12 -0500)
committerBernd Hufmann <bhufmann@gmail.com>
Thu, 28 Feb 2013 18:51:20 +0000 (13:51 -0500)
commita6702bfa327cd9e9dcd093c5288c20e9f1d5ba66
tree48746d98236fabfe0f90ba4353b1b35486e3b4f1
parent61759503a35af46ddb0f8d54a351c620e9aeb605
lttng: Add clear() call before add elements to list

In various LTTng Tracer Control core model classes, the relevant
array list is not cleared when the setter is being called. For
example, the method DomainInfo.setChannels(List chans) doesn't
clear the channel list before filling the channel list with the
new channels passed as parameter.

Change-Id: I0e5c8c4f0bd84a6de1c383131255b61c7ca94406
Signed-off-by: Bernd Hufmann <bhufmann@gmail.com>
Reviewed-on: https://git.eclipse.org/r/10731
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/internal/lttng2/core/control/model/impl/BaseEventInfo.java
org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/internal/lttng2/core/control/model/impl/ChannelInfo.java
org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/internal/lttng2/core/control/model/impl/DomainInfo.java
org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/internal/lttng2/core/control/model/impl/SessionInfo.java
org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/internal/lttng2/core/control/model/impl/UstProviderInfo.java
This page took 0.026399 seconds and 5 git commands to generate.