commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r951973 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java
Date Sun, 06 Jun 2010 21:17:51 GMT
Author: sgoeschl
Date: Sun Jun  6 21:17:50 2010
New Revision: 951973

URL: http://svn.apache.org/viewvc?rev=951973&view=rev
Log:
[EXEC-42] fixing wrong javadoc

Modified:
    commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java

Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java?rev=951973&r1=951972&r2=951973&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java
(original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java
Sun Jun  6 21:17:50 2010
@@ -54,7 +54,7 @@ public class DefaultExecuteResultHandler
      * @return Returns the exception.
      */
     synchronized public ExecuteException getException() {
-        if(!hasResult) throw new IllegalStateException("The process has not exited yet ...");
+        if(!hasResult) throw new IllegalStateException("The process has not exited yet therefore
no result is available ...");
         return exception;
     }
 
@@ -62,14 +62,14 @@ public class DefaultExecuteResultHandler
      * @return Returns the exitValue.
      */
     synchronized public int getExitValue() {
-        if(!hasResult) throw new IllegalStateException("The process has not exited yet ...");
+        if(!hasResult) throw new IllegalStateException("The process has not exited yet therefore
no result is available ...");
         return exitValue;
     }
 
     /**
      * Has the process exited and a result is available?
      *
-     * @return true if the process might be still running
+     * @return true if a result of the execution is available
      */
     synchronized public boolean hasResult() {
         return hasResult;



Mime
View raw message