tmf: Add package-info to internal.tmf.core.analysis package
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Fri, 31 Oct 2014 15:06:59 +0000 (11:06 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Tue, 4 Nov 2014 20:29:45 +0000 (15:29 -0500)
Change-Id: Iac1fdff332e4fc4bdcc9889ec4790a44adbcba61
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/35745
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/tmf/core/analysis/TmfAnalysisModuleSourceConfigElement.java
org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/tmf/core/analysis/package-info.java [new file with mode: 0644]

index 1978b6acf431ea0c82321c3b8e3f08883fecb7f3..37c72f3010f925acdd2d774f9d3c4f758830d467 100644 (file)
@@ -18,6 +18,7 @@ import java.util.List;
 
 import org.eclipse.core.runtime.IConfigurationElement;
 import org.eclipse.core.runtime.Platform;
+import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModuleHelper;
 import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModuleSource;
 import org.eclipse.tracecompass.tmf.core.analysis.TmfAnalysisModuleHelperConfigElement;
@@ -87,7 +88,9 @@ public final class TmfAnalysisModuleSourceConfigElement implements IAnalysisModu
                 typeElements.add(element);
             }
         }
-        return typeElements.toArray(new IConfigurationElement[typeElements.size()]);
+        @SuppressWarnings("null")
+        @NonNull IConfigurationElement[] typeElems = typeElements.toArray(new IConfigurationElement[typeElements.size()]);
+        return typeElems;
     }
 
     /**
diff --git a/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/tmf/core/analysis/package-info.java b/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/tmf/core/analysis/package-info.java
new file mode 100644 (file)
index 0000000..5b2b0d2
--- /dev/null
@@ -0,0 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2014 École Polytechnique de Montréal
+ *
+ * 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
+ *
+ * Contributors:
+ *    École Polytechnique de Montréal - Initial API and implementation
+ *******************************************************************************/
+
+@org.eclipse.jdt.annotation.NonNullByDefault package org.eclipse.tracecompass.internal.tmf.core.analysis;
\ No newline at end of file
This page took 0.031453 seconds and 5 git commands to generate.