Skip to content

Commit

Permalink
[CSV-291] Make CSVRecord#values() public.
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 2, 2021
1 parent 27d102c commit 1e5c7c3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
7 changes: 5 additions & 2 deletions src/changes/changes.xml
Expand Up @@ -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>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/org/apache/commons/csv/CSVRecord.java
Expand Up @@ -329,7 +329,13 @@ public String toString() {
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;
}

Expand Down
7 changes: 7 additions & 0 deletions src/site/resources/spotbugs/spotbugs-exclude-filter.xml
Expand Up @@ -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>

0 comments on commit 1e5c7c3

Please sign in to comment.