[errorprone] Suppress [Finally] warnings

In these cases we use Throwable#addSuppressed to ensure the exception
thrown in the catch block preceding the finally block throwing another
exception isn't lost.

Change-Id: I96e78a5c15238ab77ac90ca1901850ce19acfcd8
This commit is contained in:
Matthias Sohn 2023-03-02 10:43:10 +01:00
parent 1cff378a85
commit 1d073e30d7
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class FetchProcess {
.collect(Collectors.toList());
}
@SuppressWarnings("Finally")
void execute(ProgressMonitor monitor, FetchResult result,
String initialBranch)
throws NotSupportedException, TransportException {

View File

@ -470,6 +470,7 @@ private boolean alreadyHave(AnyObjectId id) throws TransportException {
}
}
@SuppressWarnings("Finally")
private boolean downloadPackedObject(final ProgressMonitor monitor,
final AnyObjectId id) throws TransportException {
// Search for the object in a remote pack whose index we have,