tmf: Fix regression in event requests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / statistics / TmfEventsStatistics.java
index 683f1788154c198e86c761815b7cc42b0b57ddcf..4bd9e4dc3d81a6f1c2f1bd4b2263549e12f87592 100644 (file)
@@ -42,7 +42,6 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-@SuppressWarnings("deprecation")
 public class TmfEventsStatistics implements ITmfStatistics {
 
     /* All timestamps should be stored in nanoseconds in the statistics backend */
@@ -264,8 +263,8 @@ public class TmfEventsStatistics implements ITmfStatistics {
         }
 
         @Override
-        public synchronized void handleEvent(final ITmfEvent event) {
-            super.handleEvent(event);
+        public void handleData(final ITmfEvent event) {
+            super.handleData(event);
             if (event != null) {
                 if (event.getTrace() == trace) {
                     processEvent(event);
@@ -325,8 +324,8 @@ public class TmfEventsStatistics implements ITmfStatistics {
         }
 
         @Override
-        public synchronized void handleEvent(ITmfEvent event) {
-            super.handleEvent(event);
+        public void handleData(ITmfEvent event) {
+            super.handleData(event);
             if ((event != null)  && (event.getTrace() == trace)) {
                 long ts = event.getTimestamp().normalize(0, SCALE).getValue();
                 Long key = results.floorKey(ts);
This page took 0.024611 seconds and 5 git commands to generate.