Committed by
Gerrit Code Review
Use lambda expression to reduce lines
Change-Id: Ie8994f79acc6b2f4204f62aca1fe6112baf578cd
Showing
1 changed file
with
1 additions
and
6 deletions
... | @@ -559,12 +559,7 @@ public class FlowRuleManager | ... | @@ -559,12 +559,7 @@ public class FlowRuleManager |
559 | final FlowRuleBatchOperation b = new FlowRuleBatchOperation(perDeviceBatches.get(deviceId), | 559 | final FlowRuleBatchOperation b = new FlowRuleBatchOperation(perDeviceBatches.get(deviceId), |
560 | deviceId, id); | 560 | deviceId, id); |
561 | pendingFlowOperations.put(id, this); | 561 | pendingFlowOperations.put(id, this); |
562 | - deviceInstallers.submit(new Runnable() { | 562 | + deviceInstallers.submit(() -> store.storeBatch(b)); |
563 | - @Override | ||
564 | - public void run() { | ||
565 | - store.storeBatch(b); | ||
566 | - } | ||
567 | - }); | ||
568 | } | 563 | } |
569 | } | 564 | } |
570 | 565 | ... | ... |
-
Please register or login to post a comment