Those methods will throw NPEs if null is passed.
Also fix a few warnings that were introduced by these new annotations.
Change-Id: I73efaa5507b1dfcf9da41c86dc93bbd8ea8b3c27
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60568
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
import java.util.Collection;
import java.util.List;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.btf.core.Messages;
import org.eclipse.tracecompass.btf.core.trace.BtfColumnNames;
import org.eclipse.tracecompass.tmf.core.event.ITmfEventField;
*/
public class BtfEventType extends TmfEventType {
- private static final String[] FIELD_WITH_NOTES_COLUMNS = new String[] {
+ private static final String @NonNull [] FIELD_WITH_NOTES_COLUMNS = new String[] {
BtfColumnNames.EVENT.toString(),
BtfColumnNames.SOURCE_INSTANCE.toString(),
BtfColumnNames.TARGET_INSTANCE.toString() };
- private static final String[] FIELDS_WITHOUT_NOTES_COLUMNS = new String[] {
+ private static final String @NonNull [] FIELDS_WITHOUT_NOTES_COLUMNS = new String[] {
BtfColumnNames.EVENT.toString(),
BtfColumnNames.SOURCE_INSTANCE.toString(),
BtfColumnNames.TARGET_INSTANCE.toString(),
BtfColumnNames.NOTES.toString() };
- private static final ITmfEventField FIELDS_WITHOUT_NOTES = TmfEventField.makeRoot(FIELD_WITH_NOTES_COLUMNS);
- private static final ITmfEventField FIELDS_WITH_NOTES = TmfEventField.makeRoot(FIELDS_WITHOUT_NOTES_COLUMNS);
+ private static final @NonNull ITmfEventField FIELDS_WITHOUT_NOTES = TmfEventField.makeRoot(FIELD_WITH_NOTES_COLUMNS);
+ private static final @NonNull ITmfEventField FIELDS_WITH_NOTES = TmfEventField.makeRoot(FIELDS_WITHOUT_NOTES_COLUMNS);
private final String fName;
private final String fDescription;
private final boolean fHasNotes;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.btf.core.Activator;
import org.eclipse.tracecompass.btf.core.event.BtfEvent;
import org.eclipse.tracecompass.btf.core.event.BtfEventType;
private static int fCheckpointSize = -1;
- private final Map<String, String> fProperties = new HashMap<>();
+ private final @NonNull Map<String, String> fProperties = new HashMap<>();
- private final Map<Integer, String> fEntityTable = new TreeMap<>();
- private final Map<BtfEventType, String> fEntityTypeTable = new HashMap<>();
- private final Map<Integer, BtfEventType> fEntityTypes = new TreeMap<>();
+ private final @NonNull Map<Integer, String> fEntityTable = new TreeMap<>();
+ private final @NonNull Map<BtfEventType, String> fEntityTypeTable = new HashMap<>();
+ private final @NonNull Map<Integer, BtfEventType> fEntityTypes = new TreeMap<>();
private String fVersion;
private String fCreator;
<E:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableList$Builder<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/lang/Iterable<+TE;>;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(Ljava/lang/Iterable<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(L1java/lang/Iterable<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/util/Collection<+TE;>;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(Ljava/util/Collection<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(L1java/util/Collection<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(L1java/util/Iterator<+TE;>;)L1com/google/common/collect/ImmutableList<TE;>;
copyOf
<E:Ljava/lang/Object;>([TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>([TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>([1TE;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>()Lcom/google/common/collect/ImmutableList<TE;>;
<E:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableList<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;[TE;)Lcom/google/common/collect/ImmutableList<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;TE;[TE;)L1com/google/common/collect/ImmutableList<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;T1E;[TE;)L1com/google/common/collect/ImmutableList<TE;>;
<K:Ljava/lang/Object;V:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableMap$Builder<TK;TV;>;
copyOf
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(Ljava/util/Map<+TK;+TV;>;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Ljava/util/Map<+TK;+TV;>;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(L1java/util/Map<+TK;+TV;>;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>()Lcom/google/common/collect/ImmutableMap<TK;TV;>;
<K:Ljava/lang/Object;V:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(T1K;T1V;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(T1K;T1V;T1K;T1V;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(T1K;T1V;T1K;T1V;T1K;T1V;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;TK;TV;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;TK;TV;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(T1K;T1V;T1K;T1V;T1K;T1V;T1K;T1V;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
of
<K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;TK;TV;TK;TV;)Lcom/google/common/collect/ImmutableMap<TK;TV;>;
- <K:Ljava/lang/Object;V:Ljava/lang/Object;>(TK;TV;TK;TV;TK;TV;TK;TV;TK;TV;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>(T1K;T1V;T1K;T1V;T1K;T1V;T1K;T1V;T1K;T1V;)L1com/google/common/collect/ImmutableMap<TK;TV;>;
<E:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableSet$Builder<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/lang/Iterable<+TE;>;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(Ljava/lang/Iterable<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(L1java/lang/Iterable<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/util/Collection<+TE;>;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(Ljava/util/Collection<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(L1java/util/Collection<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
copyOf
<E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(L1java/util/Iterator<+TE;>;)L1com/google/common/collect/ImmutableSet<TE;>;
copyOf
<E:Ljava/lang/Object;>([TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>([TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>([1TE;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>()Lcom/google/common/collect/ImmutableSet<TE;>;
<E:Ljava/lang/Object;>()L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;)L1com/google/common/collect/ImmutableSet<TE;>;
of
<E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;[TE;)Lcom/google/common/collect/ImmutableSet<TE;>;
- <E:Ljava/lang/Object;>(TE;TE;TE;TE;TE;TE;[TE;)L1com/google/common/collect/ImmutableSet<TE;>;
+ <E:Ljava/lang/Object;>(T1E;T1E;T1E;T1E;T1E;T1E;[TE;)L1com/google/common/collect/ImmutableSet<TE;>;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
+import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpEventMatching;
import org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching;
import org.eclipse.tracecompass.tmf.core.event.matching.TmfEventMatching;
* <p>
* The activator class controls the plug-in life cycle
*/
+@NonNullByDefault({})
public class Activator extends Plugin {
// ------------------------------------------------------------------------
--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2015 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+@org.eclipse.jdt.annotation.NonNullByDefault
+package org.eclipse.tracecompass.internal.lttng2.kernel.core;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.SimpleLayout;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
/** Tooltips of the toolbar buttons */
- private static final String ALIGN_VIEWS = "Align Views";
- private static final String IMPORT_BINARY = "Import a binary file containing debugging symbols";
- private static final String IMPORT_TEXT = "Import a text file containing the mapping between addresses and function names";
+ private static final @NonNull String ALIGN_VIEWS = "Align Views";
+ private static final @NonNull String IMPORT_BINARY = "Import a binary file containing debugging symbols";
+ private static final @NonNull String IMPORT_TEXT = "Import a text file containing the mapping between addresses and function names";
// Separator
- private static final String SORT_BY_NAME = "Sort threads by thread name";
- private static final String SORT_BY_ID = "Sort threads by thread id";
- private static final String SORT_BY_START = "Sort threads by start time";
+ private static final @NonNull String SORT_BY_NAME = "Sort threads by thread name";
+ private static final @NonNull String SORT_BY_ID = "Sort threads by thread id";
+ private static final @NonNull String SORT_BY_START = "Sort threads by start time";
// Separator
- private static final String RESET_TIME_SCALE = "Reset the Time Scale to Default";
- private static final String SELECT_PREVIOUS_EVENT = "Select Previous Event";
- private static final String SELECT_NEXT_EVENT = "Select Next Event";
- private static final String SELECT_PREVIOUS_ITEM = "Select Previous Item";
- private static final String SELECT_NEXT_ITEM = "Select Next Item";
- private static final String ZOOM_IN = "Zoom In";
- private static final String ZOOM_OUT = "Zoom Out";
+ private static final @NonNull String RESET_TIME_SCALE = "Reset the Time Scale to Default";
+ private static final @NonNull String SELECT_PREVIOUS_EVENT = "Select Previous Event";
+ private static final @NonNull String SELECT_NEXT_EVENT = "Select Next Event";
+ private static final @NonNull String SELECT_PREVIOUS_ITEM = "Select Previous Item";
+ private static final @NonNull String SELECT_NEXT_ITEM = "Select Next Item";
+ private static final @NonNull String ZOOM_IN = "Zoom In";
+ private static final @NonNull String ZOOM_OUT = "Zoom Out";
// Separator
private static final String PIN_VIEW = "Pin View";
private static final List<String> TOOLBAR_BUTTONS_TOOLTIPS = ImmutableList.of(
private TreeMapStore<@NonNull ISegment> fSegmentStore;
- private static final ISegment SEGMENT_2_6 = new BasicSegment(2, 6);
- private static final ISegment SEGMENT_4_6 = new BasicSegment(4, 6);
- private static final ISegment SEGMENT_4_8 = new BasicSegment(4, 8);
- private static final ISegment SEGMENT_6_8 = new BasicSegment(6, 8);
- private static final ISegment SEGMENT_10_14 = new BasicSegment(10, 14);
+ private static final @NonNull ISegment SEGMENT_2_6 = new BasicSegment(2, 6);
+ private static final @NonNull ISegment SEGMENT_4_6 = new BasicSegment(4, 6);
+ private static final @NonNull ISegment SEGMENT_4_8 = new BasicSegment(4, 8);
+ private static final @NonNull ISegment SEGMENT_6_8 = new BasicSegment(6, 8);
+ private static final @NonNull ISegment SEGMENT_10_14 = new BasicSegment(10, 14);
private static final List<ISegment> SEGMENTS = ImmutableList.of(SEGMENT_2_6, SEGMENT_4_6, SEGMENT_4_8, SEGMENT_6_8, SEGMENT_10_14);
private static final List<ISegment> REVERSE_SEGMENTS = Lists.reverse(SEGMENTS);
import java.util.Set;
+import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.tracecompass.tmf.core.analysis.TmfAnalysisRequirement;
import org.eclipse.tracecompass.tmf.core.analysis.TmfAnalysisRequirement.ValuePriorityLevel;
* Factory class to facilitate requirement usage across test case
*/
@SuppressWarnings("javadoc")
+@NonNullByDefault
public final class AnalysisRequirementFactory {
private AnalysisRequirementFactory() {}
* @param labels the list of labels
* @return the (flat) root list
*/
- public static final ITmfEventField makeRoot(final String[] labels) {
+ public static final @NonNull ITmfEventField makeRoot(final String[] labels) {
final ITmfEventField[] fields = new ITmfEventField[labels.length];
for (int i = 0; i < labels.length; i++) {
String label = checkNotNull(labels[i]);
package org.eclipse.tracecompass.internal.tmf.ui.editors;
+import org.eclipse.jdt.annotation.NonNullByDefault;
+
import com.google.common.collect.ImmutableSet;
*
* @noimplement
*/
+@NonNullByDefault
public interface ITmfEventsEditorConstants {
/**