commit | d58c5b742f96cebbc48c91e5e9a6f14bfef96fb1 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Jan 20 19:25:03 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Wed Jan 21 16:49:17 2015 +0000 |
tree | 72a1b0df6950e8debc5980218f68ae97be0eb2d2 | |
parent | d4df608ff05ef9fbebf41b35afa69b2f5db0cd02 [diff] |
Simplify the code by using the constructor initializing a reference Change-Id: I62335690903fe21cd3400e81e20833b4a1bb7b59
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 7d1022c..3ca37cc 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
@@ -449,8 +449,7 @@ Multimap<DeviceId, FlowRuleBatchEntry> batches) { this.futures = futures; this.batches = batches; - state = new AtomicReference<>(); - state.set(BatchState.STARTED); + this.state = new AtomicReference<>(BatchState.STARTED); } @Override