Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 6ffce53

Browse files
author
Gary Gregory
committed
Standardize on US spelling of "behavior".
1 parent 474b7f4 commit 6ffce53

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ o CSV-161: Fix Javadoc to say CSVFormat with() methods return a new CSVFormat.
193193
CHANGES
194194
============
195195

196-
o CSV-167: Comment line hides next record; update Javadoc to make behaviour clear. Thanks to Rene.
196+
o CSV-167: Comment line hides next record; update Javadoc to make behavior clear. Thanks to Rene.
197197
o CSV-153: CSVPrinter doesn't skip creation of header record if skipHeaderRecord is set to true. Thanks to Wren.
198198

199199

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<release version="1.3" date="2016-05-09" description="Feature and bug fix release (Java 6)">
8484
<action issue="CSV-179" type="add" dev="britter">Add shortcut method for using first record as header to CSVFormat</action>
8585
<action issue="CSV-180" type="add" dev="britter">Add withHeader(Class&lt;? extends Enum&gt;) to CSVFormat</action>
86-
<action issue="CSV-167" type="update" dev="sebb" due-to="Rene">Comment line hides next record; update Javadoc to make behaviour clear</action>
86+
<action issue="CSV-167" type="update" dev="sebb" due-to="Rene">Comment line hides next record; update Javadoc to make behavior clear</action>
8787
<action issue="CSV-153" type="update" dev="britter" due-to="Wren">CSVPrinter doesn't skip creation of header record if skipHeaderRecord is set to true</action>
8888
<action issue="CSV-159" type="add" dev="ggregory" due-to="Yamil Medina">Add IgnoreCase option for accessing header names</action>
8989
<action issue="CSV-169" type="add" dev="ggregory" due-to="Gary Gregory">The null string should be case-sensitive when reading records</action>

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,9 +1688,9 @@ public CSVFormat withAllowDuplicateHeaderNames() {
16881688
}
16891689

16901690
/**
1691-
* Returns a new {@code CSVFormat} with duplicate header names behaviour set to the given value.
1691+
* Returns a new {@code CSVFormat} with duplicate header names behavior set to the given value.
16921692
*
1693-
* @return a new {@code CSVFormat} with duplicate header names behaviour set to the given value
1693+
* @return a new {@code CSVFormat} with duplicate header names behavior set to the given value
16941694
*/
16951695
public CSVFormat withAllowDuplicateHeaderNames(final boolean allowDuplicateHeaderNames) {
16961696
return new CSVFormat(delimiter, quoteCharacter, quoteMode, commentMarker, escapeCharacter,

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public void testEmptyFile() throws Exception {
319319
}
320320

321321
@Test
322-
public void testEmptyLineBehaviourCSV() throws Exception {
322+
public void testEmptyLineBehaviorCSV() throws Exception {
323323
final String[] codes = { "hello,\r\n\r\n\r\n", "hello,\n\n\n", "hello,\"\"\r\n\r\n\r\n", "hello,\"\"\n\n\n" };
324324
final String[][] res = { { "hello", "" } // CSV format ignores empty lines
325325
};
@@ -336,7 +336,7 @@ public void testEmptyLineBehaviourCSV() throws Exception {
336336
}
337337

338338
@Test
339-
public void testEmptyLineBehaviourExcel() throws Exception {
339+
public void testEmptyLineBehaviorExcel() throws Exception {
340340
final String[] codes = { "hello,\r\n\r\n\r\n", "hello,\n\n\n", "hello,\"\"\r\n\r\n\r\n", "hello,\"\"\n\n\n" };
341341
final String[][] res = { { "hello", "" }, { "" }, // Excel format does not ignore empty lines
342342
{ "" } };
@@ -372,7 +372,7 @@ public void testEndOfFileBehaviorCSV() throws Exception {
372372
}
373373

374374
@Test
375-
public void testEndOfFileBehaviourExcel() throws Exception {
375+
public void testEndOfFileBehaviorExcel() throws Exception {
376376
final String[] codes = { "hello,\r\n\r\nworld,\r\n", "hello,\r\n\r\nworld,", "hello,\r\n\r\nworld,\"\"\r\n",
377377
"hello,\r\n\r\nworld,\"\"", "hello,\r\n\r\nworld,\n", "hello,\r\n\r\nworld,",
378378
"hello,\r\n\r\nworld,\"\"\n", "hello,\r\n\r\nworld,\"\"" };

0 commit comments

Comments
 (0)