Skip to content

Commit 90cd443

Browse files
authored
Typos and grammar (#1234)
1 parent c4770d9 commit 90cd443

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ private ClassLoader getProjectClassLoader() throws MojoExecutionException {
863863
}
864864

865865
/**
866-
* Process the given {@link JavaClass}, ie add missing javadoc tags depending user parameters.
866+
* Process the given {@link JavaClass}, ie add missing javadoc tags depending on user parameters.
867867
*
868868
* @param javaClass not null
869869
* @throws IOException if any
@@ -1069,7 +1069,7 @@ private boolean fixClassComment(
10691069

10701070
/**
10711071
* @param modifiers list of modifiers (public, private, protected, package)
1072-
* @return <code>true</code> if modifier is align with <code>level</code>.
1072+
* @return <code>true</code> if modifier is aligned with <code>level</code>.
10731073
*/
10741074
private boolean isInLevel(List<String> modifiers) {
10751075
if (LEVEL_PUBLIC.equalsIgnoreCase(level.trim())) {

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public AbstractJavadocMojo(
515515
* Detect the Java API link for the current build, e.g. <code>https://docs.oracle.com/javase/1.4.2/docs/api/</code>
516516
* for Java source 1.4.
517517
* <br/>
518-
* By default, the goal detects the Javadoc API link depending the value of the <code>source</code>
518+
* By default, the goal detects the Javadoc API link depending on the value of the <code>source</code>
519519
* parameter in the <code>org.apache.maven.plugins:maven-compiler-plugin</code>
520520
* (defined in <code>${project.build.plugins}</code> or in <code>${project.build.pluginManagement}</code>),
521521
* or try to compute it from the {@code javadocExecutable} version.
@@ -528,7 +528,7 @@ public AbstractJavadocMojo(
528528
private boolean detectJavaApiLink;
529529

530530
/**
531-
* Use this parameter <b>only</b> if if you want to override the default URLs.
531+
* Use this parameter <b>only</b> if you want to override the default URLs.
532532
*
533533
* The key should match {@code api_x}, where {@code x} matches the Java version.
534534
*
@@ -846,7 +846,7 @@ public AbstractJavadocMojo(
846846
// ----------------------------------------------------------------------
847847

848848
/**
849-
* Specifies whether or not the author text is included in the generated Javadocs.
849+
* Specifies whether the author text is included in the generated Javadocs.
850850
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html#standard-doclet-options">Doclet option author</a>.
851851
*/
852852
@Parameter(property = "author", defaultValue = "true")
@@ -1149,7 +1149,7 @@ public AbstractJavadocMojo(
11491149
private String noqualifier;
11501150

11511151
/**
1152-
* Omits from the generated docs the "Since" sections associated with the since tags.
1152+
* Omits the "Since" sections from the generated docs.
11531153
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html#standard-doclet-options">Doclet option nosince</a>.
11541154
*/
11551155
@Parameter(property = "nosince", defaultValue = "false")
@@ -1345,8 +1345,8 @@ public AbstractJavadocMojo(
13451345
private TagletArtifact tagletArtifact;
13461346

13471347
/**
1348-
* Specifies several Taglet artifacts containing the taglet class files (.class). These taglets class names will be
1349-
* auto-detect and so no need to specify them.
1348+
* Specifies several Taglet artifacts containing the taglet class files (.class). These taglet class names will be
1349+
* auto-detected and so no need to specify them.
13501350
* <br/>
13511351
* Example:
13521352
* <pre>
@@ -2111,7 +2111,7 @@ protected Map<Path, Collection<String>> getFiles(Collection<Path> sourcePaths) t
21112111
sourceDirectory, sourceFileIncludes, sourceFileExcludes, excludedPackages));
21122112

21132113
// in the aggregate goal (and theoretically in others too), there can be
2114-
// more then one module-info.java. Filter out all of them.
2114+
// more than one module-info.java. Filter out all of them.
21152115
if (autoExclude && files.removeIf(s -> s.endsWith("module-info.java"))) {
21162116
getLog().debug("Auto exclude module-info.java due to source value");
21172117
}
@@ -3377,7 +3377,7 @@ private void addProxyArg(Commandline cmd) {
33773377
}
33783378

33793379
/**
3380-
* Get the path of the Javadoc tool executable depending the user entry or try to find it depending the OS
3380+
* Get the path of the Javadoc tool executable depending on the user entry or try to find it depending on the OS
33813381
* or the <code>java.home</code> system property or the <code>JAVA_HOME</code> environment variable.
33823382
*
33833383
* @return the path of the Javadoc tool
@@ -3586,7 +3586,7 @@ private void addArgIf(List<String> arguments, boolean b, String value, JavaVersi
35863586

35873587
/**
35883588
* Convenience method to add an argument to the <code>command line</code>
3589-
* if the the value is not null or empty.
3589+
* if the value is not null or empty.
35903590
* <p/>
35913591
* Moreover, the value could be comma separated.
35923592
*
@@ -3601,7 +3601,7 @@ private void addArgIfNotEmpty(List<String> arguments, String key, String value)
36013601

36023602
/**
36033603
* Convenience method to add an argument to the <code>command line</code>
3604-
* if the the value is not null or empty.
3604+
* if the value is not null or empty.
36053605
* <p/>
36063606
* Moreover, the value could be comma separated.
36073607
*
@@ -3635,7 +3635,7 @@ private void addArgIfNotEmpty(
36353635

36363636
/**
36373637
* Convenience method to add an argument to the <code>command line</code>
3638-
* if the the value is not null or empty.
3638+
* if the value is not null or empty.
36393639
* <p/>
36403640
* Moreover, the value could be comma separated.
36413641
*
@@ -3673,7 +3673,7 @@ private void addArgIfNotEmpty(
36733673

36743674
/**
36753675
* Convenience method to add an argument to the <code>command line</code>
3676-
* if the the value is not null or empty.
3676+
* if the value is not null or empty.
36773677
* <p/>
36783678
* Moreover, the value could be comma separated.
36793679
*
@@ -3774,7 +3774,7 @@ private Set<OfflineLink> getOfflineLinks() throws MavenReportException {
37743774
* If {@code detectLinks}, try to add javadoc apidocs according Maven conventions for all dependencies given
37753775
* in the project.
37763776
* <br/>
3777-
* According the Javadoc documentation, all defined links should have <code>${link}/package-list</code> fetchable.
3777+
* According to the Javadoc documentation, all defined links should have <code>${link}/package-list</code> fetchable.
37783778
* <br/>
37793779
* <b>Note</b>: when a link is not fetchable:
37803780
* <ul>
@@ -4165,8 +4165,8 @@ private void addCommandLineOptions(Commandline cmd, List<String> arguments, File
41654165
}
41664166

41674167
/**
4168-
* Generate a file called <code>argfile</code> (or <code>files</code>, depending the JDK) to hold files and add
4169-
* the <code>@argfile</code> (or <code>@file</code>, depending the JDK) in the command line.
4168+
* Generate a file called <code>argfile</code> (or <code>files</code>, depending on the JDK) to hold files and add
4169+
* the <code>@argfile</code> (or <code>@file</code>, depending on the JDK) in the command line.
41704170
*
41714171
* @param cmd not null
41724172
* @param javadocOutputDirectory not null
@@ -4392,7 +4392,7 @@ private void addJavadocOptions(
43924392
if (aggregatedProject != null && !"pom".equals(aggregatedProject.getPackaging())) {
43934393
ResolvePathResult result = null;
43944394

4395-
// Prefer jar over outputDirectory, since it may may contain an automatic module name
4395+
// Prefer jar over outputDirectory, since it may contain an automatic module name
43964396
File artifactFile = getClassesFile(aggregatedProject);
43974397
if (artifactFile != null) {
43984398
ResolvePathRequest<File> request = ResolvePathRequest.ofFile(artifactFile);
@@ -5402,7 +5402,7 @@ private List<OfflineLink> getModulesLinks() throws MavenReportException {
54025402
throw new MavenReportException(e.getMessage(), e);
54035403
}
54045404
} finally {
5405-
// just create the directory to prevent repeated invocations..
5405+
// just create the directory to prevent repeated invocations.
54065406
if (!location.exists()) {
54075407
getLog().warn("Creating fake javadoc directory to prevent repeated invocations: " + location);
54085408
location.mkdirs();

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ protected static List<String> pruneFiles(Collection<String> files) {
180180
* Determine whether a file should be excluded from the provided list of paths, based on whether it exists and is
181181
* already present in the list.
182182
*
183-
* @param f The files.
184-
* @param pruned The list of pruned files..
185-
* @return true if the file could be pruned false otherwise.
183+
* @param f the files
184+
* @param pruned the list of pruned files
185+
* @return true if the file could be pruned, false otherwise
186186
*/
187187
public static boolean shouldPruneFile(String f, List<String> pruned) {
188188
if (f != null) {
@@ -573,7 +573,7 @@ protected static String extractJavadocVersion(String output) {
573573

574574
/**
575575
* Parse a memory string which be used in the JVM arguments <code>-Xms</code> or <code>-Xmx</code>. <br>
576-
* Here are some supported memory string depending the JDK used:
576+
* Here are some supported memory string depending on the JDK used:
577577
* <table><caption>Memory argument support per JDK</caption>
578578
* <tr>
579579
* <th>JDK</th>
@@ -639,7 +639,7 @@ protected static String parseJavadocMemory(String memory) {
639639
/**
640640
* Validate if a charset is supported on this platform.
641641
*
642-
* @param charsetName the charsetName to be check.
642+
* @param charsetName the charsetName to check
643643
* @return <code>true</code> if the given charset is supported by the JVM, <code>false</code> otherwise.
644644
*/
645645
protected static boolean validateEncoding(String charsetName) {
@@ -874,7 +874,7 @@ protected static String readFile(final File javaFile, final String encoding) {
874874
}
875875

876876
/**
877-
* Split the given path with colon and semi-colon, to support Solaris and Windows path. Examples:
877+
* Split the given path with colon and semicolon, to support Unix and Windows paths. Examples:
878878
*
879879
* <pre>
880880
* splitPath( "/home:/tmp" ) = ["/home", "/tmp"]
@@ -1132,7 +1132,7 @@ private static class PathTokenizer {
11321132
private String lookahead = null;
11331133

11341134
/**
1135-
* Flag to indicate whether or not we are running on a platform with a DOS style filesystem
1135+
* Flag to indicate whether we are running on a platform with a DOS style filesystem
11361136
*/
11371137
private boolean dosStyleFilesystem;
11381138

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class StaleHelper {
4343
/**
4444
* Compute the encoding of the stale javadoc
4545
*
46-
* @return the the encoding of the stale data
46+
* @return the encoding of the stale data
4747
*/
4848
private static Charset getDataCharset() {
4949
if (JavaVersion.JAVA_SPECIFICATION_VERSION.isAtLeast("9")

0 commit comments

Comments
 (0)