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

@@ -122,13 +122,13 @@ public class RepositoryItemWriterBuilder<T> {
* not be final.
*/
public static class RepositoryMethodReference<T> {
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<T> {
}
}
private static class RepositoryMethodIterceptor implements MethodInterceptor {
private static class RepositoryMethodInterceptor implements MethodInterceptor {
private String methodName;
@Override

View File

@@ -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

View File

@@ -143,7 +143,7 @@ public class MultiResourceItemWriter<T> extends AbstractItemStreamItemWriter<T>
@Override
public void close() throws ItemStreamException {
super.close();
super.close();
resourceIndex = 1;
currentResourceItemCount = 0;
if (opened) {
@@ -153,7 +153,7 @@ public class MultiResourceItemWriter<T> extends AbstractItemStreamItemWriter<T>
@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<T> extends AbstractItemStreamItemWriter<T>
@Override
public void update(ExecutionContext executionContext) throws ItemStreamException {
super.update(executionContext);
super.update(executionContext);
if (saveState) {
if (opened) {
delegate.update(executionContext);

View File

@@ -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
*

View File

@@ -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;
}
/**

View File

@@ -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();