Skip to content

Incorrect code samples in reference documentation #4262

Closed
@fmbenhassine

Description

@fmbenhassine

For v5.0.0, most code samples were updated correctly in 219fee3, but some of them were updated incorrectly, like the following snippet:

@Bean
public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) {
	return tnew StepBuilder("step1", jobRepository)
				.<String, String>chunk(10, transactionManager)
				.reader(itemReader())
				.writer(itemWriter())
				.build();
}

The fix consists in changing tnew with new. There are some occurrences in job.adoc, common-patterns.adoc, processor.adoc and step.adoc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions