Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasaya Suzuki2018-08-21 17:00:59 +0000
committerMasaya Suzuki2018-08-21 17:28:37 +0000
commit36346bd81c4cf1067fc18664ada3965b645f4138 (patch)
tree7357ae8a38c4814383683dde45803eebf87973b3
parentaf75250a45e49b9cda832287076131db15174410 (diff)
downloadjgit-36346bd81c4cf1067fc18664ada3965b645f4138.tar.gz
jgit-36346bd81c4cf1067fc18664ada3965b645f4138.tar.xz
jgit-36346bd81c4cf1067fc18664ada3965b645f4138.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java1
1 files changed, 1 insertions, 0 deletions
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<Collection<PackFile>>
+ @SuppressWarnings("FutureReturnValueIgnored")
public Collection<PackFile> gc() throws IOException, ParseException {
if (!background) {
return doGc();

Back to the top