Fix Checkstyle warnings: Remove trailing white spaces on all lines.

This commit is contained in:
Gary Gregory 2017-08-11 15:15:27 -06:00
parent aae6f90442
commit 299fdccfd6
6 changed files with 9 additions and 9 deletions

View File

@ -1028,7 +1028,7 @@ public final class CSVFormat implements Serializable {
*
* @param out
* the output.
* @param charset
* @param charset
* A charset.
* @return a printer to an output.
* @throws IOException

View File

@ -398,9 +398,9 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
/**
* Gets the first end-of-line string encountered.
*
*
* @return the first end-of-line string
* @since 1.5
* @since 1.5
*/
public String getFirstEndOfLine() {
return lexer.getFirstEol();

View File

@ -65,7 +65,7 @@ final class Lexer implements Closeable {
String getFirstEol(){
return firstEol;
}
Lexer(final CSVFormat format, final ExtendedBufferedReader reader) {
this.reader = reader;
this.delimiter = format.getDelimiter();

View File

@ -177,7 +177,7 @@ public class CSVFormatTest {
public void testEqualsLeftNoQuoteRightQuote() {
final CSVFormat left = CSVFormat.newFormat(',').withQuote(null);
final CSVFormat right = left.withQuote('#');
assertNotEquals(left, right);
}

View File

@ -80,7 +80,7 @@ public class CSVParserTest {
final URL url = ClassLoader.getSystemClassLoader().getResource(resource);
return new BOMInputStream(url.openStream());
}
@Test
public void testBackslashEscaping() throws IOException {
@ -234,7 +234,7 @@ public class CSVParserTest {
assertEquals(4, records.size());
}
}
@Test
public void testFirstEndOfLineCrLf() throws IOException {
final String data = "foo\r\nbaar,\r\nhello,world\r\n,kanu";
@ -244,7 +244,7 @@ public class CSVParserTest {
assertEquals("\r\n", parser.getFirstEndOfLine());
}
}
@Test
public void testFirstEndOfLineLf() throws IOException {
final String data = "foo\nbaar,\nhello,world\n,kanu";

View File

@ -31,7 +31,7 @@ import org.junit.Test;
/**
* Tests https://issues.apache.org/jira/browse/CSV-213
*
*
* This is normal behavior with the current architecture: The iterator() API presents an object that is backed by data
* in the CSVParser as the parser is streaming over the file. The CSVParser is like a forward-only stream. When you
* create a new Iterator you are only created a new view on the same position in the parser's stream. For the behavior