diff --git a/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java b/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java index 8dd49d538..18fbf1b26 100644 --- a/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java +++ b/execution/src/main/java/org/springframework/batch/execution/bootstrap/AbstractJobLauncher.java @@ -279,20 +279,20 @@ public abstract class AbstractJobLauncher implements JobLauncher, * * @see org.springframework.batch.container.bootstrap.BatchContainerLauncher#isRunning() */ - public boolean isRunning() { + final public boolean isRunning() { Collection jobs = new HashSet(registry.keySet()); for (Iterator iter = jobs.iterator(); iter.hasNext();) { - JobIdentifier context = (JobIdentifier) iter.next(); - if (!isRunning(context)) { + JobIdentifier jobIdentifier = (JobIdentifier) iter.next(); + if (!isRunning(jobIdentifier)) { return false; } } return !jobs.isEmpty(); } - protected boolean isRunning(JobIdentifier runtimeInformation) { + protected boolean isRunning(JobIdentifier jobIdentifier) { synchronized (registry) { - return registry.get(runtimeInformation) != null; + return registry.get(jobIdentifier) != null; } }