]> source.dussan.org Git - jgit.git/commitdiff
Add SuppressWarnings for FutureReturnValueIgnored 01/127801/3
authorMasaya Suzuki <masayasuzuki@google.com>
Tue, 21 Aug 2018 17:00:59 +0000 (10:00 -0700)
committerMasaya Suzuki <masayasuzuki@google.com>
Tue, 21 Aug 2018 17:28:37 +0000 (10:28 -0700)
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>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

index 3fab484f29fbebcae9ea0112c0d64d8620a55747..dbf8eb78041afaca912406d00c6f9f1dbbf81b00 100644 (file)
@@ -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();