mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 10:21:52 +02:00
Use apache commons Pair instead of javafx
It looks like javafx does not have Pair when using OpenJDK. Change-Id: I3379dc87e0515185714b28ca0832a36b76b0772f
This commit is contained in:
parent
f433f95e1b
commit
c5e85bbfd9
@ -17,7 +17,7 @@ package org.onosproject.segmentrouting.web;
|
||||
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import javafx.util.Pair;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.onlab.packet.MplsLabel;
|
||||
import org.onlab.packet.VlanId;
|
||||
import org.onosproject.codec.CodecContext;
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import javafx.util.Pair;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.onlab.util.ItemNotFoundException;
|
||||
import org.onosproject.rest.AbstractWebResource;
|
||||
import org.onosproject.segmentrouting.SegmentRoutingService;
|
||||
@ -168,7 +168,7 @@ public class PseudowireWebResource extends AbstractWebResource {
|
||||
L2TunnelHandler.Result res = srService.addPseudowire(pw);
|
||||
if (!(res == L2TunnelHandler.Result.SUCCESS)) {
|
||||
log.trace("Could not create pseudowire {} : {}", pw.l2Tunnel().tunnelId(), res.getSpecificError());
|
||||
failed.add(new Pair<>(pw, res.getSpecificError()));
|
||||
failed.add(Pair.of(pw, res.getSpecificError()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user