Author: sebb
Date: Tue Oct  5 21:05:44 2010
New Revision: 1004813

URL: http://svn.apache.org/viewvc?rev=1004813&view=rev
Log:
Rename private static constant, as it was confusing that it used the same name 
as the protected
variable used to hold the current OS environment in the 
xxxProcessingEnvironment classes

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=1004813&r1=1004812&r2=1004813&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
 Tue Oct  5 21:05:44 2010
@@ -30,13 +30,13 @@ import org.apache.commons.exec.OS;
 public class EnvironmentUtils
 {
 
-       private static final DefaultProcessingEnvironment procEnvironment;
+       private static final DefaultProcessingEnvironment 
PROCESSING_ENVIRONMENT_IMPLEMENTATION;
        
        static {
         if (OS.isFamilyOpenVms()) {
-               procEnvironment = new OpenVmsProcessingEnvironment();
+               PROCESSING_ENVIRONMENT_IMPLEMENTATION = new 
OpenVmsProcessingEnvironment();
         } else {
-               procEnvironment = new DefaultProcessingEnvironment();
+               PROCESSING_ENVIRONMENT_IMPLEMENTATION = new 
DefaultProcessingEnvironment();
         }
        }
        
@@ -79,7 +79,7 @@ public class EnvironmentUtils
      * @throws IOException the operation failed
      */
     public static Map getProcEnvironment() throws IOException {
-       return procEnvironment.getProcEnvironment();
+       return PROCESSING_ENVIRONMENT_IMPLEMENTATION.getProcEnvironment();
     }
 
     /**


Reply via email to