Committed by
Gerrit Code Review
Remove unnecessary object creation
Change-Id: I65bedfb8be902bb769e840eeb92a07a64127bc4d
Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -15,7 +15,6 @@ | ... | @@ -15,7 +15,6 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.optical; | 16 | package org.onosproject.optical; |
17 | 17 | ||
18 | -import com.google.common.collect.Lists; | ||
19 | import org.apache.felix.scr.annotations.Activate; | 18 | import org.apache.felix.scr.annotations.Activate; |
20 | import org.apache.felix.scr.annotations.Component; | 19 | import org.apache.felix.scr.annotations.Component; |
21 | import org.apache.felix.scr.annotations.Deactivate; | 20 | import org.apache.felix.scr.annotations.Deactivate; |
... | @@ -221,8 +220,7 @@ public class OpticalPathProvisioner { | ... | @@ -221,8 +220,7 @@ public class OpticalPathProvisioner { |
221 | } | 220 | } |
222 | 221 | ||
223 | // Generate optical connectivity intents | 222 | // Generate optical connectivity intents |
224 | - List<Intent> intents = Lists.newArrayList(); | 223 | + List<Intent> intents = getOpticalIntents(src, dst); |
225 | - intents.addAll(getOpticalIntents(src, dst)); | ||
226 | 224 | ||
227 | // Submit the intents | 225 | // Submit the intents |
228 | for (Intent i : intents) { | 226 | for (Intent i : intents) { | ... | ... |
-
Please register or login to post a comment