Add SuppressWarnings for FutureReturnValueIgnored

https://errorprone.info/bugpattern/FutureReturnValueIgnored

The submitted task logs the error in case it fails.

Change-Id: I280442ddb8046da47aeb79d005886f65d2e3067b
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
This commit is contained in:
Masaya Suzuki 2018-08-21 10:00:59 -07:00
parent af75250a45
commit 36346bd81c
1 changed files with 1 additions and 0 deletions

View File

@ -244,6 +244,7 @@ public GC(FileRepository repo) {
* parsed
*/
// TODO(ms): in 5.0 change signature and return Future<Collection<PackFile>>
@SuppressWarnings("FutureReturnValueIgnored")
public Collection<PackFile> gc() throws IOException, ParseException {
if (!background) {
return doGc();