common: Add external annotations to Guava Cache and LoadingCache
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 15 Nov 2016 20:07:18 +0000 (15:07 -0500)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 15 Nov 2016 22:48:30 +0000 (17:48 -0500)
commit9c8ea59abb311ce0cfd9829330c12aeb954532f4
treeb2920c134fed60ce96b7117fd6b3137a7b0428b8
parenta2f54bf2de5d3ddf238eb6a4d59687df7feaee5a
common: Add external annotations to Guava Cache and LoadingCache

getIfPresent() should return a @Nullable V. Elsewhere it should
follow the declaration type.

Some other methods (asMap() etc.) are known to really return a
possibly empty map, so those can be marked @NonNull.

Change-Id: I5466151977ee639535b1f818ef9e3c14ba122f7e
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/85082
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/cache/Cache.eea [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/annotations/com/google/common/cache/LoadingCache.eea [new file with mode: 0644]
This page took 0.027405 seconds and 5 git commands to generate.