You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/02/23 14:37:44 UTC
svn commit: r747013 -
/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java
Author: sebb
Date: Mon Feb 23 13:37:43 2009
New Revision: 747013
URL: http://svn.apache.org/viewvc?rev=747013&view=rev
Log:
Update Javadoc. Fix local variable name typo.
Modified:
commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java
Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java?rev=747013&r1=747012&r2=747013&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java (original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java Mon Feb 23 13:37:43 2009
@@ -84,13 +84,14 @@
/**
* Add a key/value pair to the given environment.
+ * If the key matches an existing key, the previous setting is replaced.
*
* @param environment the current environment
* @param keyAndValue the key/value pair
*/
public static void addVariableToEnvironment(Map environment, String keyAndValue) {
- String[] parsedVarible = parseEnvironmentVariable(keyAndValue);
- environment.put(parsedVarible[0], parsedVarible[1]);
+ String[] parsedVariable = parseEnvironmentVariable(keyAndValue);
+ environment.put(parsedVariable[0], parsedVariable[1]);
}
/**