fix up code formatting and typo

This commit is contained in:
woniper
2018-05-16 07:51:36 +09:00
committed by Mahmoud Ben Hassine
parent 61bec2805d
commit c2b0a208c3
19 changed files with 47 additions and 47 deletions

View File

@@ -29,8 +29,8 @@ public class SkipListenerAdapter<T, S> implements SkipListener<T, S> {
private final SkipProcessListener skipProcessDelegate;
private final SkipWriteListener skipWriteDelegate;
public SkipListenerAdapter(SkipReadListener skipReadDelgate, SkipProcessListener skipProcessDelegate, SkipWriteListener skipWriteDelegate) {
this.skipReadDelegate = skipReadDelgate;
public SkipListenerAdapter(SkipReadListener skipReadDelegate, SkipProcessListener skipProcessDelegate, SkipWriteListener skipWriteDelegate) {
this.skipReadDelegate = skipReadDelegate;
this.skipProcessDelegate = skipProcessDelegate;
this.skipWriteDelegate = skipWriteDelegate;
}

View File

@@ -61,17 +61,17 @@ public class BatchParser extends AbstractBeanDefinitionParser {
if(beanElements.size() > 0) {
for (Element curElement : beanElements) {
AbstractBeanDefinition beanDefintion = BeanDefinitionBuilder.genericBeanDefinition(curElement.getAttribute("class"))
AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition(curElement.getAttribute("class"))
.getBeanDefinition();
beanDefintion.setScope("step");
beanDefinition.setScope("step");
String beanName = curElement.getAttribute("id");
if(!registry.containsBeanDefinition(beanName)) {
registry.registerBeanDefinition(beanName, beanDefintion);
registry.registerBeanDefinition(beanName, beanDefinition);
} else {
logger.info("Ignoring batch.xml bean defintion for " + beanName + " because another bean of the same name has been registered");
logger.info("Ignoring batch.xml bean definition for " + beanName + " because another bean of the same name has been registered");
}
}
}

View File

@@ -173,7 +173,7 @@ public class SimpleJobLauncher implements JobLauncher, InitializingBean {
}
/**
* Set the JobRepsitory.
* Set the JobRepository.
*
* @param jobRepository instance of {@link JobRepository}.
*/

View File

@@ -42,7 +42,7 @@ import org.springframework.util.Assert;
* @since 2.0
* @see ExecutionContextSerializer
* @deprecated Due to the incompattabilities between current Jettison versions and XStream
* versions, this serializer is depricated in favor of
* versions, this serializer is deprecated in favor of
* {@link Jackson2ExecutionContextStringSerializer}
*/
@Deprecated

View File

@@ -140,7 +140,7 @@ public class SimpleStepExecutionSplitterTests {
}
@Test
public void testUnkownStatus() throws Exception {
public void testUnknownStatus() throws Exception {
SimpleStepExecutionSplitter provider = new SimpleStepExecutionSplitter(jobRepository, true, step.getName(),
new SimplePartitioner());
Set<StepExecution> split = provider.split(stepExecution, 2);

View File

@@ -197,7 +197,7 @@ public abstract class AbstractJobDaoTests {
}
@Transactional @Test
public void testUpdateNullIdJobExection() {
public void testUpdateNullIdJobExecution() {
JobExecution execution = new JobExecution(jobInstance, jobParameters);
try {