Merge branch 'CSV-147' of https://github.com/gbidsilva/commons-csv-osc into CSV-147
This commit is contained in:
commit
b4abb0155e
|
@ -45,7 +45,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
java: [ 8 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||
|
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
# experimental: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||
|
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
steps:
|
||||
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
|
||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
|
6
pom.xml
6
pom.xml
|
@ -20,7 +20,7 @@
|
|||
<parent>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-parent</artifactId>
|
||||
<version>59</version>
|
||||
<version>60</version>
|
||||
</parent>
|
||||
<artifactId>commons-csv</artifactId>
|
||||
<version>1.10.1-SNAPSHOT</version>
|
||||
|
@ -154,7 +154,7 @@
|
|||
<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>RC2</commons.rc.version>
|
||||
<commons.rc.version>RC1</commons.rc.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>
|
||||
|
@ -181,7 +181,7 @@
|
|||
</properties>
|
||||
|
||||
<build>
|
||||
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check spotbugs:check pmd:check pmd:cpd-check javadoc:javadoc</defaultGoal>
|
||||
<defaultGoal>clean verify apache-rat:check japicmp:cmp spotbugs:check pmd:check pmd:cpd-check javadoc:javadoc checkstyle:check</defaultGoal>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
@ -41,14 +41,16 @@
|
|||
</properties>
|
||||
<body>
|
||||
<release version="1.10.1" date="2023-MM-DD" description="Feature and bug fix release (Java 8)">
|
||||
<!-- ADD -->
|
||||
<action issue="CSV-308" type="fix" dev="ggregory" due-to="Buddhi De Silva, Gary Gregory">[Javadoc] Add example to CSVFormat#setHeaderComments() #344.</action>
|
||||
<!-- FIX -->
|
||||
<action issue="CSV-306" type="fix" dev="ggregory" due-to="Sam Ng, Bruno P. Kinoshita">Replace deprecated method in user guide, update external link #324, #325.</action>
|
||||
<action type="fix" dev="ggregory" due-to="Seth Falco, Bruno P. Kinoshita">Document duplicate header behavior #309.</action>
|
||||
<action type="fix" dev="ggregory" due-to="jkbkupczyk">Add missing docs #328.</action>
|
||||
<action type="fix" dev="ggregory" due-to="step-security-bot">[StepSecurity] ci: Harden GitHub Actions #329, #330.</action>
|
||||
<action type="fix" dev="ggregory" due-to="step-security-bot">[StepSecurity] CI: Harden GitHub Actions #329, #330.</action>
|
||||
<!-- UPDATE -->
|
||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-io:commons-io: from 2.11.0 to 2.13.0.</action>
|
||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-parent from 57 to 59.</action>
|
||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-parent from 57 to 60.</action>
|
||||
<action type="update" dev="ggregory" due-to="Dependabot">Bump h2 from 2.1.214 to 2.2.220 #333.</action>
|
||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-lang3 from 3.12.0 to 3.13.0.</action>
|
||||
</release>
|
||||
|
|
|
@ -313,9 +313,34 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the comment start marker, use {@code null} to disable.
|
||||
*
|
||||
* Note that the comment start character is only recognized at the start of a line.
|
||||
* Sets the comment marker character, use {@code null} to disable comments.
|
||||
* <p>
|
||||
* The comment start character is only recognized at the start of a line.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link #setCommentMarker(char)} or {@link #setCommentMarker(Character)} to set the comment marker written at the start of
|
||||
* each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @param commentMarker the comment start marker, use {@code null} to disable.
|
||||
* @return This instance.
|
||||
|
@ -327,9 +352,34 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the comment start marker, use {@code null} to disable.
|
||||
*
|
||||
* Note that the comment start character is only recognized at the start of a line.
|
||||
* Sets the comment marker character, use {@code null} to disable comments.
|
||||
* <p>
|
||||
* The comment start character is only recognized at the start of a line.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link #setCommentMarker(char)} or {@link #setCommentMarker(Character)} to set the comment marker written at the start of
|
||||
* each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @param commentMarker the comment start marker, use {@code null} to disable.
|
||||
* @return This instance.
|
||||
|
@ -521,13 +571,36 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the header comments set to the given values. The comments will be printed first with the provided comment marker set by {@link Builder#setCommentMarker(char)}, before the headers. This setting is ignored by the parser.
|
||||
*
|
||||
* Sets the header comments to write before the CSV data.
|
||||
* <p>
|
||||
* This setting is ignored by the parser.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link #setCommentMarker(char)} or {@link #setCommentMarker(Character)} to set the comment marker written at the start of
|
||||
* each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* builder.setHeaderComments("Generated by Apache Commons CSV.", Instant.now());
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @param headerComments the headerComments which will be printed by the Printer before the actual CSV data.
|
||||
* @param headerComments the headerComments which will be printed by the Printer before the CSV data.
|
||||
* @return This instance.
|
||||
*/
|
||||
public Builder setHeaderComments(final Object... headerComments) {
|
||||
|
@ -536,13 +609,36 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the header comments set to the given values. The comments will be printed first with the provided comment marker set by {@link Builder#setCommentMarker(char)}, before the headers. This setting is ignored by the parser.
|
||||
*
|
||||
* Sets the header comments to write before the CSV data.
|
||||
* <p>
|
||||
* This setting is ignored by the parser.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link #setCommentMarker(char)} or {@link #setCommentMarker(Character)} to set the comment marker written at the start of
|
||||
* each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* Builder.setHeaderComments("Generated by Apache Commons CSV.", Instant.now());
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0).toString());
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @param headerComments the headerComments which will be printed by the Printer before the actual CSV data.
|
||||
* @param headerComments the headerComments which will be printed by the Printer before the CSV data.
|
||||
* @return This instance.
|
||||
*/
|
||||
public Builder setHeaderComments(final String... headerComments) {
|
||||
|
@ -1523,7 +1619,34 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the character marking the start of a line comment.
|
||||
* Gets the comment marker character, {@code null} disables comments.
|
||||
* <p>
|
||||
* The comment start character is only recognized at the start of a line.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment
|
||||
* marker written at the start of each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @return the comment start marker, may be {@code null}
|
||||
*/
|
||||
|
@ -1581,7 +1704,34 @@ public final class CSVFormat implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets a copy of the header comment array.
|
||||
* Gets a copy of the header comment array to write before the CSV data.
|
||||
* <p>
|
||||
* This setting is ignored by the parser.
|
||||
* </p>
|
||||
* <p>
|
||||
* Comments are printed first, before headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment
|
||||
* marker written at the start of each comment line.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the comment marker is not set, then the header comments are ignored.
|
||||
* </p>
|
||||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* builder.setCommentMarker('#')
|
||||
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
|
||||
* </pre>
|
||||
* <p>
|
||||
* writes:
|
||||
* </p>
|
||||
* <pre>
|
||||
* # Generated by Apache Commons CSV.
|
||||
* # 1970-01-01T00:00:00Z
|
||||
* </pre>
|
||||
*
|
||||
* @return a copy of the header comment array; {@code null} if disabled.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue