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 14cf7fb5099c0fe8905bc709f8a688c13898e6d8..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
@@
-1109,7
+1109,7
@@
public class TmfTraceTest extends TestCase {
public void testGetNextAfterSeekingOnLocation_1() {
public void testGetNextAfterSeekingOnLocation_1() {
- final ITmfLocation
<?>
INITIAL_LOC = null;
+ final ITmfLocation INITIAL_LOC = null;
final long INITIAL_TS = 1;
final int NB_READS = 20;
final long INITIAL_TS = 1;
final int NB_READS = 20;
@@
-1132,7
+1132,7
@@
public class TmfTraceTest extends TestCase {
public void testGetNextAfterSeekingOnLocation_2() {
public void testGetNextAfterSeekingOnLocation_2() {
- final ITmfLocation
<?>
INITIAL_LOC = fTrace.seekEvent(1L).getLocation();
+ final ITmfLocation INITIAL_LOC = fTrace.seekEvent(1L).getLocation();
final long INITIAL_TS = 2;
final int NB_READS = 20;
final long INITIAL_TS = 2;
final int NB_READS = 20;
@@
-1153,7
+1153,7
@@
public class TmfTraceTest extends TestCase {
public void testGetNextAfterSeekingOnLocation_3() {
public void testGetNextAfterSeekingOnLocation_3() {
- final ITmfLocation
<?>
INITIAL_LOC = fTrace.seekEvent(500L).getLocation();
+ final ITmfLocation INITIAL_LOC = fTrace.seekEvent(500L).getLocation();
final long INITIAL_TS = 501;
final int NB_READS = 20;
final long INITIAL_TS = 501;
final int NB_READS = 20;
@@
-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.025091 seconds
and
5
git commands to generate.