Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix javadoc in Ports #413

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/org/kiwiproject/registry/util/Ports.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
public class Ports {

/**
* Find the single application port. If there are none or more than one, throw an exception.
* Find the single application port. If there is not exactly one, throw an exception.
*
* @param ports the ports to filter
* @return the application port
* @throws IllegalStateException if there are none or there is more than one port
* @throws IllegalStateException if there is not exactly one port
*/
public static Port findOnlyApplicationPort(List<Port> ports) {
var applicationPorts = findApplicationPorts(ports);
Expand All @@ -42,11 +42,11 @@ public static List<Port> findApplicationPorts(List<Port> ports) {
}

/**
* Find the single admin port. If there are none or more than one, throw an exception.
* Find the single admin port. If there is not exactly one, throw an exception.
*
* @param ports the ports to filter
* @return the admin port
* @throws IllegalStateException if there are none or there is more than one port
* @throws IllegalStateException if there is not exactly one port
*/
public static Port findOnlyAdminPort(List<Port> ports) {
var adminPorts = findAdminPorts(ports);
Expand Down