From: Masaya Suzuki Date: Tue, 21 Aug 2018 17:00:59 +0000 (-0700) Subject: Add SuppressWarnings for FutureReturnValueIgnored X-Git-Tag: v5.1.0.201808281540-m3~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F127801%2F3;p=jgit.git 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 --- 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();