os.linux: Do not rely on static initialisation order for layouts
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core.tests / stubs / org / eclipse / tracecompass / analysis / os / linux / core / tests / stubs / trace / KernelEventLayoutStub.java
index 4f9a854588b943ec232be9efb90134c15a71493a..37574bd08e167ae3c463f40296dc8d392120bdd3 100644 (file)
@@ -10,7 +10,6 @@
 package org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.trace;
 
 import org.eclipse.tracecompass.analysis.os.linux.core.trace.DefaultEventLayout;
-import org.eclipse.tracecompass.analysis.os.linux.core.trace.IKernelAnalysisEventLayout;
 
 /**
  * Class to extend to be able to set the event names for the os unit tests.
@@ -26,7 +25,7 @@ public class KernelEventLayoutStub extends DefaultEventLayout {
         super();
     }
 
-    private static final IKernelAnalysisEventLayout INSTANCE = new KernelEventLayoutStub();
+    private static final KernelEventLayoutStub INSTANCE = new KernelEventLayoutStub();
 
     /**
      * Get an instance of this event layout
@@ -36,7 +35,7 @@ public class KernelEventLayoutStub extends DefaultEventLayout {
      *
      * @return The instance
      */
-    public static IKernelAnalysisEventLayout getInstance() {
+    public static synchronized KernelEventLayoutStub getInstance() {
         return INSTANCE;
     }
 
This page took 0.025025 seconds and 5 git commands to generate.