You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by sg...@apache.org on 2008/04/23 22:42:41 UTC

svn commit: r651051 - /commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java

Author: sgoeschl
Date: Wed Apr 23 13:42:39 2008
New Revision: 651051

URL: http://svn.apache.org/viewvc?rev=651051&view=rev
Log:
Removing some left-overs from the last refactoring

Modified:
    commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java

Modified: commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java?rev=651051&r1=651050&r2=651051&view=diff
==============================================================================
--- commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java (original)
+++ commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java Wed Apr 23 13:42:39 2008
@@ -237,16 +237,15 @@
      */
     protected Process launch(final CommandLine command, final Map env,
             final File dir) throws IOException {
-        CommandLauncher launcher = this.launcher;
 
-        if (launcher == null) {
+        if (this.launcher == null) {
             throw new IllegalStateException("CommandLauncher can not be null");
         }
 
         if (dir != null && !dir.exists()) {
             throw new IOException(dir + " doesn't exist.");
         }
-        return launcher.exec(command, env, dir);
+        return this.launcher.exec(command, env, dir);
     }
 
     /**