tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core / src / org / eclipse / tracecompass / tmf / analysis / xml / core / segment / TmfXmlPatternSegment.java
index 78c3edf1fb028f81e62e1d1a0e16f4592516c690..b80f0095ff749209691e965c490d8714cc87bed9 100644 (file)
@@ -77,7 +77,7 @@ public class TmfXmlPatternSegment implements ISegment {
      * @return The start timestamp
      */
     public @NonNull ITmfTimestamp getTimestampStart() {
-        return new TmfTimestamp(fStart, fScale);
+        return TmfTimestamp.create(fStart, fScale);
     }
 
     /**
@@ -86,7 +86,7 @@ public class TmfXmlPatternSegment implements ISegment {
      * @return The end timestamp
      */
     public @NonNull ITmfTimestamp getTimestampEnd() {
-        return new TmfTimestamp(fEnd, fScale);
+        return TmfTimestamp.create(fEnd, fScale);
     }
 
     /**
This page took 0.045357 seconds and 5 git commands to generate.