This patch is to make some classes final in ctf.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: I6e9bef701898716978c6e7b4b20254eabc8cd6c8
Signed-off-by: Wassim <wassim.nasrallah.36@gmail.com>
Reviewed-on: https://git.eclipse.org/r/73771
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
*
* @since 1.1
*/
- public static class Pair {
+ public static final class Pair {
private final long fFirst;
private final long fSecond;
* @author Simon Marchi
*/
@NonNullByDefault
-public class StringDeclaration extends Declaration {
+public final class StringDeclaration extends Declaration {
private static final StringDeclaration STRING_DEC_UTF8 = new StringDeclaration(Encoding.UTF8);
private static final StringDeclaration STRING_DEC_ASCII = new StringDeclaration(Encoding.ASCII);
*
* http://bugs.java.com/view_bug.do?bug_id=4715154
*/
-public class SafeMappedByteBuffer {
+public final class SafeMappedByteBuffer {
private static final boolean IS_WIN32 = System.getProperty("os.name").startsWith("Windows"); //$NON-NLS-1$//$NON-NLS-2$