Sho SHIMIZU
Committed by Gerrit Code Review

Catch up with the latest API to fix the build error in #7156

Change-Id: Ia51be04f9f5ed5381e524a405944bf3a67f0c034
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
15 */ 15 */
16 package org.onosproject.net.intent.impl.compiler; 16 package org.onosproject.net.intent.impl.compiler;
17 17
18 -import com.google.common.collect.ImmutableSet;
19 import org.apache.commons.lang3.tuple.Pair; 18 import org.apache.commons.lang3.tuple.Pair;
20 import org.apache.felix.scr.annotations.Activate; 19 import org.apache.felix.scr.annotations.Activate;
21 import org.apache.felix.scr.annotations.Component; 20 import org.apache.felix.scr.annotations.Component;
...@@ -644,12 +643,8 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu ...@@ -644,12 +643,8 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu
644 * @return set of TributarySlots available on the connect point 643 * @return set of TributarySlots available on the connect point
645 */ 644 */
646 Set<TributarySlot> findTributarySlotsOnCp(ConnectPoint cp) { 645 Set<TributarySlot> findTributarySlotsOnCp(ConnectPoint cp) {
647 - return ImmutableSet.of(); // temporary fix for build 646 + return resourceService.getAvailableResourceValues(
648 - // FIXME: below changes break the build due to conflicting changes on Resource, which obsoleted Resource#last() 647 + Resources.discrete(cp.deviceId(), cp.port()).id(),
649 -// return resourceService.getAvailableResources(Resources.discrete(cp.deviceId(), cp.port()).id()) 648 + TributarySlot.class);
650 -// .stream()
651 -// .filter(x -> x.last() instanceof TributarySlot)
652 -// .map(x -> (TributarySlot) x.last())
653 -// .collect(Collectors.toSet());
654 } 649 }
655 } 650 }
......