commit | f88e59363255ae52958102cfa03dc0e3bf5304db | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed May 27 12:03:51 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed May 27 23:21:00 2015 +0000 |
tree | ff1f8f23d24af0332fb02a1a88d332aff856a3f7 | |
parent | a267ce41a4219d11ac0e6af2d52579cd4869bb40 [diff] |
Use lambda expression to reduce lines Change-Id: Ie8994f79acc6b2f4204f62aca1fe6112baf578cd
diff --git a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java index d38f4fe..441219a 100644 --- a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java +++ b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
@@ -559,12 +559,7 @@ final FlowRuleBatchOperation b = new FlowRuleBatchOperation(perDeviceBatches.get(deviceId), deviceId, id); pendingFlowOperations.put(id, this); - deviceInstallers.submit(new Runnable() { - @Override - public void run() { - store.storeBatch(b); - } - }); + deviceInstallers.submit(() -> store.storeBatch(b)); } }