@@ -2143,7 +2143,7 @@ protected Collection<JavadocModule> getSourcePaths() throws MavenReportException
2143
2143
/*
2144
2144
* Should be after the source path (i.e. -sourcepath '.../src/main/java;.../src/main/javadoc') and *not*
2145
2145
* the opposite. If not, the javadoc tool always copies doc files, even if -docfilessubdirs is not
2146
- * setted .
2146
+ * set .
2147
2147
*/
2148
2148
if (getJavadocDirectory () != null ) {
2149
2149
File javadocDir = getJavadocDirectory ();
@@ -2309,10 +2309,8 @@ protected final Collection<JavadocModule> getDependencySourcePaths() throws Mave
2309
2309
}
2310
2310
2311
2311
/**
2312
- * Returns a ArtifactFilter that only includes direct dependencies of this project
2312
+ * Returns an ArtifactFilter that only includes direct dependencies of this project
2313
2313
* (verified via groupId and artifactId).
2314
- *
2315
- * @return
2316
2314
*/
2317
2315
private TransformableFilter createDependencyArtifactFilter () {
2318
2316
Set <Artifact > dependencyArtifacts = project .getDependencyArtifacts ();
@@ -5600,12 +5598,12 @@ protected final OfflineLink getDefaultJavadocApiLink() {
5600
5598
}
5601
5599
5602
5600
/**
5603
- * Follows all of the given links if the Javadoc version is before 12, and returns their last
5604
- * redirect locations. Ordering is kept. This is necessary because javadoc tool doesn't follow
5601
+ * Follows the given links if the Javadoc version is before 12, and returns their last
5602
+ * redirect locations. Ordering is kept. This is necessary because the javadoc tool doesn't follow
5605
5603
* links, see JDK-8190312 (MJAVADOC-427, MJAVADOC-487)
5606
5604
*
5607
- * @param links Links to follow.
5608
- * @return Last redirect location of all the links.
5605
+ * @param links Links to follow=
5606
+ * @return last redirect location of all the links
5609
5607
*/
5610
5608
private Set <String > followLinks (Set <String > links ) {
5611
5609
if (javadocRuntimeVersion .isAtLeast ("12" )) {
@@ -5757,23 +5755,23 @@ private boolean isJavadocVMInitError(String output) {
5757
5755
// ----------------------------------------------------------------------
5758
5756
5759
5757
/**
5760
- * @param p not null
5761
- * @return the javadoc link based on the project url i.e. <code>${project.url}/apidocs</code>.
5758
+ * @param project not null
5759
+ * @return the javadoc link based on the project URL i.e. <code>${project.url}/apidocs</code>.
5762
5760
* @since 2.6
5763
5761
*/
5764
- private static String getJavadocLink (MavenProject p ) {
5765
- if (p .getUrl () == null ) {
5762
+ private static String getJavadocLink (MavenProject project ) {
5763
+ if (project .getUrl () == null ) {
5766
5764
return null ;
5767
5765
}
5768
5766
5769
- String url = cleanUrl (p .getUrl ());
5767
+ String url = cleanUrl (project .getUrl ());
5770
5768
5771
5769
return url + "/apidocs" ;
5772
5770
}
5773
5771
5774
5772
/**
5775
- * @param url could be null.
5776
- * @return the url cleaned or empty if url was null.
5773
+ * @param url could be null
5774
+ * @return the cleaned URL or empty if url was null
5777
5775
* @since 2.6
5778
5776
*/
5779
5777
private static String cleanUrl (String url ) {
@@ -5790,40 +5788,39 @@ private static String cleanUrl(String url) {
5790
5788
}
5791
5789
5792
5790
/**
5793
- * @param p not null
5791
+ * @param project not null
5794
5792
* @param pluginId not null key of the plugin defined in {@link org.apache.maven.model.Build#getPluginsAsMap()}
5795
5793
* or in {@link org.apache.maven.model.PluginManagement#getPluginsAsMap()}
5796
5794
* @return the Maven plugin defined in <code>${project.build.plugins}</code> or in
5797
- * <code>${project.build.pluginManagement}</code>, or <code>null</code> if not defined.
5795
+ * <code>${project.build.pluginManagement}</code>, or <code>null</code> if not defined
5798
5796
* @since 2.6
5799
5797
*/
5800
- private static Plugin getPlugin (MavenProject p , String pluginId ) {
5801
- if ((p .getBuild () == null ) || (p .getBuild ().getPluginsAsMap () == null )) {
5798
+ private static Plugin getPlugin (MavenProject project , String pluginId ) {
5799
+ if ((project .getBuild () == null ) || (project .getBuild ().getPluginsAsMap () == null )) {
5802
5800
return null ;
5803
5801
}
5804
5802
5805
- Plugin plugin = p .getBuild ().getPluginsAsMap ().get (pluginId );
5803
+ Plugin plugin = project .getBuild ().getPluginsAsMap ().get (pluginId );
5806
5804
5807
5805
if ((plugin == null )
5808
- && (p .getBuild ().getPluginManagement () != null )
5809
- && (p .getBuild ().getPluginManagement ().getPluginsAsMap () != null )) {
5810
- plugin = p .getBuild ().getPluginManagement ().getPluginsAsMap ().get (pluginId );
5806
+ && (project .getBuild ().getPluginManagement () != null )
5807
+ && (project .getBuild ().getPluginManagement ().getPluginsAsMap () != null )) {
5808
+ plugin = project .getBuild ().getPluginManagement ().getPluginsAsMap ().get (pluginId );
5811
5809
}
5812
5810
5813
5811
return plugin ;
5814
5812
}
5815
5813
5816
5814
/**
5817
- * @param p not null
5815
+ * @param project the Maven project
5818
5816
* @param pluginId not null
5819
5817
* @param param not null
5820
- * @return the simple parameter as String defined in the plugin configuration by <code>param</code> key
5818
+ * @return the string parameter defined in the plugin configuration by <code>param</code> key
5821
5819
* or <code>null</code> if not found.
5822
5820
* @since 2.6
5823
5821
*/
5824
- private static String getPluginParameter (MavenProject p , String pluginId , String param ) {
5825
- // p.getGoalConfiguration( pluginGroupId, pluginArtifactId, executionId, goalId );
5826
- Plugin plugin = getPlugin (p , pluginId );
5822
+ private static String getPluginParameter (MavenProject project , String pluginId , String param ) {
5823
+ Plugin plugin = getPlugin (project , pluginId );
5827
5824
if (plugin != null ) {
5828
5825
Xpp3Dom xpp3Dom = (Xpp3Dom ) plugin .getConfiguration ();
5829
5826
if (xpp3Dom != null
@@ -5893,7 +5890,8 @@ protected final JavadocOptions buildJavadocOptions() throws IOException {
5893
5890
/**
5894
5891
* Override this if you need to provide a bundle attachment classifier, as in the case of test
5895
5892
* javadocs.
5896
- * @return The attachment classifier.
5893
+ *
5894
+ * @return the attachment classifier
5897
5895
*/
5898
5896
protected String getAttachmentClassifier () {
5899
5897
return JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER ;
@@ -5902,8 +5900,8 @@ protected String getAttachmentClassifier() {
5902
5900
/**
5903
5901
* Logs an error with throwable content only if in debug.
5904
5902
*
5905
- * @param message The message which should be announced.
5906
- * @param t The throwable part of the message.
5903
+ * @param message the message which should be announced
5904
+ * @param t the throwable part of the message
5907
5905
*/
5908
5906
protected void logError (String message , Throwable t ) {
5909
5907
if (getLog ().isDebugEnabled ()) {
@@ -5918,8 +5916,8 @@ protected List<MavenProject> getReactorProjects() {
5918
5916
}
5919
5917
5920
5918
/**
5921
- * @param prefix The prefix of the exception.
5922
- * @param e The exception.
5919
+ * @param prefix the prefix of the exception
5920
+ * @param e the exception
5923
5921
* @throws MojoExecutionException {@link MojoExecutionException} issue while generating report
5924
5922
*/
5925
5923
protected void failOnError (String prefix , Exception e ) throws MojoExecutionException {
0 commit comments