From 7e485a1b2bbe90ccb0ddf40f85853d7de3e2b462 Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Mon, 14 Sep 2020 10:01:13 -0500 Subject: [PATCH] Polish --- .../batch/item/file/mapping/RecordFieldSetMapper.java | 8 ++++---- .../item/file/mapping/RecordFieldSetMapperTests.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 +}