[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:
parent
1cff378a85
commit
1d073e30d7
|
@ -90,6 +90,7 @@ class FetchProcess {
|
|||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@SuppressWarnings("Finally")
|
||||
void execute(ProgressMonitor monitor, FetchResult result,
|
||||
String initialBranch)
|
||||
throws NotSupportedException, TransportException {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue