Yuta HIGUCHI
Committed by Gerrit Code Review

Replace javafx Pair with commons Pair

Change-Id: I2a81faf4877889729ac81c75ed6039f33c6222fc
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 16
17 package org.onosproject.newoptical; 17 package org.onosproject.newoptical;
18 18
19 -import javafx.util.Pair; 19 +import org.apache.commons.lang3.tuple.Pair;
20 import org.junit.After; 20 import org.junit.After;
21 import org.junit.Before; 21 import org.junit.Before;
22 import org.junit.Test; 22 import org.junit.Test;
...@@ -502,7 +502,7 @@ public class OpticalPathProvisionerTest { ...@@ -502,7 +502,7 @@ public class OpticalPathProvisionerTest {
502 return Collections.emptySet(); 502 return Collections.emptySet();
503 } 503 }
504 504
505 - edges.add(new Pair<>((DeviceId) src, (DeviceId) dst)); 505 + edges.add(Pair.of((DeviceId) src, (DeviceId) dst));
506 506
507 Set<Path> paths = new HashSet<>(); 507 Set<Path> paths = new HashSet<>();
508 List<Link> links = Stream.of(LINK1, LINK2, LINK3, LINK4, LINK5, LINK6) 508 List<Link> links = Stream.of(LINK1, LINK2, LINK3, LINK4, LINK5, LINK6)
...@@ -636,7 +636,7 @@ public class OpticalPathProvisionerTest { ...@@ -636,7 +636,7 @@ public class OpticalPathProvisionerTest {
636 636
637 @Override 637 @Override
638 public ConsistentMap<K, V> build() { 638 public ConsistentMap<K, V> build() {
639 - return new TestConsistentMap<K, V>(); 639 + return new TestConsistentMap<>();
640 } 640 }
641 }; 641 };
642 642
...@@ -651,7 +651,7 @@ public class OpticalPathProvisionerTest { ...@@ -651,7 +651,7 @@ public class OpticalPathProvisionerTest {
651 return new DistributedSetAdapter<E>() { 651 return new DistributedSetAdapter<E>() {
652 @Override 652 @Override
653 public DistributedSet<E> asDistributedSet() { 653 public DistributedSet<E> asDistributedSet() {
654 - return new TestDistributedSet<E>(); 654 + return new TestDistributedSet<>();
655 } 655 }
656 }; 656 };
657 } 657 }
......