Skip to content

Commit 7e485a1

Browse files
committed
Polish
1 parent 615a4ae commit 7e485a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
import org.springframework.util.Assert;
2626

2727
/**
28-
* This is a {@link FieldSetMapper} that supports Java records mapping.
29-
* It uses the record's canonical constructor to map components with the
30-
* same name as tokens in the {@link FieldSet}.
28+
* This is a {@link FieldSetMapper} that supports Java records mapping
29+
* (requires JKD 14 or higher). It uses the record's canonical constructor
30+
* to map components with the same name as tokens in the {@link FieldSet}.
3131
*
3232
* @param <T> type of mapped items
3333
* @author Mahmoud Ben Hassine
@@ -80,4 +80,4 @@ public T mapFieldSet(FieldSet fieldSet) {
8080
}
8181
return BeanUtils.instantiateClass(this.mappedConstructor, args);
8282
}
83-
}
83+
}

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/RecordFieldSetMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ public String name() {
9292
return name;
9393
}
9494
}
95-
}
95+
}

0 commit comments

Comments
 (0)