diff --git a/src/main/org/apache/tools/ant/BuildException.java b/src/main/org/apache/tools/ant/BuildException.java
index 30252406b..6dc2c12f9 100644
--- a/src/main/org/apache/tools/ant/BuildException.java
+++ b/src/main/org/apache/tools/ant/BuildException.java
@@ -74,15 +74,15 @@ public class BuildException extends RuntimeException {
* Constructs an exception with the given message and exception as
* a root cause and a location in a file.
*
- * @param msg A description of or information about the exception.
- * Should not be null
unless a cause is specified.
+ * @param message A description of or information about the exception.
+ * Should not be null
unless a cause is specified.
* @param cause The exception that might have caused this one.
* May be null
.
* @param location The location in the project file where the error
* occurred. Must not be null
.
*/
- public BuildException(String msg, Throwable cause, Location location) {
- this(msg, cause);
+ public BuildException(String message, Throwable cause, Location location) {
+ this(message, cause);
this.location = location;
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/Checksum.java b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
index 7bf9fd16c..2faf92ee4 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Checksum.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Checksum.java
@@ -262,12 +262,12 @@ public class Checksum extends MatchingTask implements Condition {
* Specify the pattern to use as a MessageFormat pattern.
*
*
{0} gets replaced by the checksum, {1} by the filename.
- * @param p aString
value
+ * @param pattern a String
value
*
* @since 1.7.0
*/
- public void setPattern(String p) {
- format = new MessageFormat(p);
+ public void setPattern(String pattern) {
+ format = new MessageFormat(pattern);
}
/**
diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/Equals.java b/src/main/org/apache/tools/ant/taskdefs/condition/Equals.java
index db0313a3b..44e3561fa 100644
--- a/src/main/org/apache/tools/ant/taskdefs/condition/Equals.java
+++ b/src/main/org/apache/tools/ant/taskdefs/condition/Equals.java
@@ -50,10 +50,10 @@ public class Equals implements Condition {
/**
* Set the first string
*
- * @param a1 the first string
+ * @param arg1 the first string
*/
- public void setArg1(String a1) {
- setArg1Internal(a1);
+ public void setArg1(String arg1) {
+ setArg1Internal(arg1);
}
private void setArg1Internal(Object arg1) {
@@ -77,10 +77,10 @@ public class Equals implements Condition {
/**
* Set the second string
*
- * @param a2 the second string
+ * @param arg2 the second string
*/
- public void setArg2(String a2) {
- setArg2Internal(a2);
+ public void setArg2(String arg2) {
+ setArg2Internal(arg2);
}
private void setArg2Internal(Object arg2) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java
index 16bc74d83..2aa42cd50 100644
--- a/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java
+++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java
@@ -26,8 +26,8 @@ class RCSFile {
private String revision;
private String previousRevision;
- RCSFile(final String name, final String rev) {
- this(name, rev, null);
+ RCSFile(final String name, final String revision) {
+ this(name, revision, null);
}
RCSFile(final String name,
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
index f914b1751..4370bdcd6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
@@ -713,15 +713,15 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
logTestListenerEvent("endTest(" + testName + ")");
}
- private void logTestListenerEvent(String msg) {
+ private void logTestListenerEvent(String message) {
if (logTestListenerEvents) {
@SuppressWarnings("resource")
final PrintStream out = savedOut != null ? savedOut : System.out;
out.flush();
- final StringTokenizer msgLines =
- new StringTokenizer(String.valueOf(msg), "\r\n", false);
- while (msgLines.hasMoreTokens()) {
- out.println(JUnitTask.TESTLISTENER_PREFIX + msgLines.nextToken());
+ final StringTokenizer messageLines =
+ new StringTokenizer(String.valueOf(message), "\r\n", false);
+ while (messageLines.hasMoreTokens()) {
+ out.println(JUnitTask.TESTLISTENER_PREFIX + messageLines.nextToken());
}
out.flush();
}
@@ -1241,9 +1241,9 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR
// JUnit 4-specific test GUIs will show just "failures".
// But Ant's output shows "failures" vs. "errors".
// We would prefer to show "failure" for things that logically are.
- final String msg = t.getMessage();
- final AssertionFailedError failure = msg != null
- ? new AssertionFailedError(msg) : new AssertionFailedError();
+ final String message = t.getMessage();
+ final AssertionFailedError failure = message != null
+ ? new AssertionFailedError(message) : new AssertionFailedError();
failure.initCause(t.getCause());
failure.setStackTrace(t.getStackTrace());
testListener.addFailure(test, failure);
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
index a61ad16d6..54d6811ba 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
@@ -203,20 +203,20 @@ public class Symlink extends DispatchTask {
return;
}
final Properties links = loadLinks(fileSets);
- for (final String lnk : links.stringPropertyNames()) {
- final String res = links.getProperty(lnk);
+ for (final String link : links.stringPropertyNames()) {
+ final String resource = links.getProperty(link);
try {
- if (Files.isSymbolicLink(Paths.get(lnk)) &&
- new File(lnk).getCanonicalPath().equals(new File(res).getCanonicalPath())) {
+ if (Files.isSymbolicLink(Paths.get(link)) &&
+ new File(link).getCanonicalPath().equals(new File(resource).getCanonicalPath())) {
// it's already a symlink and the symlink target is the same
// as the target noted in the properties file. So there's no
// need to recreate it
- log("not recreating " + lnk + " as it points to the correct target already",
+ log("not recreating " + link + " as it points to the correct target already",
Project.MSG_DEBUG);
continue;
}
} catch (IOException e) {
- final String errMessage = "Failed to check if path " + lnk + " is a symbolic link, linking to " + res;
+ final String errMessage = "Failed to check if path " + link + " is a symbolic link, linking to " + resource;
if (failonerror) {
throw new BuildException(errMessage, e);
}
@@ -225,7 +225,7 @@ public class Symlink extends DispatchTask {
continue;
}
// create the link
- this.doLink(res, lnk);
+ this.doLink(resource, link);
}
} finally {
setDefaults();
@@ -251,18 +251,18 @@ public class Symlink extends DispatchTask {
Map