commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r747013 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/environment/EnvironmentUtils.java
Date Mon, 23 Feb 2009 13:37:44 GMT
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]);
 	}
     
     /**



Mime
View raw message