Skip to content

Commit

Permalink
Fix javadoc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed May 24, 2018
1 parent 3df4a85 commit 41a8475
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

/**
* Abstract class to fix Javadoc documentation and tags in source files.
* <br/>
* <br>
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#wheretags">Where Tags
* Can Be Used</a>.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public abstract class AbstractJavadocMojo
* Specifies to use the
* <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#standard">
* options provided by the Standard Doclet</a> for a custom doclet.
* <br/>
* <br>
* Example:
* <pre>
* &lt;docletArtifacts&gt;
Expand Down Expand Up @@ -1128,7 +1128,7 @@ public abstract class AbstractJavadocMojo

/**
* Creates links to existing javadoc-generated documentation of external referenced classes.
* <br/>
* <br>
* <b>Notes</b>:
* <ol>
* <li>only used if {@link #isOffline} is set to <code>false</code>.</li>
Expand Down Expand Up @@ -1288,9 +1288,8 @@ public abstract class AbstractJavadocMojo

/**
* Omits the class/interface hierarchy pages from the generated docs.
* <br/>
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#notree">notree</a>.
* <br/>
* <br>
* @see <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#notree">notree</a> option
*/
@Parameter( property = "notree", defaultValue = "false" )
private boolean notree;
Expand All @@ -1314,18 +1313,16 @@ public abstract class AbstractJavadocMojo
* <br/>
* <b>Note</b>: if {@link #detectOfflineLinks} is defined, the offline links between the project modules are
* automatically added if the goal is calling in a non-aggregator way.
* <br/>
* See <a href="./apidocs/org/apache/maven/plugin/javadoc/options/OfflineLink.html">Javadoc</a>.
* <br/>
* <br>
* @see <a href="./apidocs/org/apache/maven/plugin/javadoc/options/OfflineLink.html">Javadoc</a>.
*/
@Parameter( property = "offlineLinks" )
private OfflineLink[] offlineLinks;

/**
* Specifies the destination directory where javadoc saves the generated HTML files.
* <br/>
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#d">d</a>.
* <br/>
* <br>
* @see <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#d">d</a> option
*/
@Parameter( property = "destDir", alias = "destDir", defaultValue = "${project.build.directory}/apidocs",
required = true )
Expand All @@ -1346,8 +1343,7 @@ public abstract class AbstractJavadocMojo
/**
* Generates compile-time warnings for missing serial tags.
* <br/>
* See <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#serialwarn">serialwarn</a>
* <br/>
* @see <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#serialwarn">serialwarn</a> option
*/
@Parameter( property = "serialwarn", defaultValue = "false" )
private boolean serialwarn;
Expand Down Expand Up @@ -2230,7 +2226,7 @@ protected List<String> getFiles( Collection<String> sourcePaths )
*
* @return a Collection of the project absolute source paths as <code>String</code>
* @throws MavenReportException {@link MavenReportException}
* @see JavadocUtil#pruneDirs(MavenProject, List)
* @see JavadocUtil#pruneDirs(MavenProject, Collection)
*/
protected Map<String, Collection<String>> getSourcePaths()
throws MavenReportException
Expand Down Expand Up @@ -2332,7 +2328,7 @@ protected Map<String, Collection<String>> getSourcePaths()
/**
* Override this method to customize the configuration for resolving dependency sources. The default
* behavior enables the resolution of -sources jar files.
* @param config {@linke SourceResolverConfig}
* @param config {@link SourceResolverConfig}
* @return {@link SourceResolverConfig}
*/
protected SourceResolverConfig configureDependencySourceResolution( final SourceResolverConfig config )
Expand Down Expand Up @@ -2692,7 +2688,7 @@ protected ScopeFilter getDependencyScopeFilter()
/**
* @param dependency {@link Dependency}
* @return {@link Artifact}
* @throws MavenReportException
* @throws MavenReportException when artifact could not be resolved
*/
public Artifact resolveDependency( Dependency dependency )
throws MavenReportException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ public boolean isExternalReport()
/**
* {@inheritDoc}
*
* <br/>
* <br>
* The logic is the following:
* <table>
* <table summary="Can-generate-report Matrix">
* <tbody>
* <tr>
* <th> isAggregator </th>
Expand Down
18 changes: 11 additions & 7 deletions src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected static List<String> getExcludedNames( Collection<String> sourcePaths,

/**
* Convenience method to wrap an argument value in single quotes (i.e. <code>'</code>). Intended for values which
* may contain whitespaces. <br/>
* may contain whitespaces. <br>
* To prevent javadoc error, the line separator (i.e. <code>\n</code>) are skipped.
*
* @param value the argument value.
Expand Down Expand Up @@ -548,9 +548,9 @@ else if ( StringUtils.isNotEmpty( out.getOutput() ) )
}

/**
* Parse the output for 'javadoc -J-version' and return the javadoc version recognized. <br/>
* Parse the output for 'javadoc -J-version' and return the javadoc version recognized. <br>
* Here are some output for 'javadoc -J-version' depending the JDK used:
* <table>
* <table summary="Output for 'javadoc -J-version' per JDK">
* <tr>
* <th>JDK</th>
* <th>Output for 'javadoc -J-version'</th>
Expand Down Expand Up @@ -608,9 +608,9 @@ protected static String extractJavadocVersion( String output )
}

/**
* Parse a memory string which be used in the JVM arguments <code>-Xms</code> or <code>-Xmx</code>. <br/>
* Parse a memory string which be used in the JVM arguments <code>-Xms</code> or <code>-Xmx</code>. <br>
* Here are some supported memory string depending the JDK used:
* <table>
* <table summary="Memory argument support per JDK">
* <tr>
* <th>JDK</th>
* <th>Memory argument support for <code>-Xms</code> or <code>-Xmx</code></th>
Expand Down Expand Up @@ -751,7 +751,7 @@ protected static String hideProxyPassword( String cmdLine, Settings settings )

/**
* Auto-detect the class names of the implementation of <code>com.sun.tools.doclets.Taglet</code> class from a given
* jar file. <br/>
* jar file. <br>
* <b>Note</b>: <code>JAVA_HOME/lib/tools.jar</code> is a requirement to find
* <code>com.sun.tools.doclets.Taglet</code> class.
*
Expand Down Expand Up @@ -859,7 +859,7 @@ protected static void copyResource( URL url, File file )

/**
* Invoke Maven for the given project file with a list of goals and properties, the output will be in the invokerlog
* file. <br/>
* file. <br>
* <b>Note</b>: the Maven Home should be defined in the <code>maven.home</code> Java system property or defined in
* <code>M2_HOME</code> system env variables.
*
Expand Down Expand Up @@ -1604,6 +1604,8 @@ public static String toRelative( File basedir, String absolutePath )

/**
* Convenience method to determine that a collection is not empty or null.
* @param collection the collection to verify
* @return {@code true} if not {@code null} and not empty, otherwise {@code false}
*/
public static boolean isNotEmpty( final Collection<?> collection )
{
Expand All @@ -1612,6 +1614,8 @@ public static boolean isNotEmpty( final Collection<?> collection )

/**
* Convenience method to determine that a collection is empty or null.
* @param collection the collection to verify
* @return {@code true} if {@code null} or empty, otherwise {@code false}
*/
public static boolean isEmpty( final Collection<?> collection )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class SourceResolverConfig

/**
* @param project {@link MavenProject}
* @param buoildingRequest {@link ProjectBuildingRequest}
* @param buildingRequest {@link ProjectBuildingRequest}
* @param outputBasedir The output base directory.
*/
public SourceResolverConfig( final MavenProject project, final ProjectBuildingRequest buildingRequest,
Expand All @@ -59,7 +59,7 @@ public SourceResolverConfig( final MavenProject project, final ProjectBuildingRe
}

/**
* @param filter {@link ArtifactFilter}
* @param filter {@link AndFilter}
* @return {@link SourceResolverConfig}
*/
public SourceResolverConfig withFilter( final AndFilter filter )
Expand Down Expand Up @@ -131,7 +131,7 @@ public ProjectBuildingRequest getBuildingRequest()
}

/**
* @return {@link TransformableFilter}
* @return {@link AndFilter}
*/
public AndFilter filter()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,6 @@ public void testJavadocComment()
assertTrue( withoutEmptyJavadocLines.endsWith( "any" ) );
}

/**
* @throws Throwable if any
*/
public void testJavadocCommentJdk5()
throws Exception
{
Expand Down

0 comments on commit 41a8475

Please sign in to comment.