Skip to content

Fix typo tnew to new in adoc files #4283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spring-batch-docs/src/main/asciidoc/common-patterns.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ public Job job1(JobRepository jobRepository) {

@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(reader())
.writer(savingWriter())
Expand Down
2 changes: 1 addition & 1 deletion spring-batch-docs/src/main/asciidoc/job.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ The configuration of a validator is supported through the Java builders, as foll
----
@Bean
public Job job1(JobRepository jobRepository) {
return tnew JobBuilder("job1", jobRepository)
return new JobBuilder("job1", jobRepository)
.validator(parametersValidator())
...
.build();
Expand Down
2 changes: 1 addition & 1 deletion spring-batch-docs/src/main/asciidoc/processor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public Job ioSampleJob(JobRepository jobRepository) {

@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<Foo, Foobar>chunk(2, transactionManager)
.reader(fooReader())
.processor(compositeProcessor())
Expand Down
20 changes: 10 additions & 10 deletions spring-batch-docs/src/main/asciidoc/step.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public Job sampleJob(JobRepository jobRepository) {

@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -411,7 +411,7 @@ The following code fragment shows an example of a start limit configuration in J
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -455,7 +455,7 @@ The following code fragment shows how to define a restartable job in Java:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -634,7 +634,7 @@ The following Java example shows an example of using a skip limit:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(flatFileItemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -686,7 +686,7 @@ The following Java example shows an example excluding a particular exception:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(flatFileItemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -754,7 +754,7 @@ In Java, retry should be configured as follows:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(2, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -804,7 +804,7 @@ In Java, you can control rollback as follows:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(2, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -847,7 +847,7 @@ The following example shows how to create a reader that does not buffer items in
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(2, transactionManager)
.reader(itemReader())
.writer(itemWriter())
Expand Down Expand Up @@ -956,7 +956,7 @@ The following example shows how to register a `stream` on a `step` in Java:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(2, transactionManager)
.reader(itemReader())
.writer(compositeItemWriter())
Expand Down Expand Up @@ -1030,7 +1030,7 @@ The following example shows a listener applied at the chunk level in Java:
----
@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
return tnew StepBuilder("step1", jobRepository)
return new StepBuilder("step1", jobRepository)
.<String, String>chunk(10, transactionManager)
.reader(reader())
.writer(writer())
Expand Down