Skip to content

Commit 2448f4f

Browse files
committed
adding code review typo fixes
1 parent ae8c0cd commit 2448f4f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public CSVParser(final Reader reader, final CSVFormat format, final long charact
441441
}
442442

443443
/**
444-
* Return the parsed CSV content of current reading line up until this method is called.
444+
* Return the parsed CSV content of currently parsed line up until this method is called.
445445
* <p>
446446
* Maximum parsed token length set by the 'maxParsedTokenCount' is considered during the construction of return string.
447447
* </p>
@@ -455,7 +455,7 @@ public CSVParser(final Reader reader, final CSVFormat format, final long charact
455455
* col1, col2, col3, col4, col5, col6, col7
456456
* </pre>
457457
* <p>
458-
* then this would return following
458+
* then method returns following
459459
* </p>
460460
* <pre>
461461
* col3, col4, col5, col6, col7
@@ -809,7 +809,7 @@ CSVRecord nextRecord() throws IOException {
809809
try {
810810
this.lexer.nextToken(this.reusableToken);
811811
} catch (IOException ioe) {
812-
String errorMessage = "An exception occurred while tying to parse the CSV content. Issue in line: "
812+
String errorMessage = "An exception occurred while parsing the CSV content. Issue in line: "
813813
+ this.lexer.getCurrentLineNumber() + ", position: " + this.lexer.getCharacterPosition();
814814
throw new IOException(errorMessage, ioe);
815815
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ public void testFaultyCSVShouldThrowErrorAndDetailedMessageShouldBeAvailable_1()
16691669
}
16701670
});
16711671
String expectedErrorMessage = "Exception reading next record: java.io.IOException: An exception occurred " +
1672-
"while tying to parse the CSV content. Issue in line: 2, position: 94";
1672+
"while parsing the CSV content. Issue in line: 2, position: 94";
16731673
String actualMessage = exception.getMessage();
16741674
assertTrue(actualMessage.contains(expectedErrorMessage));
16751675
assertNotNull(csvParser);
@@ -1702,7 +1702,7 @@ public void testFaultyCSVShouldThrowErrorAndDetailedMessageShouldBeAvailable_2()
17021702
}
17031703
});
17041704
String expectedErrorMessage = "Exception reading next record: java.io.IOException: An exception occurred " +
1705-
"while tying to parse the CSV content. Issue in line: 2, position: 63";
1705+
"while parsing the CSV content. Issue in line: 2, position: 63";
17061706
String actualMessage = exception.getMessage();
17071707
assertTrue(actualMessage.contains(expectedErrorMessage));
17081708
assertNotNull(csvParser);

0 commit comments

Comments
 (0)