This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push: new 1e5c7c3 [CSV-291] Make CSVRecord#values() public. 1e5c7c3 is described below commit 1e5c7c3181906f2377793763be69dd37a9eba15f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Nov 2 10:10:03 2021 -0400 [CSV-291] Make CSVRecord#values() public. --- pom.xml | 6 +++--- src/changes/changes.xml | 7 +++++-- src/main/java/org/apache/commons/csv/CSVRecord.java | 8 +++++++- src/site/resources/spotbugs/spotbugs-exclude-filter.xml | 7 +++++++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 282f068..fc02420 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ <version>52</version> </parent> <artifactId>commons-csv</artifactId> - <version>1.9.1-SNAPSHOT</version> + <version>1.10.0-SNAPSHOT</version> <name>Apache Commons CSV</name> <url>https://commons.apache.org/proper/commons-csv/</url> <inceptionYear>2005</inceptionYear> @@ -147,11 +147,11 @@ </distributionManagement> <properties> - <commons.release.version>1.9.0</commons.release.version> + <commons.release.version>1.10.0</commons.release.version> <commons.release.desc>(Java 8)</commons.release.desc> <!-- The RC version used in the staging repository URL. --> <commons.rc.version>RC1</commons.rc.version> - <commons.bc.version>1.8</commons.bc.version> + <commons.bc.version>1.9.0</commons.bc.version> <commons.componentid>csv</commons.componentid> <commons.module.name>org.apache.commons.csv</commons.module.name> <commons.jira.id>CSV</commons.jira.id> diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b2f0636..4483d81 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -38,8 +38,11 @@ <title>Apache Commons CSV Release Notes</title> </properties> <body> - <release version="1.9.1" date="2021-MM-DD" description="Feature and bug fix release (Java 8)"> - <action type="update" dev="ggregory" due-to="Arturo Bernal">Minor changes #172.</action> + <release version="1.10.0" date="2021-MM-DD" description="Feature and bug fix release (Java 8)"> + <!-- FIX --> + <action type="fix" dev="ggregory" due-to="Arturo Bernal">Minor changes #172.</action> + <!-- ADD --> + <action issue="CSV-291" type="add" dev="ggregory" due-to="Gary Gregory">Make CSVRecord#values() public.</action> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Dependabot">Bump checkstyle from 8.44 to 9.1 #180, #190, #194.</action> <action type="update" dev="ggregory" due-to="Dependabot">Bump junit-jupiter from 5.8.0-M1 to 5.8.1 #179, #186.</action> diff --git a/src/main/java/org/apache/commons/csv/CSVRecord.java b/src/main/java/org/apache/commons/csv/CSVRecord.java index e76bbc4..a6fb657 100644 --- a/src/main/java/org/apache/commons/csv/CSVRecord.java +++ b/src/main/java/org/apache/commons/csv/CSVRecord.java @@ -329,7 +329,13 @@ public final class CSVRecord implements Serializable, Iterable<String> { Arrays.toString(values) + "]"; } - String[] values() { + /** + * Gets the values for this record. This is not a copy. + * + * @return the values for this record. + * @since 1.10.0 + */ + public String[] values() { return values; } diff --git a/src/site/resources/spotbugs/spotbugs-exclude-filter.xml b/src/site/resources/spotbugs/spotbugs-exclude-filter.xml index a13b5fd..a7364d4 100644 --- a/src/site/resources/spotbugs/spotbugs-exclude-filter.xml +++ b/src/site/resources/spotbugs/spotbugs-exclude-filter.xml @@ -48,4 +48,11 @@ <Bug pattern="EI_EXPOSE_REP"/> </Match> + <!-- [CSV-291] Make CSVRecord#values() public. --> + <Match> + <Class name="org.apache.commons.csv.CSVRecord" /> + <Method name="values" /> + <Bug pattern="EI_EXPOSE_REP"/> + </Match> + </FindBugsFilter>