Skip to content

Commit 6671ff0

Browse files
committed
Add compile-time safety to FlatFileItemReaderBuilder DSL
Enhance FlatFileItemReaderBuilder to prevent mutual exclusivity violations between targetType() and fieldSetMapper() methods at compile time rather than runtime. The implementation uses a stage-based DSL pattern where: - fieldSetMapper() returns FieldSetMapperStage<T> interface - targetType() returns TargetTypeStage<T> interface - Each stage only exposes methods compatible with the chosen mapping strategy This resolves GitHub issue #4888 by providing immediate IDE feedback when developers attempt to use incompatible method combinations, improving developer experience and preventing runtime errors. Signed-off-by: snowykte0426 <[email protected]>
1 parent 3bcc525 commit 6671ff0

File tree

2 files changed

+535
-52
lines changed

2 files changed

+535
-52
lines changed

0 commit comments

Comments
 (0)