commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1553865 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
Date Sat, 28 Dec 2013 16:13:03 GMT
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);
         }
 



Mime
View raw message