Skip to content

Commit 7835c1c

Browse files
committed
Fix Javadoc for Java 11
1 parent 13563d0 commit 7835c1c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/javadoc/overview.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ <h1>Using Ant as an Example</h1>
259259
-logger &lt;classname&gt; the class which is to perform logging
260260
-listener &lt;classname&gt; add an instance of class as a project listener
261261
-buildfile &lt;file&gt; use given buildfile
262-
-D&lt;property>=&lt;value&gt; use value for given property
262+
-D&lt;property&gt;=&lt;value&gt; use value for given property
263263
-find &lt;file&gt; search for buildfile towards the root of the
264264
filesystem and use it</code></pre>
265265
<section>
@@ -610,7 +610,7 @@ <h1>Deprecating Options</h1>
610610
<section>
611611
<h2>Changing Usage Announcement</h2>
612612
<p>
613-
The usage announcement may be changed by providing a <code>Consumer&lt;Option></code> to the
613+
The usage announcement may be changed by providing a <code>Consumer&lt;Option&gt;</code> to the
614614
<code>CommandLine.Builder.deprecatedHandler</code> method. This is commonly used to log usage
615615
of deprecated options rather than printing them on the standard output.
616616
</p>
@@ -644,7 +644,7 @@ <h2>Changing Usage Announcement</h2>
644644

645645
<pre><code>
646646
void doSomething(Options options) {
647-
Consumer&lt;Option> deprecatedUsageAnnouncement = o -> {
647+
Consumer&lt;Option&gt; deprecatedUsageAnnouncement = o -&gt; {
648648
final StringBuilder buf = new StringBuilder()
649649
.append("'")
650650
.append(o.getOpt())
@@ -694,23 +694,23 @@ <h2>Changing help format</h2>
694694
</p>
695695
<pre><code>
696696
usage: Command line syntax:
697-
-count &lt;arg> the number of things
698-
-n &lt;arg> [Deprecated] the number of things</code></pre>
697+
-count &lt;arg&gt; the number of things
698+
-n &lt;arg&gt; [Deprecated] the number of things</code></pre>
699699
<p>
700700
The display of deprecated options may be changed through the use of the
701701
<code>HelpFormatter.Builder.setShowDeprecated()</code> method.
702702
</p>
703703
<ul>
704704
<li>Calling <code>HelpFormatter.Builder.setShowDeprecated(false)</code> will disable the "[Deprecated]" tag.</li>
705-
<li>Calling <code>HelpFormatter.Builder.setShowDeprecated</code> with a <code>Function&lt;Option, String></code>
705+
<li>Calling <code>HelpFormatter.Builder.setShowDeprecated</code> with a <code>Function&lt;Option, String&gt;</code>
706706
will use the output of the function as the description for the option.</li>
707707
</ul>
708708
<p>
709709
As an example of the second case above, changing the implementation of <code>doSomething</code> to
710710
</p>
711711
<pre><code>
712712
void doSomething(Options options) {
713-
Function&lt;Option, String> disp = option -> String.format("%s. %s", HelpFormatter.getDescription(option),
713+
Function&lt;Option, String&gt; disp = option -&gt; String.format("%s. %s", HelpFormatter.getDescription(option),
714714
option.getDeprecated().toString());
715715
HelpFormatter formatter = HelpFormatter.builder().setShowDeprecated(disp).get();
716716
formatter.printHelp("Command line syntax:", options);
@@ -720,8 +720,8 @@ <h2>Changing help format</h2>
720720
</p>
721721
<pre><code>
722722
usage: Command line syntax:
723-
-count &lt;arg> the number of things
724-
-n &lt;arg> the number of things. Deprecated for removal since now:
723+
-count &lt;arg&gt; the number of things
724+
-n &lt;arg&gt; the number of things. Deprecated for removal since now:
725725
Use '-count' instead</code></pre>
726726
</section>
727727
</section>

0 commit comments

Comments
 (0)