X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Fevent%2FTmfSimpleTimestamp.java;h=1a32255989cdd4c507bf873bb8cd96af7c25b4cf;hb=7656d70a6fef530f1fe1f61446c3c947aa3e9335;hp=8e6816c2b3c9f0df34262e13f50bc114b3a15352;hpb=34480e895aad7c090e5f82412fb39347f808aa82;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfSimpleTimestamp.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfSimpleTimestamp.java index 8e6816c2b3..1a32255989 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfSimpleTimestamp.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfSimpleTimestamp.java @@ -44,7 +44,7 @@ public class TmfSimpleTimestamp extends TmfTimestamp { * * @param timestamp the timestamp to copy */ - public TmfSimpleTimestamp(TmfSimpleTimestamp timestamp) { + public TmfSimpleTimestamp(ITmfTimestamp timestamp) { if (timestamp == null || timestamp.getScale() != 0 || timestamp.getPrecision() != 0) throw new IllegalArgumentException(); fValue = timestamp.getValue(); @@ -106,6 +106,7 @@ public class TmfSimpleTimestamp extends TmfTimestamp { if (!(other instanceof TmfSimpleTimestamp)) return super.equals(other); TmfSimpleTimestamp ts = (TmfSimpleTimestamp) other; + return compareTo(ts, false) == 0; }