tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / trace / location / TmfTimestampLocation.java
index 5ed344cd78de8d325c46f0ca08e6fafb7d19b49d..40a1deed1b6c7b6f4bfea63c16d9b57ba7d09bc3 100644 (file)
@@ -49,7 +49,7 @@ public final class TmfTimestampLocation extends TmfLocation {
      *            the buffer to read from
      */
     public TmfTimestampLocation(ByteBuffer bufferIn) {
-        super(new TmfTimestamp(bufferIn));
+        super(TmfTimestamp.create(bufferIn));
     }
 
     @Override
@@ -59,7 +59,6 @@ public final class TmfTimestampLocation extends TmfLocation {
 
     @Override
     public void serialize(ByteBuffer bufferOut) {
-        TmfTimestamp t = new TmfTimestamp(getLocationInfo());
-        t.serialize(bufferOut);
+        TmfTimestamp.serialize(bufferOut, getLocationInfo());
     }
 }
This page took 0.025616 seconds and 5 git commands to generate.