From d58c5b742f96cebbc48c91e5e9a6f14bfef96fb1 Mon Sep 17 00:00:00 2001 From: Sho SHIMIZU Date: Tue, 20 Jan 2015 19:25:03 -0800 Subject: [PATCH] Simplify the code by using the constructor initializing a reference Change-Id: I62335690903fe21cd3400e81e20833b4a1bb7b59 --- .../java/org/onosproject/net/flow/impl/FlowRuleManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 7d1022cd38..3ca37cc0d5 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 @@ public class FlowRuleManager Multimap batches) { this.futures = futures; this.batches = batches; - state = new AtomicReference<>(); - state.set(BatchState.STARTED); + this.state = new AtomicReference<>(BatchState.STARTED); } @Override