Skip to content

Commit 90627e2

Browse files
woniperfmbenhassine
authored andcommitted
fix up code formatting and typo
1 parent 8748fff commit 90627e2

File tree

19 files changed

+47
-47
lines changed

19 files changed

+47
-47
lines changed

spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public TaskExecutor taskExecutor() {
9999

100100
/**
101101
* This datasource configuration configures the HSQLDB instance using MVCC. When
102-
* configurd using the default behavior, transaction serialization errors are
102+
* configured using the default behavior, transaction serialization errors are
103103
* thrown (default configuration example below).
104104
*
105105
* return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder().

spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public class SkipListenerAdapter<T, S> implements SkipListener<T, S> {
2929
private final SkipProcessListener skipProcessDelegate;
3030
private final SkipWriteListener skipWriteDelegate;
3131

32-
public SkipListenerAdapter(SkipReadListener skipReadDelgate, SkipProcessListener skipProcessDelegate, SkipWriteListener skipWriteDelegate) {
33-
this.skipReadDelegate = skipReadDelgate;
32+
public SkipListenerAdapter(SkipReadListener skipReadDelegate, SkipProcessListener skipProcessDelegate, SkipWriteListener skipWriteDelegate) {
33+
this.skipReadDelegate = skipReadDelegate;
3434
this.skipProcessDelegate = skipProcessDelegate;
3535
this.skipWriteDelegate = skipWriteDelegate;
3636
}

spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/BatchParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ private void parseRefElements(Element element,
6161

6262
if(beanElements.size() > 0) {
6363
for (Element curElement : beanElements) {
64-
AbstractBeanDefinition beanDefintion = BeanDefinitionBuilder.genericBeanDefinition(curElement.getAttribute("class"))
64+
AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition(curElement.getAttribute("class"))
6565
.getBeanDefinition();
6666

67-
beanDefintion.setScope("step");
67+
beanDefinition.setScope("step");
6868

6969
String beanName = curElement.getAttribute("id");
7070

7171
if(!registry.containsBeanDefinition(beanName)) {
72-
registry.registerBeanDefinition(beanName, beanDefintion);
72+
registry.registerBeanDefinition(beanName, beanDefinition);
7373
} else {
74-
logger.info("Ignoring batch.xml bean defintion for " + beanName + " because another bean of the same name has been registered");
74+
logger.info("Ignoring batch.xml bean definition for " + beanName + " because another bean of the same name has been registered");
7575
}
7676
}
7777
}

spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ else if (t instanceof Error) {
173173
}
174174

175175
/**
176-
* Set the JobRepsitory.
176+
* Set the JobRepository.
177177
*
178178
* @param jobRepository instance of {@link JobRepository}.
179179
*/

spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/XStreamExecutionContextStringSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @since 2.0
4343
* @see ExecutionContextSerializer
4444
* @deprecated Due to the incompattabilities between current Jettison versions and XStream
45-
* versions, this serializer is depricated in favor of
45+
* versions, this serializer is deprecated in favor of
4646
* {@link Jackson2ExecutionContextStringSerializer}
4747
*/
4848
@Deprecated

spring-batch-core/src/test/java/org/springframework/batch/core/partition/support/SimpleStepExecutionSplitterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void testGetStepName() {
140140
}
141141

142142
@Test
143-
public void testUnkownStatus() throws Exception {
143+
public void testUnknownStatus() throws Exception {
144144
SimpleStepExecutionSplitter provider = new SimpleStepExecutionSplitter(jobRepository, true, step.getName(),
145145
new SimplePartitioner());
146146
Set<StepExecution> split = provider.split(stepExecution, 2);

spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractJobDaoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void testUpdateInvalidJobExecution() {
197197
}
198198

199199
@Transactional @Test
200-
public void testUpdateNullIdJobExection() {
200+
public void testUpdateNullIdJobExecution() {
201201

202202
JobExecution execution = new JobExecution(jobInstance, jobParameters);
203203
try {

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ public RepositoryItemWriter<T> build() {
122122
* not be final.
123123
*/
124124
public static class RepositoryMethodReference<T> {
125-
private RepositoryItemWriterBuilder.RepositoryMethodIterceptor repositoryInvocationHandler;
125+
private RepositoryMethodInterceptor repositoryInvocationHandler;
126126

127127
private CrudRepository<?, ?> repository;
128128

129129
public RepositoryMethodReference(CrudRepository<?, ?> repository) {
130130
this.repository = repository;
131-
this.repositoryInvocationHandler = new RepositoryItemWriterBuilder.RepositoryMethodIterceptor();
131+
this.repositoryInvocationHandler = new RepositoryMethodInterceptor();
132132
}
133133

134134
/**
@@ -152,7 +152,7 @@ String getMethodName() {
152152
}
153153
}
154154

155-
private static class RepositoryMethodIterceptor implements MethodInterceptor {
155+
private static class RepositoryMethodInterceptor implements MethodInterceptor {
156156
private String methodName;
157157

158158
@Override

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/AbstractCursorItemReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public void setConnectionAutoCommit(boolean autoCommit) {
374374
public abstract String getSql();
375375

376376
/**
377-
* Check the result set is in synch with the currentRow attribute. This is
377+
* Check the result set is in sync with the currentRow attribute. This is
378378
* important to ensure that the user hasn't modified the current row.
379379
*/
380380
private void verifyCursorPosition(long expectedCurrentRow) throws SQLException {
@@ -485,7 +485,7 @@ protected T doRead() throws Exception {
485485

486486
/**
487487
* Read the cursor and map to the type of object this reader should return. This method must be
488-
* overriden by subclasses.
488+
* overridden by subclasses.
489489
*
490490
* @param rs The current result set
491491
* @param currentRow Current position of the result set

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/MultiResourceItemWriter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void setSaveState(boolean saveState) {
143143

144144
@Override
145145
public void close() throws ItemStreamException {
146-
super.close();
146+
super.close();
147147
resourceIndex = 1;
148148
currentResourceItemCount = 0;
149149
if (opened) {
@@ -153,7 +153,7 @@ public void close() throws ItemStreamException {
153153

154154
@Override
155155
public void open(ExecutionContext executionContext) throws ItemStreamException {
156-
super.open(executionContext);
156+
super.open(executionContext);
157157
resourceIndex = executionContext.getInt(getExecutionContextKey(RESOURCE_INDEX_KEY), 1);
158158
currentResourceItemCount = executionContext.getInt(getExecutionContextKey(CURRENT_RESOURCE_ITEM_COUNT), 0);
159159

@@ -176,7 +176,7 @@ public void open(ExecutionContext executionContext) throws ItemStreamException {
176176

177177
@Override
178178
public void update(ExecutionContext executionContext) throws ItemStreamException {
179-
super.update(executionContext);
179+
super.update(executionContext);
180180
if (saveState) {
181181
if (opened) {
182182
delegate.update(executionContext);

spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/exception/CompositeExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.springframework.batch.repeat.RepeatContext;
2222

2323
/**
24-
* Composiste {@link ExceptionHandler} that loops though a list of delegates.
24+
* Composite {@link ExceptionHandler} that loops though a list of delegates.
2525
*
2626
* @author Dave Syer
2727
*

spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/interceptor/RepeatOperationsInterceptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public class RepeatOperationsInterceptor implements MethodInterceptor {
4747
/**
4848
* Setter for the {@link RepeatOperations}.
4949
*
50-
* @param batchTempate template to be used
50+
* @param batchTemplate template to be used
5151
* @throws IllegalArgumentException if the argument is null.
5252
*/
53-
public void setRepeatOperations(RepeatOperations batchTempate) {
54-
Assert.notNull(batchTempate, "'repeatOperations' cannot be null.");
55-
this.repeatOperations = batchTempate;
53+
public void setRepeatOperations(RepeatOperations batchTemplate) {
54+
Assert.notNull(batchTemplate, "'repeatOperations' cannot be null.");
55+
this.repeatOperations = batchTemplate;
5656
}
5757

5858
/**

spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/policy/TimeoutTerminationPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public TimeoutTerminationPolicy() {
5252
* Construct a {@link TimeoutTerminationPolicy} with the specified timeout
5353
* value (in milliseconds).
5454
*
55-
* @param timeout durration of the timeout.
55+
* @param timeout duration of the timeout.
5656
*/
5757
public TimeoutTerminationPolicy(long timeout) {
5858
super();

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/builder/RepositoryItemWriterBuilderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void testWriteItems() throws Exception {
8585
}
8686

8787
@Test
88-
public void testWriteItemsTestRepsository() throws Exception {
88+
public void testWriteItemsTestRepository() throws Exception {
8989
RepositoryItemWriter<String> writer = new RepositoryItemWriterBuilder<String>()
9090
.methodName("foo")
9191
.repository(this.repository)
@@ -99,7 +99,7 @@ public void testWriteItemsTestRepsository() throws Exception {
9999
}
100100

101101
@Test
102-
public void testWriteItemsTestRepsositoryMethodIs() throws Exception {
102+
public void testWriteItemsTestRepositoryMethodIs() throws Exception {
103103
RepositoryItemWriterBuilder.RepositoryMethodReference<TestRepository>
104104
repositoryMethodReference = new RepositoryItemWriterBuilder.RepositoryMethodReference<>(
105105
this.repository);

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemProcessorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ public void setUp() throws Exception {
6161
@Test
6262
public void testTransform() throws Exception {
6363
Object item = new Object();
64-
Object itemAfterFirstTransfromation = new Object();
64+
Object itemAfterFirstTransformation = new Object();
6565
Object itemAfterSecondTransformation = new Object();
6666

67-
when(processor1.process(item)).thenReturn(itemAfterFirstTransfromation);
67+
when(processor1.process(item)).thenReturn(itemAfterFirstTransformation);
6868

69-
when(processor2.process(itemAfterFirstTransfromation)).thenReturn(itemAfterSecondTransformation);
69+
when(processor2.process(itemAfterFirstTransformation)).thenReturn(itemAfterSecondTransformation);
7070

7171
assertSame(itemAfterSecondTransformation, composite.process(item));
7272

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/CompositeItemProcessorBuilderTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ public void setup() {
5757
@Test
5858
public void testTransform() throws Exception {
5959
Object item = new Object();
60-
Object itemAfterFirstTransfromation = new Object();
60+
Object itemAfterFirstTransformation = new Object();
6161
Object itemAfterSecondTransformation = new Object();
6262
CompositeItemProcessor<Object, Object> composite = new CompositeItemProcessorBuilder<>()
6363
.delegates(this.processors).build();
6464

65-
when(processor1.process(item)).thenReturn(itemAfterFirstTransfromation);
66-
when(processor2.process(itemAfterFirstTransfromation)).thenReturn(itemAfterSecondTransformation);
65+
when(processor1.process(item)).thenReturn(itemAfterFirstTransformation);
66+
when(processor2.process(itemAfterFirstTransformation)).thenReturn(itemAfterSecondTransformation);
6767

6868
assertSame(itemAfterSecondTransformation, composite.process(item));
6969
}

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemReaderTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class StaxEventItemReaderTests {
9494
@Before
9595
public void setUp() throws Exception {
9696
this.executionContext = new ExecutionContext();
97-
source = createNewInputSouce();
97+
source = createNewInputSource();
9898
}
9999

100100
@Test
@@ -105,7 +105,7 @@ public void testAfterPropertiesSet() throws Exception {
105105
@Test
106106
public void testAfterPropertesSetException() throws Exception {
107107

108-
source = createNewInputSouce();
108+
source = createNewInputSource();
109109
source.setFragmentRootElementName("");
110110
try {
111111
source.afterPropertiesSet();
@@ -115,7 +115,7 @@ public void testAfterPropertesSetException() throws Exception {
115115
// expected
116116
}
117117

118-
source = createNewInputSouce();
118+
source = createNewInputSource();
119119
source.setUnmarshaller(null);
120120
try {
121121
source.afterPropertiesSet();
@@ -144,7 +144,7 @@ public void testFragmentWrapping() throws Exception {
144144

145145
@Test
146146
public void testItemCountAwareFragment() throws Exception {
147-
StaxEventItemReader<ItemCountAwareFragment> source = createNewItemCountAwareInputSouce();
147+
StaxEventItemReader<ItemCountAwareFragment> source = createNewItemCountAwareInputSource();
148148
source.afterPropertiesSet();
149149
source.open(executionContext);
150150
assertEquals(1, source.read().getItemCount());
@@ -156,13 +156,13 @@ public void testItemCountAwareFragment() throws Exception {
156156

157157
@Test
158158
public void testItemCountAwareFragmentRestart() throws Exception {
159-
StaxEventItemReader<ItemCountAwareFragment> source = createNewItemCountAwareInputSouce();
159+
StaxEventItemReader<ItemCountAwareFragment> source = createNewItemCountAwareInputSource();
160160
source.afterPropertiesSet();
161161
source.open(executionContext);
162162
assertEquals(1, source.read().getItemCount());
163163
source.update(executionContext);
164164
source.close();
165-
source = createNewItemCountAwareInputSouce();
165+
source = createNewItemCountAwareInputSource();
166166
source.afterPropertiesSet();
167167
source.open(executionContext);
168168
assertEquals(2, source.read().getItemCount());
@@ -267,7 +267,7 @@ public void testMultiFragmentRestart() throws Exception {
267267

268268
source.close();
269269

270-
source = createNewInputSouce();
270+
source = createNewInputSource();
271271
source.setResource(new ByteArrayResource(xmlMultiFragment.getBytes()));
272272
source.setFragmentRootElementNames(MULTI_FRAGMENT_ROOT_ELEMENTS);
273273
source.afterPropertiesSet();
@@ -311,7 +311,7 @@ public void testMultiFragmentNestedRestart() throws Exception {
311311

312312
source.close();
313313

314-
source = createNewInputSouce();
314+
source = createNewInputSource();
315315
source.setResource(new ByteArrayResource(xmlMultiFragment.getBytes()));
316316
source.setFragmentRootElementNames(MULTI_FRAGMENT_ROOT_ELEMENTS);
317317
source.afterPropertiesSet();
@@ -374,7 +374,7 @@ public void testRestart() throws Exception {
374374
assertEquals(1, executionContext.getInt(ClassUtils.getShortName(StaxEventItemReader.class) + ".read.count"));
375375
List<XMLEvent> expectedAfterRestart = source.read();
376376

377-
source = createNewInputSouce();
377+
source = createNewInputSource();
378378
source.open(executionContext);
379379
List<XMLEvent> afterRestart = source.read();
380380
assertEquals(expectedAfterRestart.size(), afterRestart.size());
@@ -396,7 +396,7 @@ public void testRestartAtEndOfFile() throws Exception {
396396

397397
assertEquals(3, executionContext.getInt(ClassUtils.getShortName(StaxEventItemReader.class) + ".read.count"));
398398

399-
source = createNewInputSouce();
399+
source = createNewInputSource();
400400
source.open(executionContext);
401401
assertNull(source.read());
402402
}
@@ -596,7 +596,7 @@ public boolean supports(Class<?> clazz) {
596596

597597
}
598598

599-
private StaxEventItemReader<List<XMLEvent>> createNewInputSouce() {
599+
private StaxEventItemReader<List<XMLEvent>> createNewInputSource() {
600600
Resource resource = new ByteArrayResource(xml.getBytes());
601601

602602
StaxEventItemReader<List<XMLEvent>> newSource = new StaxEventItemReader<List<XMLEvent>>();
@@ -609,7 +609,7 @@ private StaxEventItemReader<List<XMLEvent>> createNewInputSouce() {
609609
return newSource;
610610
}
611611

612-
private StaxEventItemReader<ItemCountAwareFragment> createNewItemCountAwareInputSouce() {
612+
private StaxEventItemReader<ItemCountAwareFragment> createNewItemCountAwareInputSource() {
613613
Resource resource = new ByteArrayResource(xml.getBytes());
614614

615615
StaxEventItemReader<ItemCountAwareFragment> newSource = new StaxEventItemReader<ItemCountAwareFragment>();

spring-batch-infrastructure/src/test/java/org/springframework/batch/support/ReflectionUtilsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void methodOne() {
8282

8383
@Transactional
8484
public String toString() {
85-
return "AnnoatedClass";
85+
return "AnnotatedClass";
8686
}
8787
}
8888

spring-batch-samples/src/main/java/org/springframework/batch/sample/common/StagingItemWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public ExitStatus afterStep(StepExecution stepExecution) {
109109
/*
110110
* (non-Javadoc)
111111
*
112-
* @seeorg.springframework.batch.core.domain.StepListener#beforeStep(org.
112+
* @see org.springframework.batch.core.domain.StepListener#beforeStep(org.
113113
* springframework.batch.core.domain.StepExecution)
114114
*/
115115
@Override

0 commit comments

Comments
 (0)