Fix Checkstyle warnings: Remove trailing white spaces on all lines.
This commit is contained in:
parent
aae6f90442
commit
299fdccfd6
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue