diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapper.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapper.java index f512beb5e..9e2500745 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapper.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapper.java @@ -25,9 +25,9 @@ import org.springframework.core.convert.support.DefaultConversionService; import org.springframework.util.Assert; /** - * This is a {@link FieldSetMapper} that supports Java records mapping. - * It uses the record's canonical constructor to map components with the - * same name as tokens in the {@link FieldSet}. + * This is a {@link FieldSetMapper} that supports Java records mapping + * (requires JKD 14 or higher). It uses the record's canonical constructor + * to map components with the same name as tokens in the {@link FieldSet}. * * @param type of mapped items * @author Mahmoud Ben Hassine @@ -80,4 +80,4 @@ public class RecordFieldSetMapper implements FieldSetMapper { } return BeanUtils.instantiateClass(this.mappedConstructor, args); } -} \ No newline at end of file +} diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapperTests.java index 4a2b6a1bd..d715ca924 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapperTests.java @@ -92,4 +92,4 @@ public class RecordFieldSetMapperTests { return name; } } -} \ No newline at end of file +}