ust.core: making some classes final
authorWassim <wassim.nasrallah.36@gmail.com>
Mon, 30 May 2016 18:37:49 +0000 (14:37 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 1 Jun 2016 00:12:59 +0000 (20:12 -0400)
This patch is to make some classes final in ust.core component.
It should be final to improve readability and since you should never
extend it. It also allows the jvm to inline methods and improve
performance.

Change-Id: Ifa5d1e667efb3e18f5cd4a9037082469574c16c6
Signed-off-by: Wassim <wassim.nasrallah.36@gmail.com>
Reviewed-on: https://git.eclipse.org/r/73972
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/lttng2/ust/core/analysis/debuginfo/UstDebugInfoBinaryAspect.java
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/lttng2/ust/core/analysis/debuginfo/UstDebugInfoFunctionAspect.java
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/lttng2/ust/core/analysis/debuginfo/UstDebugInfoSourceAspect.java
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/lttng2/ust/core/trace/LttngUstEventFactory.java

index 17e26ea3dc93a57fab9b10b36219a228284ccb43..00f8aedb2f33313614d08a9c064489c7b6deba77 100644 (file)
@@ -30,7 +30,7 @@ import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-public class UstDebugInfoBinaryAspect implements ITmfEventAspect<BinaryCallsite> {
+public final class UstDebugInfoBinaryAspect implements ITmfEventAspect<BinaryCallsite> {
 
     /** Singleton instance */
     public static final UstDebugInfoBinaryAspect INSTANCE = new UstDebugInfoBinaryAspect();
index 6c73d0072a88ff990b548e5deb698fa093eb14cb..756a9836254a63855d3db0d33965147058ccd7cc 100644 (file)
@@ -21,7 +21,7 @@ import org.eclipse.tracecompass.tmf.core.event.aspect.ITmfEventAspect;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-public class UstDebugInfoFunctionAspect implements ITmfEventAspect<FunctionLocation> {
+public final class UstDebugInfoFunctionAspect implements ITmfEventAspect<FunctionLocation> {
 
     /** Singleton instance */
     public static final UstDebugInfoFunctionAspect INSTANCE = new UstDebugInfoFunctionAspect();
index 98c0fd4a48046bf7a6d7756aa270cf17c9daefc4..416f8d38f4e40d33f53026eb8fcd9fb9a83f9e29 100644 (file)
@@ -29,7 +29,7 @@ import com.google.common.collect.Iterables;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-public class UstDebugInfoSourceAspect implements ITmfEventAspect<SourceCallsite> {
+public final class UstDebugInfoSourceAspect implements ITmfEventAspect<SourceCallsite> {
 
     /** Singleton instance */
     public static final UstDebugInfoSourceAspect INSTANCE = new UstDebugInfoSourceAspect();
index bfc658016ef05603cdb0218e5c2d195a739b765f..43454a4656fb766b5dace63faaa093583853acf5 100644 (file)
@@ -27,7 +27,7 @@ import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTmfTrace;
  * @author Alexandre Montplaisir
  * @since 2.0
  */
-public class LttngUstEventFactory extends CtfTmfEventFactory {
+public final class LttngUstEventFactory extends CtfTmfEventFactory {
 
     private static final @NonNull LttngUstEventFactory INSTANCE = new LttngUstEventFactory();
 
This page took 0.026712 seconds and 5 git commands to generate.