diff options
Diffstat (limited to 'org.eclipse.tracecompass.tmf.ctf.core.tests')
2 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/event/CtfTmfLostEventsTest.java b/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/event/CtfTmfLostEventsTest.java index 7d1af7dd06..af2fc05569 100644 --- a/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/event/CtfTmfLostEventsTest.java +++ b/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/event/CtfTmfLostEventsTest.java @@ -17,6 +17,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; +import org.eclipse.jdt.annotation.NonNull; import org.eclipse.tracecompass.tmf.core.event.ITmfEvent; import org.eclipse.tracecompass.tmf.core.event.ITmfLostEvent; import org.eclipse.tracecompass.tmf.core.request.ITmfEventRequest; @@ -176,7 +177,7 @@ public class CtfTmfLostEventsTest { return req.getEvent(); } - private CtfTmfEvent getOneEventTime(ITmfTimestamp ts) { + private CtfTmfEvent getOneEventTime(@NonNull ITmfTimestamp ts) { OneEventRequestPerTs req = new OneEventRequestPerTs(ts); fixture.sendRequest(req); try { @@ -210,7 +211,7 @@ public class CtfTmfLostEventsTest { private CtfTmfEvent event = null; - public OneEventRequestPerTs(ITmfTimestamp ts) { + public OneEventRequestPerTs(@NonNull ITmfTimestamp ts) { super(CtfTmfEvent.class, new TmfTimeRange(ts, TmfTimestamp.BIG_CRUNCH), 0, 1, ExecutionType.FOREGROUND); diff --git a/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/temp/tracemanager/TmfTraceManagerTest.java b/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/temp/tracemanager/TmfTraceManagerTest.java index 03f03eec18..9cc5927c4c 100644 --- a/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/temp/tracemanager/TmfTraceManagerTest.java +++ b/org.eclipse.tracecompass.tmf.ctf.core.tests/src/org/eclipse/tracecompass/tmf/ctf/core/tests/temp/tracemanager/TmfTraceManagerTest.java @@ -22,6 +22,7 @@ import java.io.File; import java.util.Collection; import java.util.Collections; +import org.eclipse.jdt.annotation.NonNull; import org.eclipse.tracecompass.tmf.core.event.ITmfEvent; import org.eclipse.tracecompass.tmf.core.signal.TmfRangeSynchSignal; import org.eclipse.tracecompass.tmf.core.signal.TmfSignalManager; @@ -142,7 +143,7 @@ public class TmfTraceManagerTest { TmfSignalManager.dispatchSignal(new TmfTraceSelectedSignal(this, trace)); } - private void selectTimestamp(ITmfTimestamp ts) { + private void selectTimestamp(@NonNull ITmfTimestamp ts) { TmfSignalManager.dispatchSignal(new TmfTimeSynchSignal(this, ts)); } @@ -713,7 +714,7 @@ public class TmfTraceManagerTest { /** * Basically a "initial + offset" operation, but for ITmfTimetamp objects. */ - private static ITmfTimestamp calculateOffset(ITmfTimestamp initialTs, ITmfTimestamp offsetTs) { + private static @NonNull ITmfTimestamp calculateOffset(ITmfTimestamp initialTs, ITmfTimestamp offsetTs) { long start = initialTs.normalize(0, SCALE).getValue(); long offset = offsetTs.normalize(0, SCALE).getValue(); return new TmfTimestamp(start + offset, SCALE); |