Annotate Guava Immutable collections
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 30 Oct 2015 11:28:43 +0000 (07:28 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 17 Nov 2015 00:49:57 +0000 (19:49 -0500)
commit872ec368cbd79505140e572073c9700126606690
tree1ce4cd1612f5fd47202e0b9040d91c94f4c3b346
parent80986a7edef042f72dc1f7d7cd7c24873e95ee8d
Annotate Guava Immutable collections

The following methods in Immutable{List|Set|Map} are all used
to create new collections and never return null values:

builder()
Builder.build()
copyOf()
of()

They can all be annotated as @NonNull.

Change-Id: I7149f488d2905c5def7b7b39993e9584642a4b0a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59326
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableList$Builder.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableList.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableMap$Builder.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableMap.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableSet$Builder.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/ImmutableSet.eea [new file with mode: 0644]
tmf/org.eclipse.tracecompass.tmf.core.tests/src/org/eclipse/tracecompass/tmf/core/tests/trace/TmfTraceUtilsTest.java
tmf/org.eclipse.tracecompass.tmf.core.tests/stubs/org/eclipse/tracecompass/tmf/tests/stubs/trace/xml/TmfXmlTraceStub.java
This page took 0.028002 seconds and 5 git commands to generate.