kiwiproject / service-discovery-client

Common service discovery API for registration and lookup
MIT License
0 stars 0 forks source link

Update Ports#findFirstPortPreferSecure documentation #420

Closed sleberknight closed 5 months ago

sleberknight commented 5 months ago

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.