Affects Version/s: 2.4
Fix Version/s: 2.5
The -top argument is being passed when we're using a version smaller than 1.6.
Then the following warning is generated:
This warning shouldn't be thrown since we're not setting the -top parameter in the POM, so there's no way to ignore it.
On AbstractJavadocMojo.java, line 1492, the following method is called:
however, this method checks the version first, and then checks if the argument is null, like the following:
Specifically for this command line argument, the method should check the version before calling addArgIfNotEmpty, thus removing the warning if we're not explicitly passing the argument in a jdk < 1.6