Sho SHIMIZU
Committed by Gerrit Code Review

Simplify catch branch

Change-Id: I328d80f60f388eb0e9eaa63746c65a40c0d8040a
...@@ -91,9 +91,7 @@ public class CounterTestIncrementCommand extends AbstractShellCommand { ...@@ -91,9 +91,7 @@ public class CounterTestIncrementCommand extends AbstractShellCommand {
91 print("%s was updated to %d", counter, result.get(3, TimeUnit.SECONDS)); 91 print("%s was updated to %d", counter, result.get(3, TimeUnit.SECONDS));
92 } catch (InterruptedException e) { 92 } catch (InterruptedException e) {
93 return; 93 return;
94 - } catch (ExecutionException e) { 94 + } catch (ExecutionException | TimeoutException e) {
95 - e.printStackTrace();
96 - } catch (TimeoutException e) {
97 e.printStackTrace(); 95 e.printStackTrace();
98 } 96 }
99 } 97 }
......