Add the following to the javadoc to make it clear what happens if no port is found of the given port type:
If not found, returns a new Port with number 0 and the given value for {@link PortType}.
This is the same (slightly modified to remove reference to @Security) documentation as on the Ports#findPort(List<Port> ports, PortType type, Security security) method.
Add the following to the javadoc to make it clear what happens if no port is found of the given port type:
This is the same (slightly modified to remove reference to
@Security
) documentation as on thePorts#findPort(List<Port> ports, PortType type, Security security)
method.