Skip to content

updated SimpleStepBuilder to assign ItemProcessor lambda at construction #3897

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

Closed

Conversation

parikshitdutta
Copy link
Contributor

Fixes #3749

builder.build().execute(execution);

assertEquals(BatchStatus.COMPLETED, execution.getStatus());

List<? extends String> writtenItems = itemWriter.getWrittenItems();
List<? extends String> writtenItems = ((ListItemWriter) itemWriter).getWrittenItems();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change (which is not related to the main goal of the fix) has introduced a warning about an unchecked assignment. The warning could be fixed by using an explicit type like ((ListItemWriter<String>) itemWriter), but this makes the cast redundant. I will revert that change on merge.

@fmbenhassine
Copy link
Contributor

LGTM. Rebased and merged as 58e82a5. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting item processor property with lambda error
2 participants