Change ITmfTrace<T extends TmfEvent> to ITmfTrace<T extends ITmfEvent>
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / stubs / trace / TmfEventParserStub.java
index 19a82b6df24f97c6a4f58825ae4c1b8118f1384b..d6d86faf1d4a451a9e885d448a044f55149f1a03 100644 (file)
@@ -17,6 +17,7 @@ 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;
@@ -33,7 +34,7 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
  * TODO: Implement me. Please.
  */
 @SuppressWarnings("nls")
-public class TmfEventParserStub implements ITmfEventParser {
+public class TmfEventParserStub implements ITmfEventParser<TmfEvent> {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -67,7 +68,7 @@ public class TmfEventParserStub implements ITmfEventParser {
     static final String typePrefix = "Type-";
     @Override
        @SuppressWarnings("unchecked")
-       public TmfEvent parseNextEvent(ITmfTrace<?> eventStream, TmfContext context) throws IOException {
+       public ITmfEvent parseNextEvent(ITmfTrace<TmfEvent> eventStream, TmfContext context) throws IOException {
 
         if (! (eventStream instanceof TmfTraceStub)) {
             return null;
@@ -106,7 +107,7 @@ public class TmfEventParserStub implements ITmfEventParser {
                    content.append("]");
 
             TmfEventField root = new TmfEventField(ITmfEventField.ROOT_ID, content.toString());
-                   TmfEvent event = new TmfEvent(eventStream,
+                   ITmfEvent event = new TmfEvent(eventStream,
                            new TmfTimestamp(ts, -3, 0),     // millisecs
                            source, fTypes[typeIndex], root, reference.toString());
                    return event;
This page took 0.023983 seconds and 5 git commands to generate.