File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/org/apache/maven/plugins/javadoc Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5727,13 +5727,17 @@ protected final OfflineLink getDefaultJavadocApiLink() {
5727
5727
}
5728
5728
5729
5729
/**
5730
- * Follows all of the given links, and returns their last redirect locations. Ordering is kept.
5731
- * This is necessary because javadoc tool doesn't follow links, see JDK-8190312 (MJAVADOC-427, MJAVADOC-487)
5730
+ * Follows all of the given links if the Javadoc version is before 12, and returns their last
5731
+ * redirect locations. Ordering is kept. This is necessary because javadoc tool doesn't follow
5732
+ * links, see JDK-8190312 (MJAVADOC-427, MJAVADOC-487)
5732
5733
*
5733
5734
* @param links Links to follow.
5734
5735
* @return Last redirect location of all the links.
5735
5736
*/
5736
5737
private Set <String > followLinks (Set <String > links ) {
5738
+ if (javadocRuntimeVersion .isAtLeast ("12" )) {
5739
+ return links ;
5740
+ }
5737
5741
Set <String > redirectLinks = new LinkedHashSet <>(links .size ());
5738
5742
for (String link : links ) {
5739
5743
try {
You can’t perform that action at this time.
0 commit comments