lttng: Remove unneeded @Nullable annotations in KernelStateProvider
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 25 Jan 2016 20:15:19 +0000 (15:15 -0500)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 25 Jan 2016 21:40:31 +0000 (16:40 -0500)
The event name can not be null, so these utility methods could use
@NonNull parameters.

Change-Id: Ib651dc89e1e3da434c6e5bed2cb222f764346868
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/65133
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/kernel/KernelStateProvider.java

index 9ceba92b9bbf8b40c2de94669774a5ae3f1e057b..9474d0a2dbe1fb09bfc3d57cb67f61edd6665a10 100644 (file)
@@ -189,13 +189,13 @@ public class KernelStateProvider extends AbstractTmfStateProvider {
         }
     }
 
-    private boolean isSyscallEntry(@Nullable String eventName) {
-        return (eventName != null) && (eventName.startsWith(fLayout.eventSyscallEntryPrefix())
+    private boolean isSyscallEntry(String eventName) {
+        return (eventName.startsWith(fLayout.eventSyscallEntryPrefix())
                 || eventName.startsWith(fLayout.eventCompatSyscallEntryPrefix()));
     }
 
-    private boolean isSyscallExit(@Nullable String eventName) {
-        return (eventName != null) && (eventName.startsWith(fLayout.eventSyscallExitPrefix()));
+    private boolean isSyscallExit(String eventName) {
+        return (eventName.startsWith(fLayout.eventSyscallExitPrefix()));
     }
 
 }
This page took 0.026364 seconds and 5 git commands to generate.