Skip to content

Commit 519836e

Browse files
authored
Merge pull request #8 from nats-io/doc2
fixed doc
2 parents dc2eb57 + c73bb6b commit 519836e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ jobs:
1919
uses: actions/checkout@v2
2020
- name: Build and Test
2121
run: chmod +x gradlew && ./gradlew test
22+
- name: Check Docs
23+
if: ${{ success() }}
24+
run: ./gradlew javadoc

src/main/java/nats/io/NatsRunnerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static String getURIForPort(int port) {
3333
/**
3434
* Get a port number automatically allocated by the system, typically from an ephemeral port range.
3535
* @return the port number
36-
* @throws IOException
36+
* @throws IOException if there is a problem getting a port
3737
*/
3838
public static int nextPort() throws IOException {
3939
try (ServerSocket socket = new ServerSocket(0)) {

src/main/java/nats/io/NatsServerRunner.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public NatsServerRunner(boolean debug, boolean jetstream) throws IOException {
9393
* <li>no custom args</li>
9494
* </ul>
9595
* and these options:
96-
* @param port the port to start on or <=0 to use an automatically allocated port
96+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
9797
* @param debug whether to start the server with the -DV flags
9898
* @throws IOException thrown when the server cannot start
9999
*/
@@ -109,7 +109,7 @@ public NatsServerRunner(int port, boolean debug) throws IOException {
109109
* <li>no custom args</li>
110110
* </ul>
111111
* and these options:
112-
* @param port the port to start on or <=0 to use an automatically allocated port
112+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
113113
* @param debug whether to start the server with the -DV flags
114114
* @param jetstream whether to enable JetStream
115115
* @throws IOException thrown when the server cannot start
@@ -159,7 +159,7 @@ public NatsServerRunner(String configFilePath, boolean debug, boolean jetstream)
159159
* <li>no custom args</li>
160160
* </ul>
161161
* and these options:
162-
* @param port the port to start on or <=0 to use an automatically allocated port
162+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
163163
* @param debug whether to start the server with the -DV flags
164164
* @param configFilePath path to a custom config file
165165
* @param configInserts an array of custom lines to add to the config file
@@ -177,7 +177,7 @@ public NatsServerRunner(String configFilePath, String[] configInserts, int port,
177177
* <li>no custom args</li>
178178
* </ul>
179179
* and these options:
180-
* @param port the port to start on or <=0 to use an automatically allocated port
180+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
181181
* @param debug whether to start the server with the -DV flags
182182
* @param configFilePath path to a custom config file
183183
* @throws IOException thrown when the server cannot start
@@ -212,7 +212,7 @@ public NatsServerRunner(String[] customArgs, boolean debug) throws IOException {
212212
* </ul>
213213
* and these options:
214214
* @param customArgs any custom args to add to the command line
215-
* @param port the port to start on or <=0 to use an automatically allocated port
215+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
216216
* @param debug whether to start the server with the -DV flags
217217
* @throws IOException thrown when the server cannot start
218218
*/
@@ -223,7 +223,7 @@ public NatsServerRunner(String[] customArgs, int port, boolean debug) throws IOE
223223
/**
224224
* Construct and start the Nats Server runner with options
225225
*
226-
* @param port the port to start on or <=0 to use an automatically allocated port
226+
* @param port the port to start on or &lt;=0 to use an automatically allocated port
227227
* @param debug whether to start the server with the -DV flags
228228
* @param jetstream whether to enable JetStream
229229
* @param configFilePath path to a custom config file

0 commit comments

Comments
 (0)