tmf: Add some nonNull annotation to the tmf.core.analysis package
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.ust.core / src / org / eclipse / tracecompass / lttng2 / ust / core / analysis / memory / UstMemoryAnalysisModule.java
index 3c45cf3c07323821a1895cb344da1b196958864c..bf47ebcd3365cb738538d0dc2c1844c93f2348dc 100644 (file)
@@ -13,6 +13,7 @@
 
 package org.eclipse.tracecompass.lttng2.ust.core.analysis.memory;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.tracecompass.internal.lttng2.ust.core.memoryusage.MemoryUsageStateProvider;
 import org.eclipse.tracecompass.internal.lttng2.ust.core.memoryusage.UstMemoryStrings;
 import org.eclipse.tracecompass.lttng2.control.core.session.SessionConfigStrings;
@@ -50,7 +51,7 @@ public class UstMemoryAnalysisModule extends TmfStateSystemAnalysisModule {
             );
 
     /** The requirements as an immutable set */
-    private static final ImmutableSet<TmfAnalysisRequirement> REQUIREMENTS;
+    private static final @NonNull ImmutableSet<TmfAnalysisRequirement> REQUIREMENTS;
 
     static {
         /* Initialize the requirements for the analysis: domain and events */
@@ -66,7 +67,9 @@ public class UstMemoryAnalysisModule extends TmfStateSystemAnalysisModule {
         TmfAnalysisRequirement domainReq = new TmfAnalysisRequirement(SessionConfigStrings.CONFIG_ELEMENT_DOMAIN);
         domainReq.addValue(SessionConfigStrings.CONFIG_DOMAIN_TYPE_UST, ValuePriorityLevel.MANDATORY);
 
-        REQUIREMENTS = ImmutableSet.of(domainReq, eventsReq);
+        @SuppressWarnings("null")
+        @NonNull ImmutableSet<TmfAnalysisRequirement> reqSet = ImmutableSet.of(domainReq, eventsReq);
+        REQUIREMENTS = reqSet;
     }
 
     @Override
This page took 0.036574 seconds and 5 git commands to generate.