Skip to content

Commit 15f3637

Browse files
acktsapfmbenhassine
authored andcommitted
Polish code indent in Javadocs
1 parent 23878c6 commit 15f3637

File tree

6 files changed

+142
-137
lines changed

6 files changed

+142
-137
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/EnableBatchProcessing.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,20 +47,20 @@
4747
* @Import(DataSourceConfiguration.class)
4848
* public class AppConfig {
4949
*
50-
* @Bean
51-
* public Job job(JobRepository jobRepository) {
52-
* return new JobBuilder("myJob").repository(jobRepository).start(step1()).next(step2()).build();
53-
* }
50+
* @Bean
51+
* public Job job(JobRepository jobRepository) {
52+
* return new JobBuilder("myJob").repository(jobRepository).start(step1()).next(step2()).build();
53+
* }
5454
*
55-
* @Bean
56-
* protected Step step1() {
57-
* ...
58-
* }
55+
* @Bean
56+
* protected Step step1() {
57+
* ...
58+
* }
5959
*
60-
* @Bean
61-
* protected Step step2() {
62-
* ...
63-
* }
60+
* @Bean
61+
* protected Step step2() {
62+
* ...
63+
* }
6464
* }
6565
* </pre>
6666
*
@@ -106,17 +106,17 @@
106106
* &#064;EnableBatchProcessing(modular=true)
107107
* public class AppConfig {
108108
*
109-
* &#064;Bean
110-
* public ApplicationContextFactory someJobs() {
111-
* return new GenericApplicationContextFactory(SomeJobConfiguration.class);
112-
* }
109+
* &#064;Bean
110+
* public ApplicationContextFactory someJobs() {
111+
* return new GenericApplicationContextFactory(SomeJobConfiguration.class);
112+
* }
113113
*
114-
* &#064;Bean
115-
* public ApplicationContextFactory moreJobs() {
116-
* return new GenericApplicationContextFactory(MoreJobConfiguration.class);
117-
* }
114+
* &#064;Bean
115+
* public ApplicationContextFactory moreJobs() {
116+
* return new GenericApplicationContextFactory(MoreJobConfiguration.class);
117+
* }
118118
*
119-
* ...
119+
* ...
120120
*
121121
* }
122122
* </pre>
@@ -134,21 +134,21 @@
134134
* <batch>
135135
* <job-repository />
136136
* <job id="myJob">
137-
* <step id="step1" .../>
138-
* <step id="step2" .../>
137+
* <step id="step1" .../>
138+
* <step id="step2" .../>
139139
* </job>
140140
* <beans:bean id="dataSource" .../>
141141
* <beans:bean id="transactionManager" .../>
142-
* <beans:bean id="jobLauncher" class=
143-
"org.springframework.batch.core.launch.support.TaskExecutorJobLauncher">
144-
* <beans:property name="jobRepository" ref="jobRepository" />
142+
* <beans:bean id="jobLauncher" class="org.springframework.batch.core.launch.support.TaskExecutorJobLauncher">
143+
* <beans:property name="jobRepository" ref="jobRepository" />
145144
* </beans:bean>
146145
* </batch>
147146
* }
148147
* </pre>
149148
*
150149
* @author Dave Syer
151150
* @author Mahmoud Ben Hassine
151+
* @author Taeik Lim
152152
*
153153
*/
154154
@Target(ElementType.TYPE)

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/JobScope.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 the original author or authors.
2+
* Copyright 2013-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@
3636
* &#064;JobScope
3737
* protected Callable&lt;String&gt; value(@Value(&quot;#{jobExecution.jobInstance.jobName}&quot;)
3838
* final String value) {
39-
* return new SimpleCallable(value);
39+
* return new SimpleCallable(value);
4040
* }
4141
* </pre>
4242
*
@@ -46,6 +46,7 @@
4646
* </p>
4747
*
4848
* @author Michael Minella
49+
* @author Taeik Lim
4950
*
5051
* @since 3.0.1
5152
*

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepScope.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 the original author or authors.
2+
* Copyright 2013-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@
3636
* &#064;StepScope
3737
* protected Callable&lt;String&gt; value(@Value(&quot;#{stepExecution.stepName}&quot;)
3838
* final String value) {
39-
* return new SimpleCallable(value);
39+
* return new SimpleCallable(value);
4040
* }
4141
* </pre>
4242
*
@@ -46,6 +46,7 @@
4646
* </p>
4747
*
4848
* @author Dave Syer
49+
* @author Taeik Lim
4950
*
5051
* @since 2.2
5152
*

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/DefaultBatchConfiguration.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -88,19 +88,20 @@
8888
* &#064;Configuration
8989
* public class MyJobConfiguration extends DefaultBatchConfiguration {
9090
*
91-
* &#064;Bean
92-
* public Job job(JobRepository jobRepository) {
93-
* return new JobBuilder("myJob", jobRepository)
94-
* // define job flow as needed
95-
* .build();
96-
* }
91+
* &#064;Bean
92+
* public Job job(JobRepository jobRepository) {
93+
* return new JobBuilder("myJob", jobRepository)
94+
* // define job flow as needed
95+
* .build();
96+
* }
9797
*
9898
* }
9999
* </pre>
100100
*
101101
* @author Dave Syer
102102
* @author Michael Minella
103103
* @author Mahmoud Ben Hassine
104+
* @author Taeik Lim
104105
* @since 2.2
105106
*/
106107
@Configuration(proxyBeanMethods = false)

spring-batch-integration/src/main/java/org/springframework/batch/integration/config/annotation/EnableBatchIntegration.java

Lines changed: 61 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2019 the original author or authors.
2+
* Copyright 2018-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,34 +58,34 @@
5858
* &#064;EnableBatchProcessing
5959
* public class RemoteChunkingAppConfig {
6060
*
61-
* &#064;Autowired
62-
* private RemoteChunkingManagerStepBuilderFactory managerStepBuilderFactory;
63-
*
64-
* &#064;Autowired
65-
* private RemoteChunkingWorkerBuilder workerBuilder;
66-
*
67-
* &#064;Bean
68-
* public TaskletStep managerStep() {
69-
* return this.managerStepBuilderFactory
70-
* .get("managerStep")
71-
* .chunk(100)
72-
* .reader(itemReader())
73-
* .outputChannel(outgoingRequestsToWorkers())
74-
* .inputChannel(incomingRepliesFromWorkers())
75-
* .build();
76-
* }
77-
*
78-
* &#064;Bean
79-
* public IntegrationFlow worker() {
80-
* return this.workerBuilder
81-
* .itemProcessor(itemProcessor())
82-
* .itemWriter(itemWriter())
83-
* .inputChannel(incomingRequestsFromManager())
84-
* .outputChannel(outgoingRepliesToManager())
85-
* .build();
86-
* }
87-
*
88-
* // Middleware beans omitted
61+
* &#064;Autowired
62+
* private RemoteChunkingManagerStepBuilderFactory managerStepBuilderFactory;
63+
*
64+
* &#064;Autowired
65+
* private RemoteChunkingWorkerBuilder workerBuilder;
66+
*
67+
* &#064;Bean
68+
* public TaskletStep managerStep() {
69+
* return this.managerStepBuilderFactory
70+
* .get("managerStep")
71+
* .chunk(100)
72+
* .reader(itemReader())
73+
* .outputChannel(outgoingRequestsToWorkers())
74+
* .inputChannel(incomingRepliesFromWorkers())
75+
* .build();
76+
* }
77+
*
78+
* &#064;Bean
79+
* public IntegrationFlow worker() {
80+
* return this.workerBuilder
81+
* .itemProcessor(itemProcessor())
82+
* .itemWriter(itemWriter())
83+
* .inputChannel(incomingRequestsFromManager())
84+
* .outputChannel(outgoingRepliesToManager())
85+
* .build();
86+
* }
87+
*
88+
* // Middleware beans omitted
8989
*
9090
* }
9191
* </pre>
@@ -98,42 +98,43 @@
9898
* &#064;EnableBatchProcessing
9999
* public class RemotePartitioningAppConfig {
100100
*
101-
* &#064;Autowired
102-
* private RemotePartitioningManagerStepBuilderFactory managerStepBuilderFactory;
103-
*
104-
* &#064;Autowired
105-
* private RemotePartitioningWorkerStepBuilderFactory workerStepBuilderFactory;
106-
*
107-
* &#064;Bean
108-
* public Step managerStep() {
109-
* return this.managerStepBuilderFactory
110-
* .get("managerStep")
111-
* .partitioner("workerStep", partitioner())
112-
* .gridSize(10)
113-
* .outputChannel(outgoingRequestsToWorkers())
114-
* .inputChannel(incomingRepliesFromWorkers())
115-
* .build();
116-
* }
117-
*
118-
* &#064;Bean
119-
* public Step workerStep() {
120-
* return this.workerStepBuilderFactory
121-
* .get("workerStep")
122-
* .inputChannel(incomingRequestsFromManager())
123-
* .outputChannel(outgoingRepliesToManager())
124-
* .chunk(100)
125-
* .reader(itemReader())
126-
* .processor(itemProcessor())
127-
* .writer(itemWriter())
128-
* .build();
129-
* }
130-
*
131-
* // Middleware beans omitted
101+
* &#064;Autowired
102+
* private RemotePartitioningManagerStepBuilderFactory managerStepBuilderFactory;
103+
*
104+
* &#064;Autowired
105+
* private RemotePartitioningWorkerStepBuilderFactory workerStepBuilderFactory;
106+
*
107+
* &#064;Bean
108+
* public Step managerStep() {
109+
* return this.managerStepBuilderFactory
110+
* .get("managerStep")
111+
* .partitioner("workerStep", partitioner())
112+
* .gridSize(10)
113+
* .outputChannel(outgoingRequestsToWorkers())
114+
* .inputChannel(incomingRepliesFromWorkers())
115+
* .build();
116+
* }
117+
*
118+
* &#064;Bean
119+
* public Step workerStep() {
120+
* return this.workerStepBuilderFactory
121+
* .get("workerStep")
122+
* .inputChannel(incomingRequestsFromManager())
123+
* .outputChannel(outgoingRepliesToManager())
124+
* .chunk(100)
125+
* .reader(itemReader())
126+
* .processor(itemProcessor())
127+
* .writer(itemWriter())
128+
* .build();
129+
* }
130+
*
131+
* // Middleware beans omitted
132132
*
133133
* }
134134
* </pre>
135135
* @since 4.1
136136
* @author Mahmoud Ben Hassine
137+
* @author Taeik Lim
137138
*/
138139
@Target(ElementType.TYPE)
139140
@Retention(RetentionPolicy.RUNTIME)

0 commit comments

Comments
 (0)