Standardize on US spelling of "behavior".

This commit is contained in:
Gary Gregory 2019-05-28 23:45:25 -04:00
parent 474b7f4d00
commit 6ffce5335b
4 changed files with 7 additions and 7 deletions

View File

@ -193,7 +193,7 @@ o CSV-161: Fix Javadoc to say CSVFormat with() methods return a new CSVFormat.
CHANGES
============
o CSV-167: Comment line hides next record; update Javadoc to make behaviour clear. Thanks to Rene.
o CSV-167: Comment line hides next record; update Javadoc to make behavior clear. Thanks to Rene.
o CSV-153: CSVPrinter doesn't skip creation of header record if skipHeaderRecord is set to true. Thanks to Wren.

View File

@ -83,7 +83,7 @@
<release version="1.3" date="2016-05-09" description="Feature and bug fix release (Java 6)">
<action issue="CSV-179" type="add" dev="britter">Add shortcut method for using first record as header to CSVFormat</action>
<action issue="CSV-180" type="add" dev="britter">Add withHeader(Class&lt;? extends Enum&gt;) to CSVFormat</action>
<action issue="CSV-167" type="update" dev="sebb" due-to="Rene">Comment line hides next record; update Javadoc to make behaviour clear</action>
<action issue="CSV-167" type="update" dev="sebb" due-to="Rene">Comment line hides next record; update Javadoc to make behavior clear</action>
<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>
<action issue="CSV-159" type="add" dev="ggregory" due-to="Yamil Medina">Add IgnoreCase option for accessing header names</action>
<action issue="CSV-169" type="add" dev="ggregory" due-to="Gary Gregory">The null string should be case-sensitive when reading records</action>

View File

@ -1688,9 +1688,9 @@ public final class CSVFormat implements Serializable {
}
/**
* Returns a new {@code CSVFormat} with duplicate header names behaviour set to the given value.
* Returns a new {@code CSVFormat} with duplicate header names behavior set to the given value.
*
* @return a new {@code CSVFormat} with duplicate header names behaviour set to the given value
* @return a new {@code CSVFormat} with duplicate header names behavior set to the given value
*/
public CSVFormat withAllowDuplicateHeaderNames(final boolean allowDuplicateHeaderNames) {
return new CSVFormat(delimiter, quoteCharacter, quoteMode, commentMarker, escapeCharacter,

View File

@ -319,7 +319,7 @@ public class CSVParserTest {
}
@Test
public void testEmptyLineBehaviourCSV() throws Exception {
public void testEmptyLineBehaviorCSV() throws Exception {
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" };
final String[][] res = { { "hello", "" } // CSV format ignores empty lines
};
@ -336,7 +336,7 @@ public class CSVParserTest {
}
@Test
public void testEmptyLineBehaviourExcel() throws Exception {
public void testEmptyLineBehaviorExcel() throws Exception {
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" };
final String[][] res = { { "hello", "" }, { "" }, // Excel format does not ignore empty lines
{ "" } };
@ -372,7 +372,7 @@ public class CSVParserTest {
}
@Test
public void testEndOfFileBehaviourExcel() throws Exception {
public void testEndOfFileBehaviorExcel() throws Exception {
final String[] codes = { "hello,\r\n\r\nworld,\r\n", "hello,\r\n\r\nworld,", "hello,\r\n\r\nworld,\"\"\r\n",
"hello,\r\n\r\nworld,\"\"", "hello,\r\n\r\nworld,\n", "hello,\r\n\r\nworld,",
"hello,\r\n\r\nworld,\"\"\n", "hello,\r\n\r\nworld,\"\"" };