aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Perot2014-07-30 14:51:06 (EDT)
committerAlexandre Montplaisir2014-07-31 15:55:43 (EDT)
commit7477da1c9933aa2faa53b42133359bbb70bc0ac0 (patch)
tree4935b38147ce9d789ca2e9e6cba4f498ee5c502d
parenta0cc9a8856a1ad5140b49da0c7ca54ec327e57b4 (diff)
downloadorg.eclipse.linuxtools-7477da1c9933aa2faa53b42133359bbb70bc0ac0.zip
org.eclipse.linuxtools-7477da1c9933aa2faa53b42133359bbb70bc0ac0.tar.gz
org.eclipse.linuxtools-7477da1c9933aa2faa53b42133359bbb70bc0ac0.tar.bz2
tmf: make EMPTY_STRING_ARRAY NonNullrefs/changes/59/30759/3
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>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
index e762d54..9d9c110 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
@@ -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$