From 299fdccfd67319a0231efe82eba424003afb371d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 11 Aug 2017 15:15:27 -0600 Subject: [PATCH] Fix Checkstyle warnings: Remove trailing white spaces on all lines. --- src/main/java/org/apache/commons/csv/CSVFormat.java | 2 +- src/main/java/org/apache/commons/csv/CSVParser.java | 4 ++-- src/main/java/org/apache/commons/csv/Lexer.java | 2 +- src/test/java/org/apache/commons/csv/CSVFormatTest.java | 2 +- src/test/java/org/apache/commons/csv/CSVParserTest.java | 6 +++--- .../java/org/apache/commons/csv/issues/JiraCsv213Test.java | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 3b01bd6c..b2305888 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -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 diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index 2e4d6624..4580f41b 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -398,9 +398,9 @@ public final class CSVParser implements Iterable, 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(); diff --git a/src/main/java/org/apache/commons/csv/Lexer.java b/src/main/java/org/apache/commons/csv/Lexer.java index 027e41ec..d8cdbf78 100644 --- a/src/main/java/org/apache/commons/csv/Lexer.java +++ b/src/main/java/org/apache/commons/csv/Lexer.java @@ -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(); diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java b/src/test/java/org/apache/commons/csv/CSVFormatTest.java index 59a76293..4491b53c 100644 --- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java +++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java @@ -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); } diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java b/src/test/java/org/apache/commons/csv/CSVParserTest.java index cffd143c..8a1b5679 100644 --- a/src/test/java/org/apache/commons/csv/CSVParserTest.java +++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java @@ -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"; diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java index b6492f7b..fca82b82 100644 --- a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java +++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java @@ -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