common: Annotate some static methods in Collections and Arrays
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 28 Oct 2015 18:49:16 +0000 (14:49 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 29 Oct 2015 02:25:25 +0000 (22:25 -0400)
The following methods and static fields can be marked as @NonNull:

Arrays.asList()
Collections.empty{Map|List|Set}()
Collections.EMPTY_{MAP|LIST|SET}

Change-Id: I6a36ac288441099219de19b1ec7793ed5cfd2a01
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/59165
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
common/org.eclipse.tracecompass.common.core/annotations/java/util/Arrays.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/java/util/Collections.eea [new file with mode: 0644]

diff --git a/common/org.eclipse.tracecompass.common.core/annotations/java/util/Arrays.eea b/common/org.eclipse.tracecompass.common.core/annotations/java/util/Arrays.eea
new file mode 100644 (file)
index 0000000..673e0d4
--- /dev/null
@@ -0,0 +1,4 @@
+class java/util/Arrays
+asList
+ <T:Ljava/lang/Object;>([TT;)Ljava/util/List<TT;>;
+ <T:Ljava/lang/Object;>([TT;)L1java/util/List<TT;>;
diff --git a/common/org.eclipse.tracecompass.common.core/annotations/java/util/Collections.eea b/common/org.eclipse.tracecompass.common.core/annotations/java/util/Collections.eea
new file mode 100644 (file)
index 0000000..a471d76
--- /dev/null
@@ -0,0 +1,19 @@
+class java/util/Collections
+EMPTY_LIST
+ Ljava/util/List;
+ L1java/util/List;
+EMPTY_MAP
+ Ljava/util/Map;
+ L1java/util/Map;
+EMPTY_SET
+ Ljava/util/Set;
+ L1java/util/Set;
+emptyList
+ <T:Ljava/lang/Object;>()Ljava/util/List<TT;>;
+ <T:Ljava/lang/Object;>()L1java/util/List<TT;>;
+emptyMap
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>()Ljava/util/Map<TK;TV;>;
+ <K:Ljava/lang/Object;V:Ljava/lang/Object;>()L1java/util/Map<TK;TV;>;
+emptySet
+ <T:Ljava/lang/Object;>()Ljava/util/Set<TT;>;
+ <T:Ljava/lang/Object;>()L1java/util/Set<TT;>;
This page took 0.026458 seconds and 5 git commands to generate.