ChangeBatchIndexer: Join catch clauses where possible
Change-Id: I5c08ee785770497384d8daf1be8b4a2116cc76a0
This commit is contained in:
@@ -161,13 +161,13 @@ public class ChangeBatchIndexer {
|
|||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
future.get();
|
future.get();
|
||||||
} catch (InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
fail(project, e);
|
|
||||||
} catch (ExecutionException e) {
|
|
||||||
fail(project, e);
|
fail(project, e);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
failAndThrow(project, e);
|
failAndThrow(project, e);
|
||||||
} catch (Error e) {
|
} catch (Error e) {
|
||||||
|
// Can't join with RuntimeException because "RuntimeException |
|
||||||
|
// Error" becomes Throwable, which messes with signatures.
|
||||||
failAndThrow(project, e);
|
failAndThrow(project, e);
|
||||||
} finally {
|
} finally {
|
||||||
projTask.update(1);
|
projTask.update(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user