Skip to content

Commit 035555e

Browse files
committed
Javadoc
1 parent 7c3ce6c commit 035555e

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

src/main/java/org/apache/commons/cli/DefaultParser.java

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,12 @@ public DefaultParser get() {
100100
* By "partial matching" we mean that given the following code:
101101
* </p>
102102
*
103-
* <pre>
104-
*
105-
* {
106-
* &#64;code
107-
* final Options options = new Options();
108-
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
109-
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
110-
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
111-
* }
112-
* </pre>
103+
* <pre>{@code
104+
* final Options options = new Options();
105+
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
106+
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
107+
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
108+
* }</pre>
113109
* <p>
114110
* If "partial matching" is turned on, {@code -de} only matches the {@code "debug"} option. However, with "partial matching" disabled, {@code -de} would
115111
* enable both {@code debug} as well as {@code extract}
@@ -256,13 +252,11 @@ static int indexOfEqual(final String token) {
256252
* By "partial matching" we mean that given the following code:
257253
* </p>
258254
*
259-
* <pre>
260-
* {
261-
* &#64;code
262-
* final Options options = new Options();
263-
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
264-
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
265-
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
255+
* <pre>{@code
256+
* final Options options = new Options();
257+
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
258+
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
259+
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
266260
* }
267261
* </pre>
268262
*
@@ -281,9 +275,7 @@ public DefaultParser() {
281275
* <p>
282276
* By "partial matching" we mean that given the following code:
283277
* </p>
284-
* <pre>
285-
* {
286-
* &#64;code
278+
* <pre>{@code
287279
* final Options options = new Options();
288280
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
289281
* options.addOption(new Option("e", "extract", false, "Turn on extract."));

0 commit comments

Comments
 (0)