projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the TmfLocation final and get rid of clone()
[deliverable/tracecompass.git]
/
org.eclipse.linuxtools.tmf.core.tests
/
src
/
org
/
eclipse
/
linuxtools
/
tmf
/
core
/
tests
/
trace
/
TmfTraceTest.java
diff --git
a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
index dba2a4540613a061fac55c3ec91a5b99cf353530..143dc5ff3fc4e0305de66a0b2edb3280812829e3 100644
(file)
--- a/
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
+++ b/
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
@@
-1175,7
+1175,7
@@
public class TmfTraceTest extends TestCase {
public void testGetNextLocation() {
ITmfContext context1 = fTrace.seekEvent(0);
fTrace.getNext(context1);
public void testGetNextLocation() {
ITmfContext context1 = fTrace.seekEvent(0);
fTrace.getNext(context1);
- ITmfLocation location = context1.getLocation()
.clone()
;
+ ITmfLocation location = context1.getLocation();
ITmfEvent event1 = fTrace.getNext(context1);
ITmfContext context2 = fTrace.seekEvent(location);
ITmfEvent event2 = fTrace.getNext(context2);
ITmfEvent event1 = fTrace.getNext(context1);
ITmfContext context2 = fTrace.seekEvent(location);
ITmfEvent event2 = fTrace.getNext(context2);
@@
-1185,7
+1185,7
@@
public class TmfTraceTest extends TestCase {
public void testGetNextEndLocation() {
ITmfContext context1 = fTrace.seekEvent(fTrace.getNbEvents() - 1);
fTrace.getNext(context1);
public void testGetNextEndLocation() {
ITmfContext context1 = fTrace.seekEvent(fTrace.getNbEvents() - 1);
fTrace.getNext(context1);
- ITmfLocation location = context1.getLocation()
.clone()
;
+ ITmfLocation location = context1.getLocation();
ITmfContext context2 = fTrace.seekEvent(location);
ITmfEvent event = fTrace.getNext(context2);
assertNull("Event", event);
ITmfContext context2 = fTrace.seekEvent(location);
ITmfEvent event = fTrace.getNext(context2);
assertNull("Event", event);
This page took
0.024507 seconds
and
5
git commands to generate.