Skip to content

Commit a55e8bb

Browse files
committed
rewrite source code fix user messages for clarity
1 parent bc04d18 commit a55e8bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private boolean preCheck() throws MojoExecutionException {
569569
}
570570

571571
if (!settings.isInteractiveMode()) {
572-
getLog().error("Maven is not attempt to interact with the user for input. "
572+
getLog().error("Maven is not interacting with the user for input. "
573573
+ "Verify the <interactiveMode/> configuration in your settings.");
574574
return false;
575575
}
@@ -579,11 +579,11 @@ private boolean preCheck() throws MojoExecutionException {
579579
getLog().warn("");
580580
getLog().warn("All warranties with regard to this Maven goal are disclaimed!");
581581
getLog().warn("The changes will be done directly in the source code.");
582-
getLog().warn("The Maven Team strongly recommends the use of a SCM software BEFORE executing this goal.");
582+
getLog().warn("The Maven Team strongly recommends commiting the code to source code management BEFORE executing this goal.");
583583
getLog().warn("");
584584

585585
while (true) {
586-
getLog().info("Are you sure to proceed? [Y]es [N]o");
586+
getLog().info("Are you sure you want to proceed? [Y]es [N]o");
587587

588588
try {
589589
String userExpression = inputHandler.readLine();
@@ -592,7 +592,7 @@ private boolean preCheck() throws MojoExecutionException {
592592
break;
593593
}
594594
if (JavadocUtil.equalsIgnoreCase(userExpression, "N", "No")) {
595-
getLog().info("No changes in your sources occur.");
595+
getLog().info("OK, I will not change your source code.");
596596
return false;
597597
}
598598
} catch (IOException e) {
@@ -737,9 +737,9 @@ private void parseClirrTextOutputFile(File clirrTextOutputFile) throws IOExcepti
737737
}
738738
}
739739
if (clirrNewClasses.isEmpty() && clirrNewMethods.isEmpty()) {
740-
getLog().info("Clirr NOT found API differences.");
740+
getLog().info("Clirr did NOT find any API differences.");
741741
} else {
742-
getLog().info("Clirr found API differences, i.e. new classes/interfaces or methods.");
742+
getLog().info("Clirr found API differences; e.g. new classes, interfaces, or methods.");
743743
}
744744
}
745745

0 commit comments

Comments
 (0)