Rollback var extraction

This commit is contained in:
Jakub Kupczyk 2023-06-24 16:59:14 +02:00
parent 1da5a8b089
commit d3ef84e248
1 changed files with 2 additions and 3 deletions

View File

@ -267,11 +267,10 @@ public final class CSVRecord implements Serializable, Iterable<String> {
* @since 1.9.0
*/
public <M extends Map<String, String>> M putIn(final M map) {
final Map<String, Integer> rawHeaderMap = getHeaderMapRaw();
if (rawHeaderMap == null) {
if (getHeaderMapRaw() == null) {
return map;
}
rawHeaderMap.forEach((key, value) -> {
getHeaderMapRaw().forEach((key, value) -> {
if (value < values.length) {
map.put(key, values[value]);
}