Sho SHIMIZU
Committed by Gerrit Code Review

Fix warning about unchecked type

Change-Id: I1654f625b4e456dddc594e80455bf0f9969cfab4
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
15 */ 15 */
16 package org.onosproject.net.intent.impl.compiler; 16 package org.onosproject.net.intent.impl.compiler;
17 17
18 -import java.util.Arrays;
19 -import java.util.HashSet;
20 import java.util.List; 18 import java.util.List;
21 import java.util.Set; 19 import java.util.Set;
22 20
21 +import com.google.common.collect.ImmutableSet;
23 import org.apache.felix.scr.annotations.Activate; 22 import org.apache.felix.scr.annotations.Activate;
24 import org.apache.felix.scr.annotations.Component; 23 import org.apache.felix.scr.annotations.Component;
25 import org.apache.felix.scr.annotations.Deactivate; 24 import org.apache.felix.scr.annotations.Deactivate;
...@@ -111,7 +110,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical ...@@ -111,7 +110,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical
111 log.debug("Compiling optical connectivity intent between {} and {}", src, dst); 110 log.debug("Compiling optical connectivity intent between {} and {}", src, dst);
112 111
113 // Reserve OCh ports 112 // Reserve OCh ports
114 - if (!deviceResourceService.requestPorts(new HashSet(Arrays.asList(srcPort, dstPort)), intent)) { 113 + if (!deviceResourceService.requestPorts(ImmutableSet.of(srcPort, dstPort), intent)) {
115 throw new IntentCompilationException("Unable to reserve ports for intent " + intent); 114 throw new IntentCompilationException("Unable to reserve ports for intent " + intent);
116 } 115 }
117 116
......