This commit is contained in:
Michael Minella
2020-09-14 10:01:13 -05:00
parent 615a4aee2c
commit 7e485a1b2b
2 changed files with 5 additions and 5 deletions

View File

@@ -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 <T> type of mapped items
* @author Mahmoud Ben Hassine
@@ -80,4 +80,4 @@ public class RecordFieldSetMapper<T> implements FieldSetMapper<T> {
}
return BeanUtils.instantiateClass(this.mappedConstructor, args);
}
}
}