You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/07/23 11:41:56 UTC
(commons-csv) branch master updated (dfbf6f83 -> f1d8966a)
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
from dfbf6f83 Handle null name in CSVRecord accessors under ignoreHeaderCase (#628).
new 2e7afc06 Deference parser variable once.
new 57dee995 Javadoc
new f1d8966a Javadoc
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/main/java/org/apache/commons/csv/CSVRecord.java | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
(commons-csv) 01/03: Deference parser variable once.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit 2e7afc06961bc4fc43be2699f3135478e03101dc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 23 07:38:46 2026 -0400
Deference parser variable once.
---
src/main/java/org/apache/commons/csv/CSVRecord.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java
index 3cca402e..414a45b0 100644
--- a/src/main/java/org/apache/commons/csv/CSVRecord.java
+++ b/src/main/java/org/apache/commons/csv/CSVRecord.java
@@ -287,10 +287,11 @@ public final class CSVRecord implements Serializable, Iterable<String> {
* @since 1.9.0
*/
public <M extends Map<String, String>> M putIn(final M map) {
- if (getHeaderMapRaw() == null) {
+ final Map<String, Integer> headerMap = getHeaderMapRaw();
+ if (headerMap == null) {
return map;
}
- getHeaderMapRaw().forEach((key, value) -> {
+ headerMap.forEach((key, value) -> {
if (value < values.length) {
map.put(key, values[value]);
}
(commons-csv) 02/03: Javadoc
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit 57dee995ad3cb223b15231b312e4e6bebfa1ab85
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 23 07:41:01 2026 -0400
Javadoc
---
src/main/java/org/apache/commons/csv/CSVRecord.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java
index 414a45b0..349e3384 100644
--- a/src/main/java/org/apache/commons/csv/CSVRecord.java
+++ b/src/main/java/org/apache/commons/csv/CSVRecord.java
@@ -284,6 +284,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
* @param <M> The map type.
* @param map The Map to populate.
* @return The given map.
+ * @throws NullPointerException if the map is null.
* @since 1.9.0
*/
public <M extends Map<String, String>> M putIn(final M map) {
(commons-csv) 03/03: Javadoc
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit f1d8966a8b9689007893c078bbacfb8360b298f0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 23 07:41:50 2026 -0400
Javadoc
---
src/main/java/org/apache/commons/csv/CSVRecord.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java
index 349e3384..f2645fef 100644
--- a/src/main/java/org/apache/commons/csv/CSVRecord.java
+++ b/src/main/java/org/apache/commons/csv/CSVRecord.java
@@ -207,7 +207,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
}
/**
- * Checks whether this record has a comment, false otherwise.
+ * Tests whether this record has a comment, false otherwise.
* Note that comments are attached to the following record.
* If there is no following record (that is, the comment is at EOF),
* then the comment will be ignored.
@@ -220,7 +220,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
}
/**
- * Tells whether the record size matches the header size.
+ * Tests whether the record size matches the header size.
*
* <p>
* Returns true if the sizes for this record match and false if not. Some programs can export files that fail this
@@ -235,7 +235,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
}
/**
- * Checks whether a given column is mapped, that is, its name has been defined to the parser.
+ * Tests whether a given column is mapped, that is, its name has been defined to the parser.
*
* @param name
* the name of the column to be retrieved.
@@ -247,7 +247,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
}
/**
- * Checks whether a column with a given index has a value.
+ * Tests whether a column with a given index has a value.
*
* @param index
* a column index (0-based).
@@ -258,7 +258,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
}
/**
- * Checks whether a given column is mapped and has a value.
+ * Tests whether a given column is mapped and has a value.
*
* @param name
* the name of the column to be retrieved.