From b4d534a093dd704faadae7535b188906f6f3234b Mon Sep 17 00:00:00 2001 From: Francois Chouinard Date: Fri, 2 Mar 2012 19:08:33 -0500 Subject: [PATCH] Cosmetic re-organization --- .../linuxtools/tmf/core/event/TmfEvent.java | 54 +++++++++---------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEvent.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEvent.java index cc4299ea05..18dd135064 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEvent.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEvent.java @@ -46,36 +46,7 @@ public class TmfEvent implements ITmfEvent { * Default constructor */ public TmfEvent() { - fTrace = null; - fRank = -1; - fTimestamp = null; - fSource = null; - fType = null; - fContent = null; - fReference = null; - } - - /** - * Full constructor - * - * @param trace the parent trace - * @param rank the event rank (in the trace) - * @param timestamp the event timestamp - * @param source the event source - * @param type the event type - * @param type the event content (payload) - * @param reference the event reference - */ - public TmfEvent(ITmfTrace trace, long rank, ITmfTimestamp timestamp, String source, - ITmfEventType type, ITmfEventField content, String reference) - { - fTrace = trace; - fRank = rank; - fTimestamp = timestamp; - fSource = source; - fType = type; - fContent = content; - fReference = reference; + this(null, -1, null, null, null, null, null); } /** @@ -104,6 +75,29 @@ public class TmfEvent implements ITmfEvent { this(null, -1, timestamp, source, type, null, reference); } + /** + * Full constructor + * + * @param trace the parent trace + * @param rank the event rank (in the trace) + * @param timestamp the event timestamp + * @param source the event source + * @param type the event type + * @param type the event content (payload) + * @param reference the event reference + */ + public TmfEvent(ITmfTrace trace, long rank, ITmfTimestamp timestamp, String source, + ITmfEventType type, ITmfEventField content, String reference) + { + fTrace = trace; + fRank = rank; + fTimestamp = timestamp; + fSource = source; + fType = type; + fContent = content; + fReference = reference; + } + /** * Copy constructor * -- 2.34.1