summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarc-Andre Laperle2013-08-15 14:27:17 (EDT)
committer Alexandre Montplaisir2013-08-16 14:21:06 (EDT)
commit7d3785fbefb627b37165fcaace386f3e51008791 (patch)
tree6f50448e4bed33efdd61565293e786849c816e9f
parent4f6b9f3f1f0a33d046ef82c967f8d9feeb3c62b3 (diff)
downloadorg.eclipse.linuxtools-7d3785fbefb627b37165fcaace386f3e51008791.zip
org.eclipse.linuxtools-7d3785fbefb627b37165fcaace386f3e51008791.tar.gz
org.eclipse.linuxtools-7d3785fbefb627b37165fcaace386f3e51008791.tar.bz2
Fix some warnings when compiling with 4.4 targetting 4.3.refs/changes/14/15514/3
Change-Id: Ic6268a479c5e720ce9f59867973d20611b1b10f3 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/15514 Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java2
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java2
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
index 68ed225..79fe920 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
@@ -276,7 +276,7 @@ public class ControlFlowView extends AbstractTimeGraphView {
buildTree(entryList, rootList);
}
Collections.sort(rootList, getEntryComparator());
- putEntryList(trace, (ArrayList<TimeGraphEntry>) rootList.clone());
+ putEntryList(trace, new ArrayList<TimeGraphEntry>(rootList));
if (trace.equals(getTrace())) {
refresh();
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
index 24b5169..135b452 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
@@ -140,7 +140,7 @@ public class ResourcesView extends AbstractTimeGraphView {
}
}
}
- putEntryList(trace, (ArrayList<TimeGraphEntry>) entryList.clone());
+ putEntryList(trace, new ArrayList<TimeGraphEntry>(entryList));
if (trace.equals(getTrace())) {
refresh();
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java
index 5d264e0..cdf4418 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java
@@ -810,7 +810,7 @@ public class CallStackView extends TmfView {
}
}
synchronized (fEntryListMap) {
- fEntryListMap.put(trace, (ArrayList<ThreadEntry>) entryList.clone());
+ fEntryListMap.put(trace, new ArrayList<ThreadEntry>(entryList));
}
if (trace == fTrace) {
refresh();