Just replaces the StringBuilder with a more efficient/readable
String concatenation operation.
Change-Id: Idce8fed3d4e207ff1a95cf24267a41fa8682a08a
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
}
private FlowId createFlowId(ArpMessageAddress senderAddress, Ipv4Address ipForRequestedMac) {
- StringBuilder sb = new StringBuilder();
- sb.append(ARP_REPLY_TO_CONTROLLER_FLOW_NAME);
- sb.append("|").append(ipForRequestedMac.getValue());
- return new FlowId(sb.toString());
+ String flowId = ARP_REPLY_TO_CONTROLLER_FLOW_NAME + "|" + ipForRequestedMac.getValue();
+ return new FlowId(flowId);
}
private static InstanceIdentifier<Flow> createFlowIid(Flow flow, InstanceIdentifier<Node> nodeIid) {