Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / ITmfEventField.java
index 97435a0d7153cef78f5c9b7bb1b86780e49bf9cb..b8046f48af2f0779f6867d10d5af785e479c616d 100644 (file)
@@ -46,7 +46,7 @@ public interface ITmfEventField {
     /**
      * @return the field name
      */
-    String getName();
+    @NonNull String getName();
 
     /**
      * @return the field value
@@ -64,7 +64,7 @@ public interface ITmfEventField {
      *
      * @return The subfield names (empty Collection if none)
      */
-    Collection<String> getFieldNames();
+    @NonNull Collection<@NonNull String> getFieldNames();
 
     /**
      * Return the subfields. The iteration order is the same as
@@ -72,7 +72,7 @@ public interface ITmfEventField {
      *
      * @return The subfields (empty Collection if none)
      */
-    Collection<? extends ITmfEventField> getFields();
+    @NonNull Collection<? extends ITmfEventField> getFields();
 
     /**
      * Return a subfield by its path relative to this field.
@@ -80,6 +80,6 @@ public interface ITmfEventField {
      * @param path The path to the subfield
      * @return a specific subfield by path (null if inexistent)
      */
-    ITmfEventField getField(@NonNull String... path);
+    ITmfEventField getField(String @NonNull ... path);
 
 }
This page took 0.035098 seconds and 5 git commands to generate.