BATCH-2235: Updated ExitStatus#isRunning logic to use correct strings

This commit is contained in:
Michael Minella
2014-05-21 16:54:10 -05:00
parent 0337cd8d74
commit ff43ceb85e

View File

@@ -15,12 +15,12 @@
*/
package org.springframework.batch.core;
import org.springframework.util.StringUtils;
import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter;
import org.springframework.util.StringUtils;
/**
* Value object used to carry information about the status of a
* job or step execution.
@@ -226,10 +226,10 @@ public class ExitStatus implements Serializable, Comparable<ExitStatus> {
/**
* Check if this status represents a running process.
*
* @return true if the exit code is "RUNNING" or "UNKNOWN"
* @return true if the exit code is "EXECUTING" or "UNKNOWN"
*/
public boolean isRunning() {
return "RUNNING".equals(this.exitCode) || "UNKNOWN".equals(this.exitCode);
return "EXECUTING".equals(this.exitCode) || "UNKNOWN".equals(this.exitCode);
}
/**