Minor API improvements
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / trace / TmfEventParserStub.java
index 70b3b6c45a119f5b50cf823c6cdef3b207b2f325..47f64a6f8e1ff8b5517c3775f1a1d1a6a1a0fa2c 100644 (file)
@@ -17,7 +17,6 @@ import java.io.IOException;
 import java.io.RandomAccessFile;
 import java.util.Vector;
 
-import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
 import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
@@ -34,7 +33,7 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
  * TODO: Implement me. Please.
  */
 @SuppressWarnings("nls")
-public class TmfEventParserStub implements ITmfEventParser<ITmfEvent> {
+public class TmfEventParserStub implements ITmfEventParser<TmfEvent> {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -70,7 +69,7 @@ public class TmfEventParserStub implements ITmfEventParser<ITmfEvent> {
     static final String typePrefix = "Type-";
     @Override
     @SuppressWarnings("unchecked")
-    public ITmfEvent parseEvent(final ITmfContext context) {
+    public TmfEvent parseEvent(final ITmfContext context) {
 
         if (! (fEventStream instanceof TmfTraceStub))
             return null;
@@ -106,7 +105,7 @@ public class TmfEventParserStub implements ITmfEventParser<ITmfEvent> {
             content.append("]");
 
             final TmfEventField root = new TmfEventField(ITmfEventField.ROOT_FIELD_ID, content.toString());
-            final ITmfEvent event = new TmfEvent(fEventStream,
+            final TmfEvent event = new TmfEvent(fEventStream,
                     new TmfTimestamp(ts, -3, 0),     // millisecs
                     source, fTypes[typeIndex], root, reference.toString());
             return event;
This page took 0.023696 seconds and 5 git commands to generate.