From 36346bd81c4cf1067fc18664ada3965b645f4138 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Tue, 21 Aug 2018 10:00:59 -0700 Subject: [PATCH] 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 --- .../src/org/eclipse/jgit/internal/storage/file/GC.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index 3fab484f29..dbf8eb7804 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java @@ -244,6 +244,7 @@ public class GC { * parsed */ // TODO(ms): in 5.0 change signature and return Future> + @SuppressWarnings("FutureReturnValueIgnored") public Collection gc() throws IOException, ParseException { if (!background) { return doGc(); -- 2.39.5