Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core / src / org / eclipse / tracecompass / tmf / analysis / xml / core / stateprovider / XmlStateProvider.java
index ad73371c8523c9edc60121bf2253462d94ccf48b..5dc864ad6403d061ab06b46f27779fea11a985ee 100644 (file)
@@ -44,13 +44,13 @@ import org.w3c.dom.NodeList;
 public class XmlStateProvider extends AbstractTmfStateProvider implements IXmlStateSystemContainer {
 
     private final IPath fFilePath;
-    @NonNull private final String fStateId;
+    private final @NonNull String fStateId;
 
     /** List of all Event Handlers */
     private final List<TmfXmlEventHandler> fEventHandlers = new ArrayList<>();
 
     /** List of all Locations */
-    private final Set<TmfXmlLocation> fLocations;
+    private final @NonNull Set<@NonNull TmfXmlLocation> fLocations;
 
     /** Map for defined values */
     private final Map<String, String> fDefinedValues = new HashMap<>();
@@ -90,7 +90,7 @@ public class XmlStateProvider extends AbstractTmfStateProvider implements IXmlSt
 
         /* parser for the locations */
         List<Element> childElements = XmlUtils.getChildElements(doc, TmfXmlStrings.LOCATION);
-        Set<TmfXmlLocation> locations = new HashSet<>();
+        Set<@NonNull TmfXmlLocation> locations = new HashSet<>();
         for (Element element : childElements) {
             if (element == null) {
                 continue;
This page took 0.025116 seconds and 5 git commands to generate.