Skip to content

Commit da9c74e

Browse files
committed
Updated docs based on code review.
1 parent 7a64e88 commit da9c74e

15 files changed

+28
-31
lines changed

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/ExitStatus.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class ExitStatus implements Serializable, Comparable<ExitStatus> {
7575
private final String exitDescription;
7676

7777
/**
78-
* Constructor that accepts the exitCode and sets the exitDescription to an empty {@link String}.
78+
* Constructor that accepts the exit code and sets the exit description to an empty {@link String}.
7979
*
8080
* @param exitCode The exit code to be used for the {@link ExitStatus}.
8181
*/
@@ -84,7 +84,7 @@ public ExitStatus(String exitCode) {
8484
}
8585

8686
/**
87-
* Constructor that establishes the exitCode and the exitDescription for the {@link ExitStatus}.
87+
* Constructor that establishes the exit code and the exit description for the {@link ExitStatus}.
8888
*
8989
* @param exitCode The exit code to be used for the {@link ExitStatus}.
9090
* @param exitDescription The exit description to be used for the {@link ExitStatus}.

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ public JobExecution(JobInstance job, Long id, @Nullable JobParameters jobParamet
102102
/**
103103
* Constructor for transient (unsaved) instances.
104104
*
105-
* @param job The enclosing {@link JobInstance}
105+
* @param job The enclosing {@link JobInstance}.
106106
* @param jobParameters The {@link JobParameters} instance for this JobExecution.
107107
*/
108108
public JobExecution(JobInstance job, JobParameters jobParameters) {
109109
this(job, null, jobParameters);
110110
}
111111

112112
/**
113-
* Constructor that accepts the current job execution ID and {@link JobParameters}.
113+
* Constructor that accepts the job execution ID and {@link JobParameters}.
114114
* @param id The job execution ID.
115115
* @param jobParameters The {@link JobParameters} for the {@link JobExecution}.
116116
*/
@@ -119,7 +119,7 @@ public JobExecution(Long id, JobParameters jobParameters) {
119119
}
120120

121121
/**
122-
* Constructor that accepts the current job execution ID.
122+
* Constructor that accepts the job execution ID.
123123
* @param id The job execution ID.
124124
*/
125125
public JobExecution(Long id) {
@@ -336,7 +336,7 @@ public void setLastUpdated(Date lastUpdated) {
336336

337337
/**
338338
* Retrieve a list of exceptions.
339-
* @return The {@link List} of {@link Throwable}s.
339+
* @return The {@link List} of {@link Throwable} objects.
340340
*/
341341
public List<Throwable> getFailureExceptions() {
342342
return failureExceptions;

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/JobParameters.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public JobParameters() {
5656
}
5757

5858
/**
59-
* Constructor that is initialized with content of a {@link Map} that contains a string key and {@link JobParameter} value.
59+
* Constructor that is initialized with the content of a {@link Map} that contains a string key and {@link JobParameter} value.
6060
* @param parameters The {@link Map} that contains a string key and {@link JobParameter} value.
6161
*/
6262
public JobParameters(Map<String,JobParameter> parameters) {

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/Step.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
public interface Step {
2626

2727
/**
28-
* The key to retrieve the batch.stepType.
28+
* The key to retrieve the batch step type.
2929
*/
3030
String STEP_TYPE_KEY = "batch.stepType";
3131

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -474,14 +474,14 @@ public void setLastUpdated(Date lastUpdated) {
474474
}
475475

476476
/**
477-
* @return The {@link List} of {@link Throwable}s.
477+
* @return The {@link List} of {@link Throwable} objects.
478478
*/
479479
public List<Throwable> getFailureExceptions() {
480480
return failureExceptions;
481481
}
482482

483483
/**
484-
* Add {@link Throwable} to failure exceptions.
484+
* Add a {@link Throwable} to failure exceptions.
485485
* @param throwable The {@link Throwable} to add to failure exceptions.
486486
*/
487487
public void addFailureException(Throwable throwable) {
@@ -541,7 +541,7 @@ public String toString() {
541541
}
542542

543543
/**
544-
* @return The {@link String} containing summary of the step execution.
544+
* @return The {@link String} containing a summary of the step execution.
545545
*/
546546
public String getSummary() {
547547
return super.toString()

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/JobFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
public interface JobFactory {
2727

2828
/**
29-
* Create new instance of {@link Job}.
29+
* Create a new instance of {@link Job}.
3030
* @return The {@link Job}.
3131
*/
3232
Job createJob();
3333

3434
/**
35-
* @return The {@link String} containing the {@link Job} Name.
35+
* @return The {@link String} containing the {@link Job} name.
3636
*/
3737
String getJobName();
3838

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/AbstractBatchConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ public void afterPropertiesSet() throws Exception {
136136
}
137137

138138
/**
139-
* Returns the {@link BatchConfigurer} if one is present in list. Create {@link BatchConfigurer} if configurers list is empty.
140-
* If more than one configurer is present in the list then an {@link IllegalStateException} is thrown.
139+
* If a {@link BatchConfigurer}, return it. If the configurers list is empty, create {@link BatchConfigurer}.
140+
* If more than one configurer is present in the list, an {@link IllegalStateException} is thrown.
141141
* @param configurers The {@link Collection} of configurers to review.
142142
* @return The {@link BatchConfigurer} that was in the configurers collection or the one created.
143143
*/

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public JobExplorer getJobExplorer() {
102102
}
103103

104104
/**
105-
* Initialize the {@link DefaultBatchConfigurer} with the {@link JobRepository}, {@link JobExplorer} and, {@link JobLauncher}.
105+
* Initialize the {@link DefaultBatchConfigurer} with the {@link JobRepository}, {@link JobExplorer}, and {@link JobLauncher}.
106106
*/
107107
@PostConstruct
108108
public void initialize() {

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/JobBuilderFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class JobBuilderFactory {
2929
private JobRepository jobRepository;
3030

3131
/**
32-
* @param jobRepository The {@link JobRepository} to be used by builder factory.
32+
* @param jobRepository The {@link JobRepository} to be used by the builder factory.
3333
*/
3434
public JobBuilderFactory(JobRepository jobRepository) {
3535
this.jobRepository = jobRepository;

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/ModularBatchConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public JobExplorer jobExplorer() throws Exception {
7373
}
7474

7575
/**
76-
* Creates {@link AutomaticJobRegistrar} bean.
76+
* Creates a {@link AutomaticJobRegistrar} bean.
7777
* @return New instance of {@link AutomaticJobRegistrar}.
7878
* @throws Exception The {@link Exception} thrown if error occurs.
7979
*/

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class StepBuilderFactory {
3333
private PlatformTransactionManager transactionManager;
3434

3535
/**
36-
* Constructor for {@link StepBuilderFactory}.
36+
* Constructor for the {@link StepBuilderFactory}.
3737
* @param jobRepository The {@link JobRepository} to be used by the builder factory.
3838
* @param transactionManager The {@link PlatformTransactionManager} to be used by the builder factory.
3939
*/

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractFlowParser.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public abstract class AbstractFlowParser extends AbstractSingleBeanDefinitionPar
8282
protected static final String NEXT_ELE = "next";
8383

8484
/**
85-
* Establishes a End element.
85+
* Establishes an End element.
8686
*/
8787
protected static final String END_ELE = "end";
8888

@@ -123,7 +123,7 @@ public abstract class AbstractFlowParser extends AbstractSingleBeanDefinitionPar
123123
private static final DecisionParser decisionParser = new DecisionParser();
124124

125125
/**
126-
* Used as suffix to generate unique state names for end transitions.
126+
* Used as a suffix to generate unique state names for end transitions.
127127
*/
128128
// For generating unique state names for end transitions
129129
protected static int endCounter = 0;

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ else if (listenersElements.size() > 1) {
154154
* Parse the element to retrieve {@link BeanMetadataElement}.
155155
* @param element The {@link Element} to be parsed.
156156
* @param parserContext The {@link ParserContext}.
157-
* @return The {@link BeanMetadataElement} extracted from element parameter.
157+
* @return The {@link BeanMetadataElement} extracted from the element parameter.
158158
*/
159159
public BeanMetadataElement parseBeanElement(Element element, ParserContext parserContext) {
160160
String refAttribute = element.getAttribute(REF_ATTR);

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java

+4-7
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616

1717
package org.springframework.batch.core.configuration.xml;
1818

19-
import java.io.Serializable;
2019
import java.util.Collection;
2120
import java.util.HashMap;
2221
import java.util.HashSet;
2322
import java.util.LinkedHashSet;
2423
import java.util.Map;
25-
import java.util.Queue;
2624
import java.util.Set;
27-
import java.util.concurrent.locks.ReentrantLock;
2825

2926
import org.springframework.batch.core.ChunkListener;
3027
import org.springframework.batch.core.ItemProcessListener;
@@ -413,7 +410,7 @@ protected void registerItemListeners(SimpleStepBuilder<I, O> builder) {
413410
}
414411

415412
/**
416-
* Creates new {@link TaskletStep}.
413+
* Creates a new {@link TaskletStep}.
417414
* @return The {@link TaskletStep}.
418415
*/
419416
protected Step createSimpleStep() {
@@ -454,8 +451,8 @@ protected TaskletStep createTaskletStep() {
454451
}
455452

456453
/**
457-
* Set the state of the {@link AbstractTaskletStepBuilder}.
458-
* @param builder The {@link AbstractTaskletStepBuilder} to be enhanced.
454+
* Set the state of the {@link AbstractTaskletStepBuilder} using the values that were established for the factory bean.
455+
* @param builder The {@link AbstractTaskletStepBuilder} to be modified.
459456
*/
460457
@SuppressWarnings("serial")
461458
protected void enhanceTaskletStepBuilder(AbstractTaskletStepBuilder<?> builder) {
@@ -501,7 +498,7 @@ public boolean rollbackOn(Throwable ex) {
501498
}
502499

503500
/**
504-
* Create new {@link org.springframework.batch.core.job.flow.FlowStep}.
501+
* Create a new {@link org.springframework.batch.core.job.flow.FlowStep}.
505502
* @return The {@link org.springframework.batch.core.job.flow.FlowStep}.
506503
*/
507504
protected Step createFlowStep() {

Diff for: spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
/**
4444
*
4545
* <p>
46-
* Implementation of {@link JobRepository} that stores JobInstances,
47-
* JobExecutions, and StepExecutions using the injected DAOs.
46+
* Implementation of {@link JobRepository} that stores job instances,
47+
* job executions, and step executions using the injected DAOs.
4848
* </p>
4949
*
5050
* @author Lucas Ward

0 commit comments

Comments
 (0)