You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2017/08/26 07:33:36 UTC

[1/2] commons-csv git commit: Fix checkstyle errors by replacing tabs by spaces

Repository: commons-csv
Updated Branches:
  refs/heads/release [created] fc472b42f


Fix checkstyle errors by replacing tabs by spaces


Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/31e50542
Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/31e50542
Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/31e50542

Branch: refs/heads/release
Commit: 31e505424d166ca0526cf31fb3ae9856480e6286
Parents: 259812e
Author: Bruno P. Kinoshita <br...@yahoo.com.br>
Authored: Sat Aug 26 19:25:33 2017 +1200
Committer: Bruno P. Kinoshita <br...@yahoo.com.br>
Committed: Sat Aug 26 19:25:33 2017 +1200

----------------------------------------------------------------------
 .../java/org/apache/commons/csv/CSVFormat.java  | 40 ++++++++++----------
 1 file changed, 20 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/31e50542/src/main/java/org/apache/commons/csv/CSVFormat.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java
index bae5a97..410c8fb 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -275,8 +275,8 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat EXCEL = DEFAULT
-    		.withIgnoreEmptyLines(false)
-    		.withAllowMissingColumnNames();
+            .withIgnoreEmptyLines(false)
+            .withAllowMissingColumnNames();
     // @formatter:on
 
     /**
@@ -305,8 +305,8 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat INFORMIX_UNLOAD = DEFAULT
-    		.withDelimiter(PIPE)
-    		.withEscape(BACKSLASH)
+            .withDelimiter(PIPE)
+            .withEscape(BACKSLASH)
             .withQuote(DOUBLE_QUOTE_CHAR)
             .withRecordSeparator(LF);
     // @formatter:on
@@ -336,8 +336,8 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat INFORMIX_UNLOAD_CSV = DEFAULT
-    		.withDelimiter(COMMA)
-    		.withQuote(DOUBLE_QUOTE_CHAR)
+            .withDelimiter(COMMA)
+            .withQuote(DOUBLE_QUOTE_CHAR)
             .withRecordSeparator(LF);
     // @formatter:on
 
@@ -368,13 +368,13 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat MYSQL = DEFAULT
-    		.withDelimiter(TAB)
-    		.withEscape(BACKSLASH)
-    		.withIgnoreEmptyLines(false)
+            .withDelimiter(TAB)
+            .withEscape(BACKSLASH)
+            .withIgnoreEmptyLines(false)
             .withQuote(null)
             .withRecordSeparator(LF)
             .withNullString("\\N")
-    		.withQuoteMode(QuoteMode.ALL_NON_NULL);
+            .withQuoteMode(QuoteMode.ALL_NON_NULL);
     // @formatter:off
 
     /**
@@ -405,13 +405,13 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat POSTGRESQL_CSV = DEFAULT
-    		.withDelimiter(COMMA)
-    		.withEscape(DOUBLE_QUOTE_CHAR)
-    		.withIgnoreEmptyLines(false)
+            .withDelimiter(COMMA)
+            .withEscape(DOUBLE_QUOTE_CHAR)
+            .withIgnoreEmptyLines(false)
             .withQuote(DOUBLE_QUOTE_CHAR)
             .withRecordSeparator(LF)
             .withNullString(EMPTY)
-    		.withQuoteMode(QuoteMode.ALL_NON_NULL);
+            .withQuoteMode(QuoteMode.ALL_NON_NULL);
     // @formatter:off
 
     /**
@@ -442,13 +442,13 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat POSTGRESQL_TEXT = DEFAULT
-    		.withDelimiter(TAB)
-    		.withEscape(DOUBLE_QUOTE_CHAR)
-    		.withIgnoreEmptyLines(false)
+            .withDelimiter(TAB)
+            .withEscape(DOUBLE_QUOTE_CHAR)
+            .withIgnoreEmptyLines(false)
             .withQuote(DOUBLE_QUOTE_CHAR)
             .withRecordSeparator(LF)
             .withNullString("\\N")
-    		.withQuoteMode(QuoteMode.ALL_NON_NULL);
+            .withQuoteMode(QuoteMode.ALL_NON_NULL);
     // @formatter:off
 
     /**
@@ -487,8 +487,8 @@ public final class CSVFormat implements Serializable {
      */
     // @formatter:off
     public static final CSVFormat TDF = DEFAULT
-    		.withDelimiter(TAB)
-    		.withIgnoreSurroundingSpaces();
+            .withDelimiter(TAB)
+            .withIgnoreSurroundingSpaces();
     // @formatter:on
 
     /**


[2/2] commons-csv git commit: Fix last checkstyle error

Posted by ki...@apache.org.
Fix last checkstyle error


Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/fc472b42
Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/fc472b42
Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/fc472b42

Branch: refs/heads/release
Commit: fc472b42f62342ecaaab6599dc2f303a59153961
Parents: 31e5054
Author: Bruno P. Kinoshita <br...@yahoo.com.br>
Authored: Sat Aug 26 19:33:27 2017 +1200
Committer: Bruno P. Kinoshita <br...@yahoo.com.br>
Committed: Sat Aug 26 19:33:27 2017 +1200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/csv/CSVParser.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/fc472b42/src/main/java/org/apache/commons/csv/CSVParser.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java
index 8851211..09251a3 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -177,7 +177,8 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
      * @since 1.5
      */
     @SuppressWarnings("resource")
-    public static CSVParser parse(final InputStream inputStream, final Charset charset, final CSVFormat format) throws IOException {
+    public static CSVParser parse(final InputStream inputStream, final Charset charset, final CSVFormat format)
+            throws IOException {
         Assertions.notNull(inputStream, "inputStream");
         Assertions.notNull(format, "format");
         return parse(new InputStreamReader(inputStream, charset), format);