You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/12/28 17:13:03 UTC
svn commit: r1553865 -
/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
Author: ggregory
Date: Sat Dec 28 16:13:03 2013
New Revision: 1553865
URL: http://svn.apache.org/r1553865
Log:
The parameter arguments is hiding a field from type CommandLine.
Modified:
commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java?rev=1553865&r1=1553864&r2=1553865&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java (original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java Sat Dec 28 16:13:03 2013
@@ -158,24 +158,24 @@ public class CommandLine {
/**
* Add multiple arguments. Handles parsing of quotes and whitespace.
*
- * @param arguments An array of arguments
+ * @param addArguments An array of arguments
* @return The command line itself
*/
- public CommandLine addArguments(final String[] arguments) {
- return this.addArguments(arguments, true);
+ public CommandLine addArguments(final String[] addArguments) {
+ return this.addArguments(addArguments, true);
}
/**
* Add multiple arguments.
*
- * @param arguments An array of arguments
+ * @param addArguments An array of arguments
* @param handleQuoting Add the argument with/without handling quoting
* @return The command line itself
*/
- public CommandLine addArguments(final String[] arguments, final boolean handleQuoting) {
- if (arguments != null) {
- for (int i = 0; i < arguments.length; i++) {
- addArgument(arguments[i], handleQuoting);
+ public CommandLine addArguments(final String[] addArguments, final boolean handleQuoting) {
+ if (addArguments != null) {
+ for (int i = 0; i < addArguments.length; i++) {
+ addArgument(addArguments[i], handleQuoting);
}
}
@@ -187,11 +187,11 @@ public class CommandLine {
* Please note that the parsing can have undesired side-effects therefore
* it is recommended to build the command line incrementally.
*
- * @param arguments An string containing multiple arguments.
+ * @param addArguments An string containing multiple arguments.
* @return The command line itself
*/
- public CommandLine addArguments(final String arguments) {
- return this.addArguments(arguments, true);
+ public CommandLine addArguments(final String addArguments) {
+ return this.addArguments(addArguments, true);
}
/**
@@ -199,13 +199,13 @@ public class CommandLine {
* Please note that the parsing can have undesired side-effects therefore
* it is recommended to build the command line incrementally.
*
- * @param arguments An string containing multiple arguments.
+ * @param addArguments An string containing multiple arguments.
* @param handleQuoting Add the argument with/without handling quoting
* @return The command line itself
*/
- public CommandLine addArguments(final String arguments, final boolean handleQuoting) {
- if (arguments != null) {
- final String[] argumentsArray = translateCommandline(arguments);
+ public CommandLine addArguments(final String addArguments, final boolean handleQuoting) {
+ if (addArguments != null) {
+ final String[] argumentsArray = translateCommandline(addArguments);
addArguments(argumentsArray, handleQuoting);
}