common: Add external annotations for Guava's Table#get
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 22 Oct 2015 22:20:41 +0000 (18:20 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 28 Oct 2015 23:02:05 +0000 (19:02 -0400)
Just like Map.get(), Table.get() can return a null value to
indicate that the key is not present in the table, independently
of the declaration of the type V.

Guava Tables are now used in the graph/critical path classes, so
this is also required.

Slightly harder to add annotations to Guava classes atm due to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=480462
but one can still write the .eea files manually.

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

diff --git a/common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/Table.eea b/common/org.eclipse.tracecompass.common.core/annotations/com/google/common/collect/Table.eea
new file mode 100644 (file)
index 0000000..8ad38c7
--- /dev/null
@@ -0,0 +1,4 @@
+class com/google/common/collect/Table
+get
+ (Ljava/lang/Object;Ljava/lang/Object;)TV;
+ (Ljava/lang/Object;Ljava/lang/Object;)T0V;
This page took 0.02561 seconds and 5 git commands to generate.