This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new af786da  AvailablePortFinder: Fix typos in javadoc and remove 
duplicate blank lines.
af786da is described below

commit af786da4f78490149e48cc9f9e6843cee7b7ea70
Author: Pascal Schumacher <pascalschumac...@gmx.net>
AuthorDate: Sun May 31 09:02:02 2020 +0200

    AvailablePortFinder: Fix typos in javadoc and remove duplicate blank lines.
---
 .../src/main/java/org/apache/camel/test/AvailablePortFinder.java   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
 
b/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
index 3559d5e..10f2d76 100644
--- 
a/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
+++ 
b/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
@@ -48,7 +48,6 @@ public final class AvailablePortFinder {
         return probePort(0);
     }
 
-
     /**
      * Gets the next available port in the given range.
      *
@@ -69,13 +68,12 @@ public final class AvailablePortFinder {
         throw new IllegalStateException("Cannot find free port");
     }
 
-
     /**
      * Probe a port to see if it is free
      *
      * @param port an integer port number to be tested. If port is 0, then the 
next available port is returned.
-     * @throws IllegalStateException if the port is not free or, in casi of 
port 0, if there are no ports available at all.
-     * @return the port number itself if the port is free or, inc ase of port 
0, the first available port number.
+     * @throws IllegalStateException if the port is not free or, in case of 
port 0, if there are no ports available at all.
+     * @return the port number itself if the port is free or, in case of port 
0, the first available port number.
      */
     private static int probePort(int port) {
         try (ServerSocket ss = new ServerSocket()) {
@@ -89,5 +87,4 @@ public final class AvailablePortFinder {
         }
     }
 
-
 }

Reply via email to