Skip to content

Commit 7cbf434

Browse files
authored
[MJAVADOC-729] Link to Javadoc references from JDK 17 (#161)
Remove mentions when something has been added to ancient JDK 1.4 or 5
1 parent 23792f2 commit 7cbf434

16 files changed

+160
-371
lines changed

src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@
8989

9090
/**
9191
* Abstract class to fix Javadoc documentation and tags in source files.
92-
* <br>
93-
* See <a href="https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#wheretags">Where Tags
92+
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/javadoc/doc-comment-spec.html#where-tags-can-be-used">Where Tags
9493
* Can Be Used</a>.
95-
*
9694
* @author <a href="mailto:[email protected]">Vincent Siveton</a>
9795
* @since 2.6
9896
*/
@@ -346,15 +344,12 @@ public abstract class AbstractFixJavadocMojo
346344
* Specifies the access level for classes and members to show in the Javadocs.
347345
* Possible values are:
348346
* <ul>
349-
* <li><a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#public">public</a>
350-
* (shows only public classes and members)</li>
351-
* <li><a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#protected">protected</a>
352-
* (shows only public and protected classes and members)</li>
353-
* <li><a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#package">package</a>
354-
* (shows all classes and members not marked private)</li>
355-
* <li><a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#private">private</a>
356-
* (shows all classes and members)</li>
347+
* <li>public (shows only public classes and members)</li>
348+
* <li>protected (shows only public and protected classes and members)</li>
349+
* <li>package (shows all classes and members not marked private)</li>
350+
* <li>private (shows all classes and members)</li>
357351
* </ul>
352+
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html#options-for-javadoc">private, protected, public, package options for Javadoc</a>
358353
*/
359354
@Parameter ( property = "level", defaultValue = "protected" )
360355
private String level;

src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java

Lines changed: 123 additions & 304 deletions
Large diffs are not rendered by default.

src/main/java/org/apache/maven/plugins/javadoc/AggregatorJavadocJar.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
/**
2828
* <p>Bundles the Javadoc documentation for main <code>Java code</code> in an <b>aggregator</b> project into a jar
29-
* using the standard <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.</p>
29+
* using the standard <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.
30+
* </p>
3031
*
3132
* <p>Since version 3.1.0 an aggregated jar is created for every module of a Maven multimodule project.</p>
3233
*

src/main/java/org/apache/maven/plugins/javadoc/AggregatorJavadocNoForkReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Generates documentation for the <code>Java code</code> in an <b>aggregator</b> project using the standard
29-
* <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.
29+
* <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.
3030
*
3131
* @since 3.1.0
3232
*/

src/main/java/org/apache/maven/plugins/javadoc/AggregatorJavadocReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* <p>Generates documentation for the <code>Java code</code> in an <b>aggregator</b> project using the standard
29-
* <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.</p>
29+
* <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.</p>
3030
*
3131
* <p>Since version 3.1.0 an aggregated report is created for every module of a Maven multimodule project.</p>
3232
*

src/main/java/org/apache/maven/plugins/javadoc/AggregatorTestJavadocJar.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
/**
2828
* <p>Bundles the Javadoc documentation for <code>Java Test code</code> in an <b>aggregator</b> project into a jar
29-
* using the standard <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.</p>
29+
* using the standard <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.
30+
* </p>
3031
*
3132
* <p>Since version 3.1.0 an aggregated jar is created for every module of a Maven multimodule project.</p>
3233
*

src/main/java/org/apache/maven/plugins/javadoc/AggregatorTestJavadocNoForkReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Generates documentation for the <code>Java Test code</code> in an <b>aggregator</b> project using the standard
29-
* <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.
29+
* <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.
3030
*
3131
* @version $Id$
3232
* @since 3.0.1

src/main/java/org/apache/maven/plugins/javadoc/AggregatorTestJavadocReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* <p>Generates documentation for the <code>Java Test code</code> in an <b>aggregator</b> project using the standard
29-
* <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.</p>
29+
* <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">Javadoc Tool</a>.</p>
3030
*
3131
* <p>Since version 3.1.0 an aggregated report is created for every module of a Maven multimodule project.</p>
3232
*

src/main/java/org/apache/maven/plugins/javadoc/FixJavadocMojo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626

2727
/**
2828
* Fix Javadoc documentation and tags for the <code>Java code</code> for the project.
29-
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#wheretags">Where Tags Can
30-
* Be Used</a>.
31-
*
29+
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/javadoc/doc-comment-spec.html#where-tags-can-be-used">Where Tags
30+
* Can Be Used</a>
3231
* @author <a href="mailto:[email protected]">Vincent Siveton</a>
3332
* @since 2.6
3433
*/

src/main/java/org/apache/maven/plugins/javadoc/JavadocJar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545
/**
4646
* Bundles the Javadoc documentation for <code>main Java code</code> in an <b>NON aggregator</b> project into
47-
* a jar using the standard <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/">Javadoc Tool</a>.
47+
* a jar using the standard <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html">
48+
* Javadoc Tool</a>.
4849
*
4950
* @since 2.0
5051
*/
@@ -95,8 +96,7 @@ public class JavadocJar
9596

9697
/**
9798
* Specifies the destination directory where javadoc saves the generated HTML files.
98-
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#d">d</a>.
99-
*
99+
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html#standard-doclet-options">Doclet option d</a>.
100100
* @deprecated
101101
*/
102102
@Deprecated

0 commit comments

Comments
 (0)