import java.util.Map.Entry;
import java.util.Set;
-import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.linuxtools.ctf.core.event.CTFCallsite;
import org.eclipse.linuxtools.ctf.core.event.EventDefinition;
import org.eclipse.linuxtools.ctf.core.event.IEventDeclaration;
* @author Alexandre Montplaisir
* @since 2.0
*/
-public final class CtfTmfEvent implements ITmfEvent, IAdaptable, Cloneable {
+public final class CtfTmfEvent implements ITmfEvent, Cloneable {
// ------------------------------------------------------------------------
// Constants
/* There is only one reference to the trace, so we can shallow-copy it */
this.fTrace = other.getTrace();
- /*
- * Copy the timestamp
- * FIXME This can be switched to a shallow-copy once timestamps are
- * made immutable.
- */
- this.fTimestamp = new CtfTmfTimestamp(other.fTimestamp.getValue());
+ /* Copy the timestamp (immutable) */
+ this.fTimestamp = other.fTimestamp;
/* Primitives, those will be copied by value */
this.sourceCPU = other.sourceCPU;
this.eventName = other.eventName;
this.fileName = other.fileName;
- /* Copy the fields over */
- this.fContent = other.fContent.clone();
+ /* Copy the fields over (immutable) */
+ this.fContent = other.fContent;
/*
* Copy the reference to the custom attributes (should be the same