Skip to content

Commit c75b8de

Browse files
authored
Make Javadoc -1.1 switch related warning conditional again
This commit reverts the behavior introduced in d3fbbda, after which a warning about the `-1.1` switch appears unconditionally. The warning, "Javadoc 1.4+ doesn't support the -1.1 switch anymore. Ignore this option." now only displays if the `old` parameter is set to true, as it did previously.
1 parent 9333db1 commit c75b8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4324,7 +4324,7 @@ private void addJavadocOptions(
43244324

43254325
// all options in alphabetical order
43264326

4327-
if (getLog().isWarnEnabled()) {
4327+
if (old && getLog().isWarnEnabled()) {
43284328
getLog().warn("Javadoc 1.4+ doesn't support the -1.1 switch anymore. Ignore this option.");
43294329
}
43304330

0 commit comments

Comments
 (0)