diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java index 4fac3b0fa..cbbcdcfa2 100644 --- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java +++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java @@ -99,7 +99,7 @@ public class ConcurrentTransactionTests { /** * This datasource configuration configures the HSQLDB instance using MVCC. When - * configurd using the default behavior, transaction serialization errors are + * configured using the default behavior, transaction serialization errors are * thrown (default configuration example below). * * return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder(). diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java index c39dd497a..82eee1036 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java @@ -29,8 +29,8 @@ public class SkipListenerAdapter implements SkipListener { 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; } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/BatchParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/BatchParser.java index c76faa164..5b784887b 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/BatchParser.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/BatchParser.java @@ -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"); } } } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobLauncher.java b/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobLauncher.java index b59b8d723..b65687372 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobLauncher.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobLauncher.java @@ -173,7 +173,7 @@ public class SimpleJobLauncher implements JobLauncher, InitializingBean { } /** - * Set the JobRepsitory. + * Set the JobRepository. * * @param jobRepository instance of {@link JobRepository}. */ diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/XStreamExecutionContextStringSerializer.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/XStreamExecutionContextStringSerializer.java index e7c0dddbc..e753e5ef7 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/XStreamExecutionContextStringSerializer.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/XStreamExecutionContextStringSerializer.java @@ -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 diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/partition/support/SimpleStepExecutionSplitterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/partition/support/SimpleStepExecutionSplitterTests.java index 42196a724..470cc5630 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/partition/support/SimpleStepExecutionSplitterTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/partition/support/SimpleStepExecutionSplitterTests.java @@ -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 split = provider.split(stepExecution, 2); diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractJobDaoTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractJobDaoTests.java index 6d60135ae..3cdbb06fd 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractJobDaoTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractJobDaoTests.java @@ -197,7 +197,7 @@ public abstract class AbstractJobDaoTests { } @Transactional @Test - public void testUpdateNullIdJobExection() { + public void testUpdateNullIdJobExecution() { JobExecution execution = new JobExecution(jobInstance, jobParameters); try { diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java index db9372531..becba0df7 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java @@ -122,13 +122,13 @@ public class RepositoryItemWriterBuilder { * not be final. */ public static class RepositoryMethodReference { - private RepositoryItemWriterBuilder.RepositoryMethodIterceptor repositoryInvocationHandler; + private RepositoryMethodInterceptor repositoryInvocationHandler; private CrudRepository repository; public RepositoryMethodReference(CrudRepository repository) { this.repository = repository; - this.repositoryInvocationHandler = new RepositoryItemWriterBuilder.RepositoryMethodIterceptor(); + this.repositoryInvocationHandler = new RepositoryMethodInterceptor(); } /** @@ -152,7 +152,7 @@ public class RepositoryItemWriterBuilder { } } - private static class RepositoryMethodIterceptor implements MethodInterceptor { + private static class RepositoryMethodInterceptor implements MethodInterceptor { private String methodName; @Override diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractCursorItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractCursorItemReader.java index 2c4aead01..3dae2dcb7 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractCursorItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractCursorItemReader.java @@ -374,7 +374,7 @@ implements InitializingBean { public abstract String getSql(); /** - * Check the result set is in synch with the currentRow attribute. This is + * Check the result set is in sync with the currentRow attribute. This is * important to ensure that the user hasn't modified the current row. */ private void verifyCursorPosition(long expectedCurrentRow) throws SQLException { @@ -485,7 +485,7 @@ implements InitializingBean { /** * Read the cursor and map to the type of object this reader should return. This method must be - * overriden by subclasses. + * overridden by subclasses. * * @param rs The current result set * @param currentRow Current position of the result set diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java index a918aa12a..65011a37c 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java @@ -143,7 +143,7 @@ public class MultiResourceItemWriter extends AbstractItemStreamItemWriter @Override public void close() throws ItemStreamException { - super.close(); + super.close(); resourceIndex = 1; currentResourceItemCount = 0; if (opened) { @@ -153,7 +153,7 @@ public class MultiResourceItemWriter extends AbstractItemStreamItemWriter @Override public void open(ExecutionContext executionContext) throws ItemStreamException { - super.open(executionContext); + super.open(executionContext); resourceIndex = executionContext.getInt(getExecutionContextKey(RESOURCE_INDEX_KEY), 1); currentResourceItemCount = executionContext.getInt(getExecutionContextKey(CURRENT_RESOURCE_ITEM_COUNT), 0); @@ -176,7 +176,7 @@ public class MultiResourceItemWriter extends AbstractItemStreamItemWriter @Override public void update(ExecutionContext executionContext) throws ItemStreamException { - super.update(executionContext); + super.update(executionContext); if (saveState) { if (opened) { delegate.update(executionContext); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/CompositeExceptionHandler.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/CompositeExceptionHandler.java index 7f3748ce0..ee4e32f96 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/CompositeExceptionHandler.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/CompositeExceptionHandler.java @@ -21,7 +21,7 @@ import java.util.Arrays; import org.springframework.batch.repeat.RepeatContext; /** - * Composiste {@link ExceptionHandler} that loops though a list of delegates. + * Composite {@link ExceptionHandler} that loops though a list of delegates. * * @author Dave Syer * diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/interceptor/RepeatOperationsInterceptor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/interceptor/RepeatOperationsInterceptor.java index d0e1de1f2..d035492e8 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/interceptor/RepeatOperationsInterceptor.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/interceptor/RepeatOperationsInterceptor.java @@ -47,12 +47,12 @@ public class RepeatOperationsInterceptor implements MethodInterceptor { /** * Setter for the {@link RepeatOperations}. * - * @param batchTempate template to be used + * @param batchTemplate template to be used * @throws IllegalArgumentException if the argument is null. */ - public void setRepeatOperations(RepeatOperations batchTempate) { - Assert.notNull(batchTempate, "'repeatOperations' cannot be null."); - this.repeatOperations = batchTempate; + public void setRepeatOperations(RepeatOperations batchTemplate) { + Assert.notNull(batchTemplate, "'repeatOperations' cannot be null."); + this.repeatOperations = batchTemplate; } /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/TimeoutTerminationPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/TimeoutTerminationPolicy.java index 597aafa3d..9c4fc9a3a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/TimeoutTerminationPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/TimeoutTerminationPolicy.java @@ -52,7 +52,7 @@ public class TimeoutTerminationPolicy extends CompletionPolicySupport { * Construct a {@link TimeoutTerminationPolicy} with the specified timeout * value (in milliseconds). * - * @param timeout durration of the timeout. + * @param timeout duration of the timeout. */ public TimeoutTerminationPolicy(long timeout) { super(); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilderTests.java index 72bc9f718..6c6e6308d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilderTests.java @@ -85,7 +85,7 @@ public class RepositoryItemWriterBuilderTests { } @Test - public void testWriteItemsTestRepsository() throws Exception { + public void testWriteItemsTestRepository() throws Exception { RepositoryItemWriter writer = new RepositoryItemWriterBuilder() .methodName("foo") .repository(this.repository) @@ -99,7 +99,7 @@ public class RepositoryItemWriterBuilderTests { } @Test - public void testWriteItemsTestRepsositoryMethodIs() throws Exception { + public void testWriteItemsTestRepositoryMethodIs() throws Exception { RepositoryItemWriterBuilder.RepositoryMethodReference repositoryMethodReference = new RepositoryItemWriterBuilder.RepositoryMethodReference<>( this.repository); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemProcessorTests.java index 05afe9a9d..e42ba1daf 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemProcessorTests.java @@ -61,12 +61,12 @@ public class CompositeItemProcessorTests { @Test public void testTransform() throws Exception { Object item = new Object(); - Object itemAfterFirstTransfromation = new Object(); + Object itemAfterFirstTransformation = new Object(); Object itemAfterSecondTransformation = new Object(); - when(processor1.process(item)).thenReturn(itemAfterFirstTransfromation); + when(processor1.process(item)).thenReturn(itemAfterFirstTransformation); - when(processor2.process(itemAfterFirstTransfromation)).thenReturn(itemAfterSecondTransformation); + when(processor2.process(itemAfterFirstTransformation)).thenReturn(itemAfterSecondTransformation); assertSame(itemAfterSecondTransformation, composite.process(item)); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/CompositeItemProcessorBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/CompositeItemProcessorBuilderTests.java index 9b2c49518..917c30116 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/CompositeItemProcessorBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/CompositeItemProcessorBuilderTests.java @@ -57,13 +57,13 @@ public class CompositeItemProcessorBuilderTests { @Test public void testTransform() throws Exception { Object item = new Object(); - Object itemAfterFirstTransfromation = new Object(); + Object itemAfterFirstTransformation = new Object(); Object itemAfterSecondTransformation = new Object(); CompositeItemProcessor composite = new CompositeItemProcessorBuilder<>() .delegates(this.processors).build(); - when(processor1.process(item)).thenReturn(itemAfterFirstTransfromation); - when(processor2.process(itemAfterFirstTransfromation)).thenReturn(itemAfterSecondTransformation); + when(processor1.process(item)).thenReturn(itemAfterFirstTransformation); + when(processor2.process(itemAfterFirstTransformation)).thenReturn(itemAfterSecondTransformation); assertSame(itemAfterSecondTransformation, composite.process(item)); } diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemReaderTests.java index cabc4a2d4..daf1346ca 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemReaderTests.java @@ -94,7 +94,7 @@ public class StaxEventItemReaderTests { @Before public void setUp() throws Exception { this.executionContext = new ExecutionContext(); - source = createNewInputSouce(); + source = createNewInputSource(); } @Test @@ -105,7 +105,7 @@ public class StaxEventItemReaderTests { @Test public void testAfterPropertesSetException() throws Exception { - source = createNewInputSouce(); + source = createNewInputSource(); source.setFragmentRootElementName(""); try { source.afterPropertiesSet(); @@ -115,7 +115,7 @@ public class StaxEventItemReaderTests { // expected } - source = createNewInputSouce(); + source = createNewInputSource(); source.setUnmarshaller(null); try { source.afterPropertiesSet(); @@ -144,7 +144,7 @@ public class StaxEventItemReaderTests { @Test public void testItemCountAwareFragment() throws Exception { - StaxEventItemReader source = createNewItemCountAwareInputSouce(); + StaxEventItemReader source = createNewItemCountAwareInputSource(); source.afterPropertiesSet(); source.open(executionContext); assertEquals(1, source.read().getItemCount()); @@ -156,13 +156,13 @@ public class StaxEventItemReaderTests { @Test public void testItemCountAwareFragmentRestart() throws Exception { - StaxEventItemReader source = createNewItemCountAwareInputSouce(); + StaxEventItemReader source = createNewItemCountAwareInputSource(); source.afterPropertiesSet(); source.open(executionContext); assertEquals(1, source.read().getItemCount()); source.update(executionContext); source.close(); - source = createNewItemCountAwareInputSouce(); + source = createNewItemCountAwareInputSource(); source.afterPropertiesSet(); source.open(executionContext); assertEquals(2, source.read().getItemCount()); @@ -267,7 +267,7 @@ public class StaxEventItemReaderTests { source.close(); - source = createNewInputSouce(); + source = createNewInputSource(); source.setResource(new ByteArrayResource(xmlMultiFragment.getBytes())); source.setFragmentRootElementNames(MULTI_FRAGMENT_ROOT_ELEMENTS); source.afterPropertiesSet(); @@ -311,7 +311,7 @@ public class StaxEventItemReaderTests { source.close(); - source = createNewInputSouce(); + source = createNewInputSource(); source.setResource(new ByteArrayResource(xmlMultiFragment.getBytes())); source.setFragmentRootElementNames(MULTI_FRAGMENT_ROOT_ELEMENTS); source.afterPropertiesSet(); @@ -374,7 +374,7 @@ public class StaxEventItemReaderTests { assertEquals(1, executionContext.getInt(ClassUtils.getShortName(StaxEventItemReader.class) + ".read.count")); List expectedAfterRestart = source.read(); - source = createNewInputSouce(); + source = createNewInputSource(); source.open(executionContext); List afterRestart = source.read(); assertEquals(expectedAfterRestart.size(), afterRestart.size()); @@ -396,7 +396,7 @@ public class StaxEventItemReaderTests { assertEquals(3, executionContext.getInt(ClassUtils.getShortName(StaxEventItemReader.class) + ".read.count")); - source = createNewInputSouce(); + source = createNewInputSource(); source.open(executionContext); assertNull(source.read()); } @@ -596,7 +596,7 @@ public class StaxEventItemReaderTests { } - private StaxEventItemReader> createNewInputSouce() { + private StaxEventItemReader> createNewInputSource() { Resource resource = new ByteArrayResource(xml.getBytes()); StaxEventItemReader> newSource = new StaxEventItemReader>(); @@ -609,7 +609,7 @@ public class StaxEventItemReaderTests { return newSource; } - private StaxEventItemReader createNewItemCountAwareInputSouce() { + private StaxEventItemReader createNewItemCountAwareInputSource() { Resource resource = new ByteArrayResource(xml.getBytes()); StaxEventItemReader newSource = new StaxEventItemReader(); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/ReflectionUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/ReflectionUtilsTests.java index 00f3ece6e..fb43a1ed7 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/ReflectionUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/ReflectionUtilsTests.java @@ -82,7 +82,7 @@ public class ReflectionUtilsTests { @Transactional public String toString() { - return "AnnoatedClass"; + return "AnnotatedClass"; } } diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/StagingItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/StagingItemWriter.java index 80068eaf7..9eccf4692 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/StagingItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/StagingItemWriter.java @@ -109,7 +109,7 @@ public class StagingItemWriter extends JdbcDaoSupport implements StepExecutio /* * (non-Javadoc) * - * @seeorg.springframework.batch.core.domain.StepListener#beforeStep(org. + * @see org.springframework.batch.core.domain.StepListener#beforeStep(org. * springframework.batch.core.domain.StepExecution) */ @Override