ctf: annotate StructDeclaration#addField to @NonNull
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 03:01:49 +0000 (22:01 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 20:36:06 +0000 (15:36 -0500)
This way we know that all null fields received don't exist.

Change-Id: Icd7d2280653c0fe2eb4705fcd6ef8ee950a630f3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65331
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/event/types/StructDeclaration.java

index 83fb2e2198dc0515334da7399e43cf2661de2683..be18d3837c9caede6e85209cc115d97f224f6061 100644 (file)
@@ -184,7 +184,7 @@ public class StructDeclaration extends Declaration {
      * @param declaration
      *            the declaration of the field
      */
-    public void addField(@NonNull String name, IDeclaration declaration) {
+    public void addField(@NonNull String name, @NonNull IDeclaration declaration) {
         fFieldMap.put(name, declaration);
         fMaxAlign = Math.max(fMaxAlign, declaration.getAlignment());
     }
This page took 0.025784 seconds and 5 git commands to generate.