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>
* @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();
* @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();
* @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();
* @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();