commit | 9f4aa094909ae999fa922f2fb0feea37f1c42acc | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Jan 27 14:25:39 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Tue Jan 27 23:21:16 2015 +0000 |
tree | e33b94fe1b51439f7a8ff707696bd302b6c5726c | |
parent | 683b31b7f9d061a1ee582640aab8cdeaf6759409 [diff] |
Apply multi-catch to reduce duplication Change-Id: Ic42335acadb3422034d9396066fc92791632af61
diff --git a/cli/src/main/java/org/onosproject/cli/net/AddFlowsCommand.java b/cli/src/main/java/org/onosproject/cli/net/AddFlowsCommand.java index 6b5d6f4..a5fc611 100644 --- a/cli/src/main/java/org/onosproject/cli/net/AddFlowsCommand.java +++ b/cli/src/main/java/org/onosproject/cli/net/AddFlowsCommand.java
@@ -95,9 +95,7 @@ new FlowRuleBatchOperation(rules)); try { isSuccess &= op.get().isSuccess(); - } catch (InterruptedException e) { - e.printStackTrace(); - } catch (ExecutionException e) { + } catch (InterruptedException | ExecutionException e) { e.printStackTrace(); } long endTime = System.currentTimeMillis();