gerrit-sshd: Remove usages of Throwables#propagate

Change Ic0e0819b5 added some calls to Throwables#propagate, but I
overlooked that previously existing usages had been replaced in
change Id148cb961 due to intention of Guava to deprecate it.

Change-Id: I90e513c85da4fecbe22679ebbf45badbf3a9edde
This commit is contained in:
David Pursehouse
2016-04-07 19:27:38 +09:00
parent ebdba50b40
commit a96c5535f7
3 changed files with 6 additions and 3 deletions

View File

@@ -99,7 +99,8 @@ public class AliasCommand extends BaseCommand {
try {
cmd.destroy();
} catch (Exception e) {
Throwables.propagate(e);
Throwables.propagateIfPossible(e);
throw new RuntimeException(e);
}
}
}

View File

@@ -137,7 +137,8 @@ final class DispatchCommand extends BaseCommand {
try {
cmd.destroy();
} catch (Exception e) {
Throwables.propagate(e);
Throwables.propagateIfPossible(e);
throw new RuntimeException(e);
}
}
}

View File

@@ -155,7 +155,8 @@ public final class SuExec extends BaseCommand {
try {
cmd.destroy();
} catch (Exception e) {
Throwables.propagate(e);
Throwables.propagateIfPossible(e);
throw new RuntimeException(e);
}
}
}