tmf: make EMPTY_STRING_ARRAY NonNull
authorVincent Perot <vincent.perot@ericsson.com>
Wed, 30 Jul 2014 18:51:06 +0000 (14:51 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 31 Jul 2014 19:55:43 +0000 (15:55 -0400)
This avoids useless null checks in tmf.pcap

Change-Id: I489b4c469d3f07c054e82944c78a8027910aded7
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30759
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java

index e762d54ccadab6fb4e5e315dcf84928ea393eb39..9d9c1103ada0705d6cf2df1c954042d0cf997ef3 100644 (file)
@@ -49,6 +49,7 @@ import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.jobs.Job;
 import org.eclipse.emf.common.util.URI;
 import org.eclipse.emf.ecore.EValidator;
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.action.IMenuListener;
@@ -166,7 +167,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
      * Empty string array, used by {@link #getItemStrings}.
      * @since 3.0
      */
-    protected static final String[] EMPTY_STRING_ARRAY = new String[0];
+    protected static final @NonNull String[] EMPTY_STRING_ARRAY = new String[0];
 
     private static final Image BOOKMARK_IMAGE = Activator.getDefault().getImageFromPath(
             "icons/elcl16/bookmark_obj.gif"); //$NON-NLS-1$
This page took 0.033584 seconds and 5 git commands to generate.