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 * @param out
* the output. * the output.
* @param charset * @param charset
* A charset. * A charset.
* @return a printer to an output. * @return a printer to an output.
* @throws IOException * @throws IOException

View File

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

View File

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

View File

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

View File

@ -80,7 +80,7 @@ public class CSVParserTest {
final URL url = ClassLoader.getSystemClassLoader().getResource(resource); final URL url = ClassLoader.getSystemClassLoader().getResource(resource);
return new BOMInputStream(url.openStream()); return new BOMInputStream(url.openStream());
} }
@Test @Test
public void testBackslashEscaping() throws IOException { public void testBackslashEscaping() throws IOException {
@ -234,7 +234,7 @@ public class CSVParserTest {
assertEquals(4, records.size()); assertEquals(4, records.size());
} }
} }
@Test @Test
public void testFirstEndOfLineCrLf() throws IOException { public void testFirstEndOfLineCrLf() throws IOException {
final String data = "foo\r\nbaar,\r\nhello,world\r\n,kanu"; final String data = "foo\r\nbaar,\r\nhello,world\r\n,kanu";
@ -244,7 +244,7 @@ public class CSVParserTest {
assertEquals("\r\n", parser.getFirstEndOfLine()); assertEquals("\r\n", parser.getFirstEndOfLine());
} }
} }
@Test @Test
public void testFirstEndOfLineLf() throws IOException { public void testFirstEndOfLineLf() throws IOException {
final String data = "foo\nbaar,\nhello,world\n,kanu"; 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 * 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 * 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 * 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 * create a new Iterator you are only created a new view on the same position in the parser's stream. For the behavior