commit | 953b0fb6caf7d13baa9a4a140650b3158dfd5d39 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri Feb 26 16:42:13 2016 -0800 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri Feb 26 16:42:13 2016 -0800 |
tree | 74f31ac5baff78f7acf40bcd79c5e6038d106dca | |
parent | cf74444198b3489343a5c1584318e6ec1eba67ed [diff] |
Move variable definition close to line using the variable Change-Id: Icf91b863af766ec4d8869208a64bfe68805c02d0
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java index 15ff1df..e38c3d0 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
@@ -196,7 +196,6 @@ // Check if both devices support multiplexing (usage of TributarySlots) boolean multiplexingSupported = isMultiplexingSupported(intent); - LinkedList<Intent> intents = new LinkedList<>(); // slots are used only for devices supporting multiplexing Set<TributarySlot> slots = Collections.emptySet(); @@ -261,9 +260,8 @@ // Save circuit to connectivity intent mapping intentSetMultimap.allocateMapping(connIntent.id(), intent.id()); - intents.add(circuitIntent); - return intents; + return ImmutableList.of(circuitIntent); } /**