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);
     }
 
     /**