[commons-codec] branch master updated: Remove hardcoded constants to improve readability

2021-06-29 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/master by this push:
 new fdf0356  Remove hardcoded constants to improve readability
 new 4e88248  Merge pull request #88 from spinscale/remove-useless-constants
fdf0356 is described below

commit fdf0356ac7a98e669b2b39400a4112884b0b1bcc
Author: Alexander Reelsen 
AuthorDate: Mon Jun 28 17:33:15 2021 +0200

Remove hardcoded constants to improve readability
---
 .../codec/language/MatchRatingApproachEncoder.java | 36 +-
 1 file changed, 15 insertions(+), 21 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
 
b/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
index dc56fb4..cf22674 100644
--- 
a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
+++ 
b/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
@@ -36,12 +36,6 @@ public class MatchRatingApproachEncoder implements 
StringEncoder {
 private static final String EMPTY = "";
 
 /**
- * Constants used mainly for the min rating value.
- */
-private static final int ONE = 1, TWO = 2, THREE = 3, FOUR = 4, FIVE = 5, 
SIX = 6, SEVEN = 7,
- ELEVEN = 11, TWELVE = 12;
-
-/**
  * The plain letter equivalent of the accented letters.
  */
 private static final String PLAIN_ASCII = "AaEeIiOoUu" + // grave
@@ -159,9 +153,9 @@ public class MatchRatingApproachEncoder implements 
StringEncoder {
 String getFirst3Last3(final String name) {
 final int nameLength = name.length();
 
-if (nameLength > SIX) {
-final String firstThree = name.substring(0, THREE);
-final String lastThree = name.substring(nameLength - THREE, 
nameLength);
+if (nameLength > 6) {
+final String firstThree = name.substring(0, 3);
+final String lastThree = name.substring(nameLength - 3, 
nameLength);
 return firstThree + lastThree;
 }
 return name;
@@ -183,16 +177,16 @@ public class MatchRatingApproachEncoder implements 
StringEncoder {
 int getMinRating(final int sumLength) {
 int minRating = 0;
 
-if (sumLength <= FOUR) {
-minRating = FIVE;
-} else if (sumLength <= SEVEN) { // aready know it is at least 5
-minRating = FOUR;
-} else if (sumLength <= ELEVEN) { // aready know it is at least 8
-minRating = THREE;
-} else if (sumLength == TWELVE) {
-minRating = TWO;
+if (sumLength <= 4) {
+minRating = 5;
+} else if (sumLength <= 7) { // aready know it is at least 5
+minRating = 4;
+} else if (sumLength <= 11) { // aready know it is at least 8
+minRating = 3;
+} else if (sumLength == 12) {
+minRating = 2;
 } else {
-minRating = ONE; // docs said little here.
+minRating = 1; // docs said little here.
 }
 
 return minRating;
@@ -243,7 +237,7 @@ public class MatchRatingApproachEncoder implements 
StringEncoder {
 
 // 4. Check for length difference - if 3 or greater then no similarity
 // comparison is done
-if (Math.abs(name1.length() - name2.length()) >= THREE) {
+if (Math.abs(name1.length() - name2.length()) >= 3) {
 return false;
 }
 
@@ -335,9 +329,9 @@ public class MatchRatingApproachEncoder implements 
StringEncoder {
 
 // Final bit - subtract longest string from 6 and return this int value
 if (strA.length() > strB.length()) {
-return Math.abs(SIX - strA.length());
+return Math.abs(6 - strA.length());
 }
-return Math.abs(SIX - strB.length());
+return Math.abs(6 - strB.length());
 }
 
 /**


[commons-lang] branch master updated: LANG-1443: Add more SystemUtils.IS_JAVA_XX variants (#415)

2019-04-05 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
 new 6e797a4  LANG-1443: Add more SystemUtils.IS_JAVA_XX variants (#415)
6e797a4 is described below

commit 6e797a40a7fb7d0e5abf555c0d179dd3937bdecb
Author: Benedikt Ritter 
AuthorDate: Fri Apr 5 18:33:35 2019 +0200

LANG-1443: Add more SystemUtils.IS_JAVA_XX variants (#415)
---
 src/changes/changes.xml|   3 +-
 .../java/org/apache/commons/lang3/JavaVersion.java |  18 
 .../java/org/apache/commons/lang3/SystemUtils.java |  24 +
 .../org/apache/commons/lang3/JavaVersionTest.java  |  19 ++--
 .../org/apache/commons/lang3/SystemUtilsTest.java  | 114 +
 5 files changed, 170 insertions(+), 8 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index ed0a635..fa8864e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,7 +46,8 @@ The  type attribute can be add,update,fix,remove.
   
 
   
-Adding the Functions class.
+Add more 
SystemUtils.IS_JAVA_XX variants.
+Adding the Functions 
class.
 Update to JUnit 
5
 Add 
@FunctionalInterface to ThreadPredicate and ThreadGroupPredicate
 Update Java Language 
requirement to 1.8
diff --git a/src/main/java/org/apache/commons/lang3/JavaVersion.java 
b/src/main/java/org/apache/commons/lang3/JavaVersion.java
index aacd3a1..c860519 100644
--- a/src/main/java/org/apache/commons/lang3/JavaVersion.java
+++ b/src/main/java/org/apache/commons/lang3/JavaVersion.java
@@ -102,6 +102,20 @@ public enum JavaVersion {
 JAVA_11(11.0f, "11"),
 
 /**
+ * Java 12
+ *
+ * @since 3.9
+ */
+JAVA_12(12.0f, "12"),
+
+/**
+ * Java 13
+ *
+ * @since 3.9
+ */
+JAVA_13(13.0f, "13"),
+
+/**
  * The most recent java version. Mainly introduced to avoid to break when 
a new version of Java is used.
  */
 JAVA_RECENT(maxVersion(), Float.toString(maxVersion()));
@@ -204,6 +218,10 @@ public enum JavaVersion {
 return JAVA_10;
 } else if ("11".equals(nom)) {
 return JAVA_11;
+} else if ("12".equals(nom)) {
+return JAVA_12;
+} else if ("13".equals(nom)) {
+return JAVA_13;
 }
 if (nom == null) {
 return null;
diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java 
b/src/main/java/org/apache/commons/lang3/SystemUtils.java
index cc51f11..f5085cf 100644
--- a/src/main/java/org/apache/commons/lang3/SystemUtils.java
+++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java
@@ -997,6 +997,30 @@ public class SystemUtils {
  */
 public static final boolean IS_JAVA_11 = getJavaVersionMatches("11");
 
+/**
+ * 
+ * Is {@code true} if this is Java version 12 (also 12.x versions).
+ * 
+ * 
+ * The field will return {@code false} if {@link #JAVA_VERSION} is {@code 
null}.
+ * 
+ *
+ * @since 3.9
+ */
+public static final boolean IS_JAVA_12 = getJavaVersionMatches("12");
+
+/**
+ * 
+ * Is {@code true} if this is Java version 13 (also 13.x versions).
+ * 
+ * 
+ * The field will return {@code false} if {@link #JAVA_VERSION} is {@code 
null}.
+ * 
+ *
+ * @since 3.9
+ */
+public static final boolean IS_JAVA_13 = getJavaVersionMatches("13");
+
 // Operating system checks
 // ---
 // These MUST be declared after those above as they depend on the
diff --git a/src/test/java/org/apache/commons/lang3/JavaVersionTest.java 
b/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
index 2bbb3c6..64d8f82 100644
--- a/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
+++ b/src/test/java/org/apache/commons/lang3/JavaVersionTest.java
@@ -20,11 +20,11 @@ package org.apache.commons.lang3;
 
 import org.junit.jupiter.api.Test;
 
-import static org.apache.commons.lang3.JavaVersion.JAVA_RECENT;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.apache.commons.lang3.JavaVersion.JAVA_0_9;
+import static org.apache.commons.lang3.JavaVersion.JAVA_10;
+import static org.apache.commons.lang3.JavaVersion.JAVA_11;
+import static org.apache.commons.lang3.JavaVersion.JAVA_12;
+import static org.apache.commons.lang3.JavaVersion.JAVA_13;
 import static org.apache.commons.lang3.JavaVersion.JAVA_1_1;
 import static org.apache.commons.lang3.JavaVersion.JAVA_1_2;
 import static org.apache.commons.lang3.JavaVersion.JAVA_1_3;
@@ -34,9 +34,12 @@ import static org.apache.common

[commons-lang] branch master updated: Add proposal for Jenkins Pipeline (#410)

2019-03-23 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
 new 4b0f3ed  Add proposal for Jenkins Pipeline (#410)
4b0f3ed is described below

commit 4b0f3ed081fc9b82778deeb7b7babef5b6f5ecf4
Author: Benedikt Ritter 
AuthorDate: Sat Mar 23 13:50:53 2019 +0100

Add proposal for Jenkins Pipeline (#410)

Introduces a Jenkins pipeline with a build stage and an
optional deploy stage that is only executed when master
branch is build.
Post actions send mails in case of build failures.
---
 Jenkinsfile | 115 
 1 file changed, 115 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 000..36799d0
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,115 @@
+#!groovy
+
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+pipeline {
+agent {
+node {
+label 'ubuntu'
+}
+}
+
+tools {
+maven 'Maven 3 (latest)'
+jdk 'JDK 1.8 (latest)'
+}
+
+stages {
+stage('Build') {
+steps {
+sh 'mvn'
+}
+post {
+always {
+junit(testResults: '**/surefire-reports/*.xml', 
allowEmptyResults: true)
+}
+}
+}
+stage('Deploy') {
+when {
+branch 'master'
+}
+steps {
+sh 'mvn deploy'
+}
+}
+}
+
+// Send out notifications on unsuccessful builds.
+post {
+// If this build failed, send an email to the list.
+failure {
+script {
+if(env.BRANCH_NAME == "master") {
+def state = (currentBuild.previousBuild != null) && 
(currentBuild.previousBuild.result == 'FAILURE') ? "Still failing" : "Failure"
+emailext(
+subject: "[Lang] Change on branch 
\"${env.BRANCH_NAME}\": ${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - $state",
+body: """The Apache Jenkins build system has built 
${env.JOB_NAME} (build #${env.BUILD_NUMBER})
+
+Status: ${currentBuild.result}
+
+Check console output at ${env.BUILD_URL} to 
view the results.
+""",
+to: "notificati...@commons.apache.org",
+recipientProviders: [[$class: 
'DevelopersRecipientProvider']]
+)
+}
+}
+}
+
+// If this build didn't fail, but there were failing tests, send an 
email to the list.
+unstable {
+script {
+if(env.BRANCH_NAME == "master") {
+def state = (currentBuild.previousBuild != null) && 
(currentBuild.previousBuild.result == 'UNSTABLE') ? "Still unstable" : 
"Unstable"
+emailext(
+subject: "[Lang] Change on branch 
\"${env.BRANCH_NAME}\": ${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - $state",
+body: """The Apache Jenkins build system has built 
${env.JOB_NAME} (build #${env.BUILD_NUMBER})
+
+Status: ${currentBuild.result}
+
+Check console output at ${env.BUILD_URL} to 
view the results.
+""",
+to: "notificati...@commons.apache.org",
+recipientProviders: [[$class: 
'DevelopersRecipientProvider']]
+)
+}
+}
+}
+
+// Send an email, if the last build was not successful and this one is.
+success {
+script {
+if ((env.BRANCH_NAME == "master") &

[commons-io] branch master updated: Fix site deployment

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
 new 66fba1c  Fix site deployment
66fba1c is described below

commit 66fba1cb89dadd60c6901e0914e74b8c155dfa64
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 20:01:13 2019 +0100

Fix site deployment
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 8351c68..70adca0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -260,6 +260,7 @@ file comparators, endian transformation classes, and much 
more.
 org.apache.commons.io.*;version=${project.version};-noimport:=true
 
 
+
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-io/
 
site-content
 2.17
   



[commons-io] branch master updated: Update scm URLs

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
 new 7c05b02  Update scm URLs
7c05b02 is described below

commit 7c05b02f646f03b247997be522568bbaee78d591
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:54:55 2019 +0100

Update scm URLs
---
 pom.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 869112e..8351c68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,9 +49,9 @@ file comparators, endian transformation classes, and much 
more.
   
 
   
-
scm:git:http://git-wip-us.apache.org/repos/asf/commons-io.git
-
scm:git:https://git-wip-us.apache.org/repos/asf/commons-io.git
-https://git-wip-us.apache.org/repos/asf?p=commons-io.git
+
scm:git:https://gitbox.apache.org/repos/asf/commons-io.git
+
scm:git:https://gitbox.apache.org/repos/asf/commons-io.git
+https://gitbox.apache.org/repos/asf?p=commons-io.git
 commons-io-2.6
   
 



[commons-cli] branch master updated: Fix JavaDoc errors

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new c5536b7  Fix JavaDoc errors
c5536b7 is described below

commit c5536b7f82862fe798ae91cd4b4a8a2df049d06a
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:49:33 2019 +0100

Fix JavaDoc errors
---
 pom.xml  | 12 
 .../java/org/apache/commons/cli/CommandLine.java | 20 ++--
 .../org/apache/commons/cli/CommandLineParser.java|  8 
 .../java/org/apache/commons/cli/DefaultParser.java   |  8 
 src/main/java/org/apache/commons/cli/Parser.java |  8 
 5 files changed, 34 insertions(+), 22 deletions(-)

diff --git a/pom.xml b/pom.xml
index 611f547..39c2a5b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -206,6 +206,18 @@
   gnu
 
   
+  
+  
+org.apache.maven.plugins
+maven-javadoc-plugin
+${commons.javadoc.version}
+
+  7
+
+  
 
 
   
diff --git a/src/main/java/org/apache/commons/cli/CommandLine.java 
b/src/main/java/org/apache/commons/cli/CommandLine.java
index 76837c3..8ee0717 100644
--- a/src/main/java/org/apache/commons/cli/CommandLine.java
+++ b/src/main/java/org/apache/commons/cli/CommandLine.java
@@ -332,14 +332,14 @@ public class CommandLine implements Serializable
 
 /**
  * Retrieve the map of values associated to the option. This is convenient
- * for options specifying Java properties like -Dparam1=value1
- * -Dparam2=value2. The first argument of the option is the key, and
+ * for options specifying Java properties like -Dparam1=value1
+ * -Dparam2=value2. The first argument of the option is the key, and
  * the 2nd argument is the value. If the option has only one argument
- * (-Dfoo) it is considered as a boolean flag and the value is
- * "true".
+ * (-Dfoo) it is considered as a boolean flag and the value is
+ * "true".
  *
  * @param option name of the option.
- * @return The Properties mapped by the option, never null
+ * @return The Properties mapped by the option, never null
  * even if the option doesn't exists.
  * @since 1.5
  */
@@ -370,14 +370,14 @@ public class CommandLine implements Serializable
 
 /**
  * Retrieve the map of values associated to the option. This is convenient
- * for options specifying Java properties like -Dparam1=value1
- * -Dparam2=value2. The first argument of the option is the key, and
+ * for options specifying Java properties like -Dparam1=value1
+ * -Dparam2=value2. The first argument of the option is the key, and
  * the 2nd argument is the value. If the option has only one argument
- * (-Dfoo) it is considered as a boolean flag and the value is
- * "true".
+ * (-Dfoo) it is considered as a boolean flag and the value is
+ * "true".
  *
  * @param opt name of the option.
- * @return The Properties mapped by the option, never null
+ * @return The Properties mapped by the option, never null
  * even if the option doesn't exists.
  * @since 1.2
  */
diff --git a/src/main/java/org/apache/commons/cli/CommandLineParser.java 
b/src/main/java/org/apache/commons/cli/CommandLineParser.java
index 20e308e..ffdd3b1 100644
--- a/src/main/java/org/apache/commons/cli/CommandLineParser.java
+++ b/src/main/java/org/apache/commons/cli/CommandLineParser.java
@@ -60,9 +60,9 @@ public interface CommandLineParser
  *
  * @param options the specified Options
  * @param arguments the command line arguments
- * @param stopAtNonOption if true an unrecognized argument stops
+ * @param stopAtNonOption if true an unrecognized argument 
stops
  * the parsing and the remaining arguments are added to the 
- * {@link CommandLine}s args list. If false an unrecognized
+ * {@link CommandLine}s args list. If false an 
unrecognized
  * argument triggers a ParseException.
  *
  * @return the list of atomic option and value tokens
@@ -78,9 +78,9 @@ public interface CommandLineParser
  * @param options the specified Options
  * @param arguments the command line arguments
  * @param properties command line option name-value pairs
- * @param stopAtNonOption if true an unrecognized argument stops
+ * @param stopAtNonOption if true an unrecognized argument 
stops
  * the parsing and the remaining arguments are added to the 
- * {@link CommandLine}s args list. If false an unrecognized
+ * {@link CommandLine}s args list. If false an 
unrecognized
  * argument triggers a ParseException.
  *
  * @return the list of atomic option and value tokens

[commons-cli] branch master updated: Add latest JDKs to travis build matrix

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 1ae5fe3  Add latest JDKs to travis build matrix
1ae5fe3 is described below

commit 1ae5fe32e59a515232a5be11188eac81667fd8a4
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:45:53 2019 +0100

Add latest JDKs to travis build matrix
---
 .travis.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 466bcea..a069d27 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,8 @@ sudo: false
 jdk:
   - openjdk7
   - openjdk8
+  - openjdk11
+  - openjdk12
   - oraclejdk8
 
 script:



[commons-cli] branch master updated: Fix site deployment

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 553ff91  Fix site deployment
553ff91 is described below

commit 553ff9102da929a9114578a8441b6ca8316e5d43
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:44:37 2019 +0100

Fix site deployment
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 04acd4d..611f547 100644
--- a/pom.xml
+++ b/pom.xml
@@ -188,6 +188,7 @@
 
 RC1
 
+
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-cli
 
site-content
 utf-8
   



[commons-cli] branch master updated: Update scm URLs

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new f7c12cd  Update scm URLs
f7c12cd is described below

commit f7c12cd9036be47c4b3f19a8f76d5cee475321ca
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:38:53 2019 +0100

Update scm URLs
---
 pom.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1a95fed..04acd4d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,9 +40,9 @@
   
 
   
-
scm:git:http://git-wip-us.apache.org/repos/asf/commons-cli.git
-
scm:git:https://git-wip-us.apache.org/repos/asf/commons-cli.git
-https://git-wip-us.apache.org/repos/asf?p=commons-cli.git
+
scm:git:https://gitbox.apache.org/repos/asf/commons-cli.git
+
scm:git:https://gitbox.apache.org/repos/asf/commons-cli.git
+https://gitbox.apache.org/repos/asf?p=commons-cli.git
 HEAD
   
 



[commons-cli] branch master updated: Update README.md

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new cdf1eba  Update README.md
cdf1eba is described below

commit cdf1ebadba1240dbb613ba536a89dfc102dc3736
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 18:23:11 2019 +0100

Update README.md
---
 README.md | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 081c421..059c39d 100644
--- a/README.md
+++ b/README.md
@@ -43,8 +43,10 @@
 Apache Commons CLI
 ===
 
-[![Build 
Status](https://travis-ci.org/apache/commons-cli.svg?branch=master)](https://travis-ci.org/apache/commons-cli)
-[![Coverage 
Status](https://coveralls.io/repos/github/apache/commons-cli/badge.svg?branch=master)](https://coveralls.io/github/apache/commons-cli?branch=master)
+[![Build 
Status](https://travis-ci.org/apache/commons-cli.svg)](https://travis-ci.org/apache/commons-cli)
+[![Coverage 
Status](https://coveralls.io/repos/apache/commons-cli/badge.svg)](https://coveralls.io/r/apache/commons-cli)
+[![Maven 
Central](https://maven-badges.herokuapp.com/maven-central/commons-cli/commons-cli/badge.svg)](https://maven-badges.herokuapp.com/maven-central/commons-cli/commons-cli/)
+[![Javadocs](https://javadoc.io/badge/commons-cli/commons-cli/1.4.svg)](https://javadoc.io/doc/commons-cli/commons-cli/1.4)
 
 Apache Commons CLI provides a simple API for presenting, processing and 
validating a command line interface.
 
@@ -101,4 +103,3 @@ Additional Resources
 + `#apache-commons` IRC channel on `irc.freenode.org`
 
 [ml]:https://commons.apache.org/mail-lists.html
-



[commons-io] branch master updated: Fix broken build (#73)

2019-02-17 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
 new f15433d  Fix broken build (#73)
f15433d is described below

commit f15433d69c96aec08c9a0c3c15a69edd8250ae2b
Author: Benedikt Ritter 
AuthorDate: Sun Feb 17 11:21:55 2019 +0100

Fix broken build (#73)

Several things were broken with the build. This fixes build failures and
makes the build pass again on all Java versions tested on Travis CI.

1. The test started to fail after the changes made in b5990be. This is
   because after changing the type of writer from Appendable to NullWriter
   the wrong overload of copy would be used:

copy(Reader, Writer) instead of copy(Reader, Appendable)

  This change just forces the right overload at the call site.

2. Replace tabs with spaces
3. Add missing package-info file
4. Fix NPE during javadoc generation

  Commons parent 46 shipped with maven-javadoc-plugin 3.0.0 which was
  affected by https://issues.apache.org/jira/browse/MJAVADOC-517.
  This upgrades the build to commons parent 47, which includes
  maven-javadoc-plugin 3.0.1.

5. Fix invalid javadoc links
6. Fix problem with Javadoc tool reporting import of unnamed modules
---
 pom.xml|  14 +-
 .../org/apache/commons/io/DirectoryWalker.java |  25 +-
 .../input/MessageDigestCalculatingInputStream.java |   6 +-
 .../io/input/buffer/CircularBufferInputStream.java | 189 -
 .../io/input/buffer/CircularByteBuffer.java| 421 +++--
 .../io/input/buffer/PeekableInputStream.java   | 119 +++---
 .../commons/io/input/buffer/package-info.java  |  17 +
 .../org/apache/commons/io/IOUtilsCopyTestCase.java |   2 +-
 8 files changed, 424 insertions(+), 369 deletions(-)

diff --git a/pom.xml b/pom.xml
index 55c9e5b..869112e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
   
 org.apache.commons
 commons-parent
-46
+47
   
   4.0.0
   commons-io
@@ -350,6 +350,18 @@ file comparators, endian transformation classes, and much 
more.
   
 
   
+  
+  
+org.apache.maven.plugins
+maven-javadoc-plugin
+${commons.javadoc.version}
+
+  7
+
+  
 
   
 
diff --git a/src/main/java/org/apache/commons/io/DirectoryWalker.java 
b/src/main/java/org/apache/commons/io/DirectoryWalker.java
index 8e5a63d..a897c38 100644
--- a/src/main/java/org/apache/commons/io/DirectoryWalker.java
+++ b/src/main/java/org/apache/commons/io/DirectoryWalker.java
@@ -36,16 +36,15 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
  * 
  * The following sections describe:
  *   
- *  1. Example Implementation - 
example
+ *  1. Example Implementation - example
  *  FileCleaner implementation.
- *  2. Filter Example - using
+ *  2. Filter Example - using
  *  {@link FileFilter}(s) with DirectoryWalker.
- *  3. Cancellation - how to 
implement cancellation
+ *  3. Cancellation - how to implement 
cancellation
  *  behaviour.
  *   
  *
- * 
- * 1. Example Implementation
+ * 1. Example Implementation
  *
  * There are many possible extensions, for example, to delete all
  * files and '.svn' directories, and return a list of deleted files:
@@ -81,8 +80,7 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
  *  }
  * 
  *
- * 
- * 2. Filter Example
+ * 2. Filter Example
  *
  * Choosing which directories and files to process can be a key aspect
  * of using this class. This information can be setup in three ways,
@@ -148,8 +146,7 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
  * This is much simpler than the previous example, and is why it is the 
preferred
  * option for filtering.
  *
- * 
- * 3. Cancellation
+ * 3. Cancellation
  *
  * The DirectoryWalker contains some of the logic required for cancel 
processing.
  * Subclasses must complete the implementation.
@@ -172,17 +169,16 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
  * 
  * Two possible scenarios are envisaged for cancellation:
  * 
- *3.1 External / 
Multi-threaded - cancellation being
+ *3.1 External / Multi-threaded - cancellation 
being
  *decided/initiated by an external process.
- *3.2 Internal - cancellation 
being decided/initiated
+ *3.2 Internal - cancellation being 
decided/initiated
  *from within a DirectoryWalker implementation.
  * 
  * 
  * The following sections provide example implementations for these two 
different
  * scenarios.
  *
- * 
- * 3.1 External / Multi-threaded
+ * 3.1 External / Multi-threaded
  *
  * This example provides a public cancel() method that can be
  * called by another thread to stop the processing.

[commons-cli] branch master updated: Fix JavaDoc warning

2019-02-09 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 18e3638  Fix JavaDoc warning
18e3638 is described below

commit 18e36386a232ca7e31931bd1d51b91a7eadcf72c
Author: Benedikt Ritter 
AuthorDate: Sat Feb 9 17:20:24 2019 +0100

Fix JavaDoc warning
---
 src/main/java/org/apache/commons/cli/TypeHandler.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/cli/TypeHandler.java 
b/src/main/java/org/apache/commons/cli/TypeHandler.java
index 9ed8beb..6c43ccd 100644
--- a/src/main/java/org/apache/commons/cli/TypeHandler.java
+++ b/src/main/java/org/apache/commons/cli/TypeHandler.java
@@ -54,7 +54,8 @@ public class TypeHandler
  * with the value of str.
  *
  * @param str the command line value
- * @param clazz the type of argument
+ * @param clazz the class representing the type of argument
+ * @param  type of argument
  * @return The instance of clazz initialised with
  * the value of str.
  * @throws ParseException if the value creation for the given class failed



[commons-cli] branch master updated: Update to latest commons parent pom

2019-02-09 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new c77ca6f  Update to latest commons parent pom
c77ca6f is described below

commit c77ca6f44a980e6dc2b02fef4a0c5d79f7f2c397
Author: Benedikt Ritter 
AuthorDate: Sat Feb 9 17:18:29 2019 +0100

Update to latest commons parent pom
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index d87f637..a227751 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
   
 org.apache.commons
 commons-parent
-42
+47
   
   4.0.0
   commons-cli



[commons-csv] branch master updated: Add missing Apache license header

2019-02-09 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git


The following commit(s) were added to refs/heads/master by this push:
 new 7684694  Add missing Apache license header
7684694 is described below

commit 7684694173c77c2c9ca8ec1e41adf0e5363872a6
Author: Benedikt Ritter 
AuthorDate: Sat Feb 9 17:04:14 2019 +0100

Add missing Apache license header
---
 src/main/java/org/apache/commons/csv/IOUtils.java | 16 
 1 file changed, 16 insertions(+)

diff --git a/src/main/java/org/apache/commons/csv/IOUtils.java 
b/src/main/java/org/apache/commons/csv/IOUtils.java
index 820df74..e82fb04 100644
--- a/src/main/java/org/apache/commons/csv/IOUtils.java
+++ b/src/main/java/org/apache/commons/csv/IOUtils.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.commons.csv;
 
 import java.io.IOException;



[commons-lang] branch master updated: Simplify test code by using lambda expressions

2019-02-09 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
 new 75768ba  Simplify test code by using lambda expressions
75768ba is described below

commit 75768ba2724e2bb1d9a7a450f882be7d9f806a57
Author: Benedikt Ritter 
AuthorDate: Sat Feb 9 16:56:09 2019 +0100

Simplify test code by using lambda expressions
---
 .../java/org/apache/commons/lang3/RangeTest.java   | 30 +-
 1 file changed, 6 insertions(+), 24 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/RangeTest.java 
b/src/test/java/org/apache/commons/lang3/RangeTest.java
index e6b748c..fe229b9 100644
--- a/src/test/java/org/apache/commons/lang3/RangeTest.java
+++ b/src/test/java/org/apache/commons/lang3/RangeTest.java
@@ -64,12 +64,7 @@ public class RangeTest {
 @SuppressWarnings({ "rawtypes", "unchecked" })
 @Test
 public void testComparableConstructors() {
-final Comparable c = new Comparable() {
-@Override
-public int compareTo(final Object other) {
-return 1;
-}
-};
+final Comparable c = other -> 1;
 final Range r1 = Range.is(c);
 final Range r2 = Range.between(c, c);
 assertTrue(r1.isNaturalOrdering());
@@ -78,12 +73,8 @@ public class RangeTest {
 
 @Test
 public void testIsWithCompare() {
-final Comparator c = new Comparator() {
-@Override
-public int compare(final Integer o1, final Integer o2) {
-return 0; // all integers are equal
-}
-};
+// all integers are equal
+final Comparator c = (o1, o2) -> 0;
 Range ri = Range.is(10);
 assertFalse(ri.contains(null), "should not contain null");
 assertTrue(ri.contains(10), "should contain 10");
@@ -96,18 +87,9 @@ public class RangeTest {
 
 @Test
 public void testBetweenWithCompare() {
-final Comparator c = new Comparator() {
-@Override
-public int compare(final Integer o1, final Integer o2) {
-return 0; // all integers are equal
-}
-};
-final Comparator lengthComp = new Comparator() {
-@Override
-public int compare(final String str1, final String str2) {
-return str1.length() - str2.length();
-}
-};
+// all integers are equal
+final Comparator c = (o1, o2) -> 0;
+final Comparator lengthComp = 
Comparator.comparingInt(String::length);
 Range rb = Range.between(-10, 20);
 assertFalse(rb.contains(null), "should not contain null");
 assertTrue(rb.contains(10), "should contain 10");



[commons-lang] branch master updated: Add missing Apache license header

2019-02-08 Thread britter
This is an automated email from the ASF dual-hosted git repository.

britter pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
 new ef1480a  Add missing Apache license header
ef1480a is described below

commit ef1480a5058477af5bf7d45fcccfe8de8508d644
Author: Benedikt Ritter 
AuthorDate: Fri Feb 8 16:42:31 2019 +0100

Add missing Apache license header
---
 .../java/org/apache/commons/lang3/FunctionsTest.java | 16 
 1 file changed, 16 insertions(+)

diff --git a/src/test/java/org/apache/commons/lang3/FunctionsTest.java 
b/src/test/java/org/apache/commons/lang3/FunctionsTest.java
index baef2dd..b0f611a 100644
--- a/src/test/java/org/apache/commons/lang3/FunctionsTest.java
+++ b/src/test/java/org/apache/commons/lang3/FunctionsTest.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.commons.lang3;
 
 import static org.junit.jupiter.api.Assertions.*;



svn commit: r1852822 - in /commons/proper/beanutils/trunk: build.properties.sample build.xml

2019-02-03 Thread britter
Author: britter
Date: Sun Feb  3 09:57:04 2019
New Revision: 1852822

URL: http://svn.apache.org/viewvc?rev=1852822&view=rev
Log:
Drop ant build

Removed:
commons/proper/beanutils/trunk/build.properties.sample
commons/proper/beanutils/trunk/build.xml



svn commit: r1841934 - in /commons/cms-site/trunk: conf/component_releases.properties doap/doap_csv.rdf

2018-09-25 Thread britter
Author: britter
Date: Tue Sep 25 13:29:23 2018
New Revision: 1841934

URL: http://svn.apache.org/viewvc?rev=1841934&view=rev
Log:
Add Apache Commons CSV 1.6 release

Modified:
commons/cms-site/trunk/conf/component_releases.properties
commons/cms-site/trunk/doap/doap_csv.rdf

Modified: commons/cms-site/trunk/conf/component_releases.properties
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/conf/component_releases.properties?rev=1841934&r1=1841933&r2=1841934&view=diff
==
--- commons/cms-site/trunk/conf/component_releases.properties (original)
+++ commons/cms-site/trunk/conf/component_releases.properties Tue Sep 25 
13:29:23 2018
@@ -16,8 +16,8 @@ compressVersion=1.18
 compressReleased=2018-08-16
 configurationVersion=2.3
 configurationReleased=2018-08-08
-csvVersion=1.5
-csvReleased=2017-09-03
+csvVersion=1.6
+csvReleased=2018-09-25
 cryptoVersion=1.0.0
 cryptoReleased=2016-07-22
 daemonVersion=1.0.15

Modified: commons/cms-site/trunk/doap/doap_csv.rdf
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/doap/doap_csv.rdf?rev=1841934&r1=1841933&r2=1841934&view=diff
==
--- commons/cms-site/trunk/doap/doap_csv.rdf (original)
+++ commons/cms-site/trunk/doap/doap_csv.rdf Tue Sep 25 13:29:23 2018
@@ -15,7 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
 -->
-http://usefulinc.com/ns/doap#"; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns:asfext="http://projects.apache.org/ns/asfext#"; 
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; 
xmlns:doap="http://usefulinc.com/ns/doap#"; xml:lang="en">
+http://usefulinc.com/ns/doap#"; 
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
+  xmlns:asfext="http://projects.apache.org/ns/asfext#"; 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; 
+  xmlns:doap="http://usefulinc.com/ns/doap#"; xml:lang="en">
   http://commons.apache.org/csv/";>
 Apache Commons CSV
 http://commons.apache.org/csv/"/>
@@ -39,6 +43,13 @@
 
   
 commons-csv
+2018-09-25
+1.6
+  
+
+
+  
+commons-csv
 2017-09-03
 1.5
   




[11/12] commons-csv git commit: Update version numbers for commons-csv release 1.6

2018-09-25 Thread britter
Update version numbers for commons-csv release 1.6


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

Branch: refs/heads/master
Commit: 2596fdeebcab53fe459c481990bf1dec838128a5
Parents: 11b557e
Author: Benedikt Ritter 
Authored: Wed Sep 19 13:45:44 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 13:45:44 2018 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596fdee/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 893989b..a920cbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 47
   
   commons-csv
-  1.6-SNAPSHOT
+  1.6
   Apache Commons CSV
   http://commons.apache.org/proper/commons-csv/
   



[10/12] commons-csv git commit: Update NOTICE.txt

2018-09-25 Thread britter
Update NOTICE.txt


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

Branch: refs/heads/master
Commit: 11b557ee48d0e71d96663932d446e9b12d78a611
Parents: 544400b
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:54:57 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:54:57 2018 +0200

--
 NOTICE.txt | 2 +-
 pom.xml| 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/11b557ee/NOTICE.txt
--
diff --git a/NOTICE.txt b/NOTICE.txt
index 14c9397..85a48c8 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,5 +1,5 @@
 Apache Commons CSV
-Copyright 2005-2017 The Apache Software Foundation
+Copyright 2005-2018 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/11b557ee/pom.xml
--
diff --git a/pom.xml b/pom.xml
index d694794..893989b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -142,6 +142,7 @@ CSV files of various types.
 org.apache.commons.csv
 CSV
 12313222
+2005
 1.7
 1.7
 



[02/12] commons-csv git commit: Add temporary fix for COMMONSSITE-125

2018-09-25 Thread britter
Add temporary fix for COMMONSSITE-125


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

Branch: refs/heads/master
Commit: af261c8fbf29b215f8ab9ff66200948968ac28c0
Parents: 62515c5
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:38:30 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:38:30 2018 +0200

--
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/af261c8f/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 5433ba2..3fa6dd4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,6 +155,8 @@ CSV files of various types.
 
 
 
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}
+
+
org.apache.commons.${commons.componentid}
   
 
   



[08/12] commons-csv git commit: Add release date

2018-09-25 Thread britter
Add release date


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

Branch: refs/heads/master
Commit: b3bb9776ae91da0d14d3039a58b7fe20f9482300
Parents: a6458f1
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:27:08 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:27:08 2018 +0200

--
 src/changes/changes.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/b3bb9776/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 607b979..66cccab 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,7 +38,7 @@
 Release Notes
   
   
-
+
   Add more 
documentation to CSVPrinter.
   Add autoFlush option for CsvPrinter. PR #24.
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).



[07/12] commons-csv git commit: Add RELEASE-NOTES for release 1.6

2018-09-25 Thread britter
Add RELEASE-NOTES for release 1.6


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

Branch: refs/heads/master
Commit: a6458f1587cd0159598f3fd984e2c810b94acc0d
Parents: 6182013
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:26:20 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:26:20 2018 +0200

--
 RELEASE-NOTES.txt | 54 ++
 1 file changed, 54 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/a6458f15/RELEASE-NOTES.txt
--
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index cf7c853..3497353 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -1,4 +1,58 @@
 Apache Commons CSV
+Version 1.6
+   Release Notes
+
+
+INTRODUCTION:
+
+This document contains the release notes for the 1.6 version of
+Apache Commons CSV. Commons CSV reads and writes files in variations of the
+Comma Separated Value (CSV) format.
+
+CSV requires at least Java 7.
+
+The Apache Commons CSV library provides a simple interface for reading and
+writing CSV files of various types.
+
+Feature and bug fix release.
+
+Changes in this version include:
+
+NEW FEATURES
+==
+
+o CSV-217:  Add autoFlush option for CsvPrinter. PR #24.
+Thanks to Korolyov Alexei.
+o CSV-220:  Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
+Thanks to Gary Gregory.
+
+FIXED BUGS
+
+
+o CSV-219:  The behavior of quote char using is not similar as Excel does when
+the first string contains CJK char(s). Thanks to Zhang Hongda.
+o CSV-172:  Don't quote cells just because they have UTF-8 encoded characters.
+Thanks to Andrew Pennebaker.
+o CSV-223:  Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
+Thanks to Samuel Martin.
+o CSV-209:  Create CSVFormat.ORACLE preset. Thanks to Gary Gregory.
+o CSV-224:  Some multi-iterator parsing peek sequences incorrectly consume
+elements. Thanks to David Warshaw.
+o CSV-225:  Parse method should avoid creating a redundant BufferedReader.
+Thanks to Anson Schwabecher.
+
+CHANGES
+=
+
+o CSV-231:  Add more documentation to CSVPrinter.
+
+
+Have fun!
+-Apache Commons CSV team
+
+--
+
+Apache Commons CSV
 Version 1.5
Release Notes
 



[09/12] commons-csv git commit: Regenerate GitHub documentation

2018-09-25 Thread britter
Regenerate GitHub documentation


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

Branch: refs/heads/master
Commit: 544400be1858c5c060f1edfc455b02b34747c21e
Parents: b3bb977
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:52:48 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:52:48 2018 +0200

--
 CONTRIBUTING.md | 4 ++--
 README.md   | 8 
 2 files changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/544400be/CONTRIBUTING.md
--
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a259af1..5d133b3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -50,7 +50,7 @@ Getting Started
 
 + Make sure you have a [JIRA account](https://issues.apache.org/jira/).
 + Make sure you have a [GitHub account](https://github.com/signup/free).
-+ If you're planning to implement a new feature it makes sense to discuss 
you're changes on the [dev list](https://commons.apache.org/mail-lists.html) 
first. This way you can make sure you're not wasting your time on something 
that isn't considered to be in Apache Commons CSV's scope.
++ If you're planning to implement a new feature it makes sense to discuss your 
changes on the [dev list](https://commons.apache.org/mail-lists.html) first. 
This way you can make sure you're not wasting your time on something that isn't 
considered to be in Apache Commons CSV's scope.
 + Submit a [Jira Ticket][jira] for your issue, assuming one does not already 
exist.
   + Clearly describe the issue including steps to reproduce when it is a bug.
   + Make sure you fill in the earliest version that you know has the issue.
@@ -107,7 +107,7 @@ Additional Resources
 + [Apache Commons CSV JIRA project page][jira]
 + [Contributor License Agreement][cla]
 + [General GitHub documentation](https://help.github.com/)
-+ [GitHub pull request 
documentation](https://help.github.com/send-pull-requests/)
++ [GitHub pull request 
documentation](https://help.github.com/articles/creating-a-pull-request/)
 + [Apache Commons Twitter Account](https://twitter.com/ApacheCommons)
 + `#apache-commons` IRC channel on `irc.freenode.net`
 

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/544400be/README.md
--
diff --git a/README.md b/README.md
index 68b7aa4..32385ab 100644
--- a/README.md
+++ b/README.md
@@ -43,10 +43,10 @@
 Apache Commons CSV
 ===
 
-[![Build 
Status](https://travis-ci.org/apache/commons-csv.svg?branch=master)](https://travis-ci.org/apache/commons-csv)
-[![Coverage 
Status](https://coveralls.io/repos/apache/commons-csv/badge.svg?branch=master)](https://coveralls.io/r/apache/commons-csv)
+[![Build 
Status](https://travis-ci.org/apache/commons-csv.svg)](https://travis-ci.org/apache/commons-csv)
+[![Coverage 
Status](https://coveralls.io/repos/apache/commons-csv/badge.svg)](https://coveralls.io/r/apache/commons-csv)
 [![Maven 
Central](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-csv/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-csv/)
-[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
+[![Javadocs](https://javadoc.io/badge/org.apache.commons/commons-csv/1.6.svg)](https://javadoc.io/doc/org.apache.commons/commons-csv/1.6)
 
 The Apache Commons CSV library provides a simple interface for reading and 
writing
 CSV files of various types.
@@ -68,7 +68,7 @@ Alternatively you can pull it from the central Maven 
repositories:
 
   org.apache.commons
   commons-csv
-  1.5
+  1.6
 
 ```
 



[05/12] commons-csv git commit: Update website for commons-csv 1.6 release

2018-09-25 Thread britter
Update website for commons-csv 1.6 release


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

Branch: refs/heads/master
Commit: 2596582d61083f0d6ea9e3de63307d005f9aab2d
Parents: 6c87f1f
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:03:14 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:03:14 2018 +0200

--
 src/site/site.xml   | 2 ++
 src/site/xdoc/index.xml | 6 --
 2 files changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596582d/src/site/site.xml
--
diff --git a/src/site/site.xml b/src/site/site.xml
index 25165bc..ad46165 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -40,6 +40,7 @@
   
   
   
+  
   
   
   
@@ -49,6 +50,7 @@
 
 
 
+  
   
   
   

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596582d/src/site/xdoc/index.xml
--
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 04dabfb..8d8b248 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -51,6 +51,7 @@ The Javadoc API documents are available online:
 
 
   Javadoc trunk
+  Javadoc 1.6
   Javadoc 1.5
   Javadoc 1.4
   Javadoc 1.3
@@ -66,7 +67,8 @@ The git repository can be
 
 
 
-  http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.5 (mirrors) requires Java 1.7
+  http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.6 (mirrors) requires Java 1.7
+  http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.5 (archives) requires Java 1.7
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.3 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.2 (archives) requires Java 1.6
@@ -89,7 +91,7 @@ For previous releases, see the http://archive.apache.org/dist/commons/c
   
 org.apache.commons
 commons-csv
-1.5
+1.6
 
 
 



[06/12] commons-csv git commit: Generate download page for release 1.6

2018-09-25 Thread britter
Generate download page for release 1.6


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

Branch: refs/heads/master
Commit: 61820130cda780da09627ecab910a003567a280c
Parents: 2596582
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:16:55 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:16:55 2018 +0200

--
 src/site/xdoc/download_csv.xml | 28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/61820130/src/site/xdoc/download_csv.xml
--
diff --git a/src/site/xdoc/download_csv.xml b/src/site/xdoc/download_csv.xml
index ab02d63..4eaf015 100644
--- a/src/site/xdoc/download_csv.xml
+++ b/src/site/xdoc/download_csv.xml
@@ -102,7 +102,7 @@ limitations under the License.
 It is essential that you
 https://www.apache.org/info/verification.html";>verify the 
integrity
 of downloaded files, preferably using the PGP signature 
(*.asc files);
-failing that using the MD5 hash (*.md5 
checksum files).
+failing that using the SHA-512 hash 
(*.sha512 checksum files).
   
   
 The https://www.apache.org/dist/commons/KEYS";>KEYS
@@ -111,32 +111,32 @@ limitations under the License.
   
 
 
-
+
   
 
   
-  commons-csv-1.5-bin.tar.gz
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.tar.gz.md5";>md5
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.tar.gz.asc";>pgp
+  commons-csv-1.6-bin.tar.gz
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.asc";>pgp
   
   
-  commons-csv-1.5-bin.zip
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.zip.md5";>md5
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.zip.asc";>pgp
+  commons-csv-1.6-bin.zip
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.zip.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.zip.asc";>pgp
   
 
   
   
 
   
-  commons-csv-1.5-src.tar.gz
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.tar.gz.md5";>md5
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.tar.gz.asc";>pgp
+  commons-csv-1.6-src.tar.gz
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.tar.gz.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.tar.gz.asc";>pgp
   
   
-  commons-csv-1.5-src.zip
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.zip.md5";>md5
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.zip.asc";>pgp
+  commons-csv-1.6-src.zip
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.zip.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.zip.asc";>pgp
   
 
   



[01/12] commons-csv git commit: Update to latest commons-parent

2018-09-25 Thread britter
Repository: commons-csv
Updated Branches:
  refs/heads/master 4e1802db9 -> 70187c317
Updated Tags:  refs/tags/csv-1.6 [created] d5524f070


Update to latest commons-parent


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

Branch: refs/heads/master
Commit: 62515c52eccb30533615c0dfd8bf072b635268db
Parents: 4e1802d
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:32:55 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:32:55 2018 +0200

--
 pom.xml | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/62515c52/pom.xml
--
diff --git a/pom.xml b/pom.xml
index f9491cf..5433ba2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
   
 org.apache.commons
 commons-parent
-43
+47
   
   commons-csv
   1.6-SNAPSHOT
@@ -152,6 +152,9 @@ CSV files of various types.
 2.17
 
${basedir}/LICENSE-header.txt
 LICENSE.txt, 
NOTICE.txt
+
+
+
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}
   
 
   



[12/12] commons-csv git commit: Bump to next development version

2018-09-25 Thread britter
Bump to next development version


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

Branch: refs/heads/master
Commit: 70187c3171effc1c824c0e38f69b9211a351f6be
Parents: 2596fde
Author: Benedikt Ritter 
Authored: Tue Sep 25 15:11:34 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Sep 25 15:11:34 2018 +0200

--
 pom.xml | 2 +-
 src/changes/changes.xml | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/70187c31/pom.xml
--
diff --git a/pom.xml b/pom.xml
index a920cbc..6de64ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 47
   
   commons-csv
-  1.6
+  1.7-SNAPSHOT
   Apache Commons CSV
   http://commons.apache.org/proper/commons-csv/
   

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/70187c31/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 66cccab..dc3ab09 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,6 +38,8 @@
 Release Notes
   
   
+
+
 
   Add more 
documentation to CSVPrinter.
   Add autoFlush option for CsvPrinter. PR #24.



[04/12] commons-csv git commit: Fix link to release archive

2018-09-25 Thread britter
Fix link to release archive


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

Branch: refs/heads/master
Commit: 6c87f1fe41d93057dbccbf074f855b56dc737950
Parents: 79adf78
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:59:14 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:59:14 2018 +0200

--
 src/site/xdoc/index.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/6c87f1fe/src/site/xdoc/index.xml
--
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 40df179..04dabfb 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -67,7 +67,7 @@ The git repository can be
 
 
   http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.5 (mirrors) requires Java 1.7
-  http://commons.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
+  http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.3 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.2 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.1 (archives) requires Java 1.6



[03/12] commons-csv git commit: Adopt commons-jcs way of generating SHA-512 checksums

2018-09-25 Thread britter
Adopt commons-jcs way of generating SHA-512 checksums


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

Branch: refs/heads/master
Commit: 79adf78d231388350b8c8fb2fd16b7810e332620
Parents: af261c8
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:51:35 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:51:35 2018 +0200

--
 pom.xml | 39 +++
 1 file changed, 39 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/79adf78d/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 3fa6dd4..d694794 100644
--- a/pom.xml
+++ b/pom.xml
@@ -242,6 +242,45 @@ CSV files of various types.
   
 
   
+
+  
+  
+net.nicoulaj.maven.plugins
+checksum-maven-plugin
+1.7
+
+  
+generate.checksums
+verify
+
+  files
+
+  
+
+
+  
+SHA-512
+  
+  false
+  
+
+  ${project.build.directory}
+  
+
${project.artifactId}-${project.version}-src.zip
+
+  ${project.artifactId}-${project.version}-src.tar.gz
+
+
${project.artifactId}-${project.version}-bin.zip
+
+  ${project.artifactId}-${project.version}-bin.tar.gz
+
+  
+
+  
+
+  
 
   
 



svn commit: r29661 - /release/commons/csv/README.html

2018-09-25 Thread britter
Author: britter
Date: Tue Sep 25 13:05:30 2018
New Revision: 29661

Log:
Update README for commons-csv 1.6 release

Modified:
release/commons/csv/README.html

Modified: release/commons/csv/README.html
==
--- release/commons/csv/README.html (original)
+++ release/commons/csv/README.html Tue Sep 25 13:05:30 2018
@@ -1,6 +1,6 @@
-Apache Commons CSV v1.5.
+Apache Commons CSV v1.6.
 
-This is the 1.5 version of Apache Commons CSV. It is available in both 
binary and source distributions.
+This is the 1.6 version of Apache Commons CSV. It is available in both 
binary and source distributions.
 
 
 Note:
@@ -39,12 +39,12 @@ HREF="http://www.apache.org/dist/commons
 
 Always test available signatures, e.g.,
 $ pgpk -a KEYS
-$ pgpv commons-csv-1.5-bin.tar.gz.asc
+$ pgpv commons-csv-1.6-bin.tar.gz.asc
 or,
 $ pgp -ka KEYS
-$ pgp commons-csv-1.5-bin.tar.gz.asc
+$ pgp commons-csv-1.6-bin.tar.gz.asc
 or,
 $ gpg --import KEYS
-$ gpg --verify commons-csv-1.5-bin.tar.gz.asc
+$ gpg --verify commons-csv-1.6-bin.tar.gz.asc
 
 




svn commit: r29660 - /dev/commons/csv/1.6-RC1/ /dev/commons/csv/1.6-RC1/binaries/ /dev/commons/csv/1.6-RC1/source/ /release/commons/csv/ /release/commons/csv/binaries/ /release/commons/csv/source/

2018-09-25 Thread britter
Author: britter
Date: Tue Sep 25 13:01:06 2018
New Revision: 29660

Log:
Publish commons-csv 1.6 Release

Added:
release/commons/csv/RELEASE-NOTES.txt
  - copied unchanged from r29659, dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt
release/commons/csv/binaries/commons-csv-1.6-bin.tar.gz
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz
release/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.asc
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.asc
release/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.sha512
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.sha512
release/commons/csv/binaries/commons-csv-1.6-bin.zip
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip
release/commons/csv/binaries/commons-csv-1.6-bin.zip.asc
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.asc
release/commons/csv/binaries/commons-csv-1.6-bin.zip.sha512
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.sha512
release/commons/csv/source/commons-csv-1.6-src.tar.gz
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz
release/commons/csv/source/commons-csv-1.6-src.tar.gz.asc
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.asc
release/commons/csv/source/commons-csv-1.6-src.tar.gz.sha512
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.sha512
release/commons/csv/source/commons-csv-1.6-src.zip
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip
release/commons/csv/source/commons-csv-1.6-src.zip.asc
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.asc
release/commons/csv/source/commons-csv-1.6-src.zip.sha512
  - copied unchanged from r29659, 
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.sha512
Removed:
dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.asc
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.sha512
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.asc
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.sha512
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.asc
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.sha512
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.asc
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.sha512



svn commit: r29508 - in /dev/commons/csv/1.6-RC1: ./ binaries/ source/

2018-09-19 Thread britter
Author: britter
Date: Wed Sep 19 11:57:06 2018
New Revision: 29508

Log:
Add Apache Commons CSV 1.6 RC1

Added:
dev/commons/csv/1.6-RC1/
dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt
dev/commons/csv/1.6-RC1/binaries/
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz   (with props)
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.asc
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.tar.gz.sha512
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip   (with props)
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.asc
dev/commons/csv/1.6-RC1/binaries/commons-csv-1.6-bin.zip.sha512
dev/commons/csv/1.6-RC1/source/
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz   (with props)
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.asc
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.tar.gz.sha512
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip   (with props)
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.asc
dev/commons/csv/1.6-RC1/source/commons-csv-1.6-src.zip.sha512

Added: dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt
==
--- dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt (added)
+++ dev/commons/csv/1.6-RC1/RELEASE-NOTES.txt Wed Sep 19 11:57:06 2018
@@ -0,0 +1,386 @@
+Apache Commons CSV
+Version 1.6
+   Release Notes
+
+
+INTRODUCTION:
+
+This document contains the release notes for the 1.6 version of
+Apache Commons CSV. Commons CSV reads and writes files in variations of the
+Comma Separated Value (CSV) format.
+
+CSV requires at least Java 7.
+
+The Apache Commons CSV library provides a simple interface for reading and
+writing CSV files of various types.
+
+Feature and bug fix release.
+
+Changes in this version include:
+
+NEW FEATURES
+==
+
+o CSV-217:  Add autoFlush option for CsvPrinter. PR #24.
+Thanks to Korolyov Alexei.
+o CSV-220:  Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
+Thanks to Gary Gregory.
+
+FIXED BUGS
+
+
+o CSV-219:  The behavior of quote char using is not similar as Excel does when
+the first string contains CJK char(s). Thanks to Zhang Hongda.
+o CSV-172:  Don't quote cells just because they have UTF-8 encoded characters.
+Thanks to Andrew Pennebaker.
+o CSV-223:  Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
+Thanks to Samuel Martin.
+o CSV-209:  Create CSVFormat.ORACLE preset. Thanks to Gary Gregory.
+o CSV-224:  Some multi-iterator parsing peek sequences incorrectly consume
+elements. Thanks to David Warshaw.
+o CSV-225:  Parse method should avoid creating a redundant BufferedReader.
+Thanks to Anson Schwabecher.
+
+CHANGES
+=
+
+o CSV-231:  Add more documentation to CSVPrinter.
+
+
+Have fun!
+-Apache Commons CSV team
+
+--
+
+Apache Commons CSV
+Version 1.5
+   Release Notes
+
+
+INTRODUCTION:
+
+This document contains the release notes for the 1.5 version of Apache Commons 
CSV.
+Commons CSV reads and writes files in variations of the Comma Separated Value 
(CSV) format.
+
+CSV requires at least Java 7.
+
+The Apache Commons CSV library provides a simple interface for reading and 
writing
+CSV files of various types.
+
+Feature and bug fix release
+
+Changes in this version include:
+
+NEW FEATURES
+==
+
+o CSV-189:  CSVParser: Add factory method accepting InputStream. Thanks to 
Peter Holzwarth, Gary Gregory.
+o CSV-190:  Add convenience API CSVFormat.print(File, Charset). Thanks to Gary 
Gregory.
+o CSV-191:  Add convenience API CSVFormat.print(Path, Charset). Thanks to Gary 
Gregory.
+o CSV-192:  Add convenience API CSVParser.parse(Path, Charset, CSVFormat). 
Thanks to Gary Gregory.
+o CSV-205:  Add convenience API CSVFormat#printer() to print to System.out. 
Thanks to Gary Gregory.
+o CSV-207:  Provide a CSV Format for printing PostgreSQL CSV and Text formats. 
Thanks to Gary Gregory.
+o CSV-214:  Adding a placeholder in the Lexer and CSV parser to store the 
end-of-line string. Thanks to Nitin Mahendru, Gary Gregory.
+
+FIXED BUGS
+
+
+o CSV-203:  withNullString value is printed without quotes when QuoteMode.ALL 
is specified; add QuoteMode.ALL_NON_NULL. PR #17. Thanks to Richard Wheeldon, 
Kai Paroth.
+o CSV-194:  Fix outdated comments about FileReader in CSVParser #13. Thanks to 
Marc Prud'hommeaux.
+o CSV-193:  Fix incorrect method name 'withFirstRowAsHeader' in user guide. 
Thanks to Matthias Wiehl.
+o CSV-171:  Negative numeric values in the first column are always quoted in 
minimal mode. Thanks to Gary Gregory, Michael Graessle, Adrian Bridgett.
+
+CHANGES

commons-csv git commit: Update version numbers for commons-csv release 1.6

2018-09-19 Thread britter
Repository: commons-csv
Updated Branches:
  refs/heads/release 11b557ee4 -> 2596fdeeb


Update version numbers for commons-csv release 1.6


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

Branch: refs/heads/release
Commit: 2596fdeebcab53fe459c481990bf1dec838128a5
Parents: 11b557e
Author: Benedikt Ritter 
Authored: Wed Sep 19 13:45:44 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 13:45:44 2018 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596fdee/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 893989b..a920cbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 47
   
   commons-csv
-  1.6-SNAPSHOT
+  1.6
   Apache Commons CSV
   http://commons.apache.org/proper/commons-csv/
   



[commons-csv] Git Push Summary

2018-09-19 Thread britter
Repository: commons-csv
Updated Tags:  refs/tags/csv-1.6-RC1 [created] 3c2d7919f


[3/5] commons-csv git commit: Add release date

2018-09-19 Thread britter
Add release date


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

Branch: refs/heads/release
Commit: b3bb9776ae91da0d14d3039a58b7fe20f9482300
Parents: a6458f1
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:27:08 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:27:08 2018 +0200

--
 src/changes/changes.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/b3bb9776/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 607b979..66cccab 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,7 +38,7 @@
 Release Notes
   
   
-
+
   Add more 
documentation to CSVPrinter.
   Add autoFlush option for CsvPrinter. PR #24.
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).



[2/5] commons-csv git commit: Add RELEASE-NOTES for release 1.6

2018-09-19 Thread britter
Add RELEASE-NOTES for release 1.6


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

Branch: refs/heads/release
Commit: a6458f1587cd0159598f3fd984e2c810b94acc0d
Parents: 6182013
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:26:20 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:26:20 2018 +0200

--
 RELEASE-NOTES.txt | 54 ++
 1 file changed, 54 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/a6458f15/RELEASE-NOTES.txt
--
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index cf7c853..3497353 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -1,4 +1,58 @@
 Apache Commons CSV
+Version 1.6
+   Release Notes
+
+
+INTRODUCTION:
+
+This document contains the release notes for the 1.6 version of
+Apache Commons CSV. Commons CSV reads and writes files in variations of the
+Comma Separated Value (CSV) format.
+
+CSV requires at least Java 7.
+
+The Apache Commons CSV library provides a simple interface for reading and
+writing CSV files of various types.
+
+Feature and bug fix release.
+
+Changes in this version include:
+
+NEW FEATURES
+==
+
+o CSV-217:  Add autoFlush option for CsvPrinter. PR #24.
+Thanks to Korolyov Alexei.
+o CSV-220:  Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
+Thanks to Gary Gregory.
+
+FIXED BUGS
+
+
+o CSV-219:  The behavior of quote char using is not similar as Excel does when
+the first string contains CJK char(s). Thanks to Zhang Hongda.
+o CSV-172:  Don't quote cells just because they have UTF-8 encoded characters.
+Thanks to Andrew Pennebaker.
+o CSV-223:  Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
+Thanks to Samuel Martin.
+o CSV-209:  Create CSVFormat.ORACLE preset. Thanks to Gary Gregory.
+o CSV-224:  Some multi-iterator parsing peek sequences incorrectly consume
+elements. Thanks to David Warshaw.
+o CSV-225:  Parse method should avoid creating a redundant BufferedReader.
+Thanks to Anson Schwabecher.
+
+CHANGES
+=
+
+o CSV-231:  Add more documentation to CSVPrinter.
+
+
+Have fun!
+-Apache Commons CSV team
+
+--
+
+Apache Commons CSV
 Version 1.5
Release Notes
 



[5/5] commons-csv git commit: Update NOTICE.txt

2018-09-19 Thread britter
Update NOTICE.txt


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

Branch: refs/heads/release
Commit: 11b557ee48d0e71d96663932d446e9b12d78a611
Parents: 544400b
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:54:57 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:54:57 2018 +0200

--
 NOTICE.txt | 2 +-
 pom.xml| 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/11b557ee/NOTICE.txt
--
diff --git a/NOTICE.txt b/NOTICE.txt
index 14c9397..85a48c8 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,5 +1,5 @@
 Apache Commons CSV
-Copyright 2005-2017 The Apache Software Foundation
+Copyright 2005-2018 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/11b557ee/pom.xml
--
diff --git a/pom.xml b/pom.xml
index d694794..893989b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -142,6 +142,7 @@ CSV files of various types.
 org.apache.commons.csv
 CSV
 12313222
+2005
 1.7
 1.7
 



[4/5] commons-csv git commit: Regenerate GitHub documentation

2018-09-19 Thread britter
Regenerate GitHub documentation


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

Branch: refs/heads/release
Commit: 544400be1858c5c060f1edfc455b02b34747c21e
Parents: b3bb977
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:52:48 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:52:48 2018 +0200

--
 CONTRIBUTING.md | 4 ++--
 README.md   | 8 
 2 files changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/544400be/CONTRIBUTING.md
--
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a259af1..5d133b3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -50,7 +50,7 @@ Getting Started
 
 + Make sure you have a [JIRA account](https://issues.apache.org/jira/).
 + Make sure you have a [GitHub account](https://github.com/signup/free).
-+ If you're planning to implement a new feature it makes sense to discuss 
you're changes on the [dev list](https://commons.apache.org/mail-lists.html) 
first. This way you can make sure you're not wasting your time on something 
that isn't considered to be in Apache Commons CSV's scope.
++ If you're planning to implement a new feature it makes sense to discuss your 
changes on the [dev list](https://commons.apache.org/mail-lists.html) first. 
This way you can make sure you're not wasting your time on something that isn't 
considered to be in Apache Commons CSV's scope.
 + Submit a [Jira Ticket][jira] for your issue, assuming one does not already 
exist.
   + Clearly describe the issue including steps to reproduce when it is a bug.
   + Make sure you fill in the earliest version that you know has the issue.
@@ -107,7 +107,7 @@ Additional Resources
 + [Apache Commons CSV JIRA project page][jira]
 + [Contributor License Agreement][cla]
 + [General GitHub documentation](https://help.github.com/)
-+ [GitHub pull request 
documentation](https://help.github.com/send-pull-requests/)
++ [GitHub pull request 
documentation](https://help.github.com/articles/creating-a-pull-request/)
 + [Apache Commons Twitter Account](https://twitter.com/ApacheCommons)
 + `#apache-commons` IRC channel on `irc.freenode.net`
 

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/544400be/README.md
--
diff --git a/README.md b/README.md
index 68b7aa4..32385ab 100644
--- a/README.md
+++ b/README.md
@@ -43,10 +43,10 @@
 Apache Commons CSV
 ===
 
-[![Build 
Status](https://travis-ci.org/apache/commons-csv.svg?branch=master)](https://travis-ci.org/apache/commons-csv)
-[![Coverage 
Status](https://coveralls.io/repos/apache/commons-csv/badge.svg?branch=master)](https://coveralls.io/r/apache/commons-csv)
+[![Build 
Status](https://travis-ci.org/apache/commons-csv.svg)](https://travis-ci.org/apache/commons-csv)
+[![Coverage 
Status](https://coveralls.io/repos/apache/commons-csv/badge.svg)](https://coveralls.io/r/apache/commons-csv)
 [![Maven 
Central](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-csv/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-csv/)
-[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
+[![Javadocs](https://javadoc.io/badge/org.apache.commons/commons-csv/1.6.svg)](https://javadoc.io/doc/org.apache.commons/commons-csv/1.6)
 
 The Apache Commons CSV library provides a simple interface for reading and 
writing
 CSV files of various types.
@@ -68,7 +68,7 @@ Alternatively you can pull it from the central Maven 
repositories:
 
   org.apache.commons
   commons-csv
-  1.5
+  1.6
 
 ```
 



[1/5] commons-csv git commit: Generate download page for release 1.6

2018-09-19 Thread britter
Repository: commons-csv
Updated Branches:
  refs/heads/release 2596582d6 -> 11b557ee4


Generate download page for release 1.6


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

Branch: refs/heads/release
Commit: 61820130cda780da09627ecab910a003567a280c
Parents: 2596582
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:16:55 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:16:55 2018 +0200

--
 src/site/xdoc/download_csv.xml | 28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/61820130/src/site/xdoc/download_csv.xml
--
diff --git a/src/site/xdoc/download_csv.xml b/src/site/xdoc/download_csv.xml
index ab02d63..4eaf015 100644
--- a/src/site/xdoc/download_csv.xml
+++ b/src/site/xdoc/download_csv.xml
@@ -102,7 +102,7 @@ limitations under the License.
 It is essential that you
 https://www.apache.org/info/verification.html";>verify the 
integrity
 of downloaded files, preferably using the PGP signature 
(*.asc files);
-failing that using the MD5 hash (*.md5 
checksum files).
+failing that using the SHA-512 hash 
(*.sha512 checksum files).
   
   
 The https://www.apache.org/dist/commons/KEYS";>KEYS
@@ -111,32 +111,32 @@ limitations under the License.
   
 
 
-
+
   
 
   
-  commons-csv-1.5-bin.tar.gz
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.tar.gz.md5";>md5
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.tar.gz.asc";>pgp
+  commons-csv-1.6-bin.tar.gz
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.tar.gz.asc";>pgp
   
   
-  commons-csv-1.5-bin.zip
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.zip.md5";>md5
-  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.5-bin.zip.asc";>pgp
+  commons-csv-1.6-bin.zip
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.zip.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/binaries/commons-csv-1.6-bin.zip.asc";>pgp
   
 
   
   
 
   
-  commons-csv-1.5-src.tar.gz
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.tar.gz.md5";>md5
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.tar.gz.asc";>pgp
+  commons-csv-1.6-src.tar.gz
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.tar.gz.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.tar.gz.asc";>pgp
   
   
-  commons-csv-1.5-src.zip
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.zip.md5";>md5
-  https://www.apache.org/dist/commons/csv/source/commons-csv-1.5-src.zip.asc";>pgp
+  commons-csv-1.6-src.zip
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.zip.sha512";>sha512
+  https://www.apache.org/dist/commons/csv/source/commons-csv-1.6-src.zip.asc";>pgp
   
 
   



svn commit: r1841307 - in /commons/cms-site/trunk/content/xdoc: new-sandbox-component.xml releases/prepare.xml

2018-09-19 Thread britter
Author: britter
Date: Wed Sep 19 09:47:29 2018
New Revision: 1841307

URL: http://svn.apache.org/viewvc?rev=1841307&view=rev
Log:
Update documentation to reflect new commons-build-plugin goalPrefix

Modified:
commons/cms-site/trunk/content/xdoc/new-sandbox-component.xml
commons/cms-site/trunk/content/xdoc/releases/prepare.xml

Modified: commons/cms-site/trunk/content/xdoc/new-sandbox-component.xml
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/content/xdoc/new-sandbox-component.xml?rev=1841307&r1=1841306&r2=1841307&view=diff
==
--- commons/cms-site/trunk/content/xdoc/new-sandbox-component.xml (original)
+++ commons/cms-site/trunk/content/xdoc/new-sandbox-component.xml Wed Sep 19 
09:47:29 2018
@@ -165,7 +165,7 @@
 
 
 
-  mvn commons:sandbox-jira-page
+  mvn commons-build:sandbox-jira-page
 
 
   

Modified: commons/cms-site/trunk/content/xdoc/releases/prepare.xml
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/content/xdoc/releases/prepare.xml?rev=1841307&r1=1841306&r2=1841307&view=diff
==
--- commons/cms-site/trunk/content/xdoc/releases/prepare.xml (original)
+++ commons/cms-site/trunk/content/xdoc/releases/prepare.xml Wed Sep 19 
09:47:29 2018
@@ -247,7 +247,7 @@ mvn versions:display-plugin-updates -U
-  mvn [-N] commons:download-page [-Dcommons.release.version=m.n]
+  mvn [-N] commons-build:download-page [-Dcommons.release.version=m.n]
   svn commit -m "Updated download page in preparation for 1.2 release." 
src/site/xdoc/download_foo.xml
   
   Or when using git:




commons-build-plugin git commit: Update documentation according to new plugin goalPrefix

2018-09-19 Thread britter
Repository: commons-build-plugin
Updated Branches:
  refs/heads/master 4a97cc48c -> 4a2fda52d


Update documentation according to new plugin goalPrefix


Project: http://git-wip-us.apache.org/repos/asf/commons-build-plugin/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/commons-build-plugin/commit/4a2fda52
Tree: http://git-wip-us.apache.org/repos/asf/commons-build-plugin/tree/4a2fda52
Diff: http://git-wip-us.apache.org/repos/asf/commons-build-plugin/diff/4a2fda52

Branch: refs/heads/master
Commit: 4a2fda52dea504dc49bec6e408b63cd0245962ef
Parents: 4a97cc4
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:45:36 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:45:36 2018 +0200

--
 CONTRIBUTING.md |  2 +-
 README.md   |  2 +-
 .../contributing-md-template.md |  2 +-
 .../download-page-head.xml  |  2 +-
 .../issue-tracking-template.xml |  2 +-
 .../mail-lists-template.xml |  2 +-
 .../no-download-page-template.xml   |  2 +-
 .../readme-md-template.md   |  2 +-
 .../sandbox-issue-tracking-template.xml |  2 +-
 src/main/scripts/copy-javadoc-files.build.xml   |  2 +-
 src/main/scripts/generate-xdocs.build.xml   | 28 ++--
 src/site/xdoc/all-mojo-sandbox.xml  |  6 ++---
 src/site/xdoc/all-mojo.xml  |  6 ++---
 src/site/xdoc/all-sandbox.xml   |  8 +++---
 src/site/xdoc/all.xml   |  8 +++---
 src/site/xdoc/contributing-md-mojo.xml  |  6 ++---
 src/site/xdoc/contributing-md.xml   |  6 ++---
 src/site/xdoc/copy-javadoc-files-mojo.xml   |  6 ++---
 src/site/xdoc/development.xml   |  4 +--
 src/site/xdoc/download-page-mojo.xml|  6 ++---
 src/site/xdoc/download-page.xml |  6 ++---
 src/site/xdoc/download_commons-build-plugin.xml |  2 +-
 src/site/xdoc/index.xml | 18 ++---
 src/site/xdoc/issue-tracking.xml|  2 +-
 src/site/xdoc/jira-page-mojo.xml|  6 ++---
 src/site/xdoc/jira-page.xml |  8 +++---
 src/site/xdoc/mail-lists.xml|  2 +-
 src/site/xdoc/mail-page-mojo.xml|  6 ++---
 src/site/xdoc/mail-page.xml |  6 ++---
 src/site/xdoc/notice-txt-mojo.xml   |  6 ++---
 src/site/xdoc/notice-txt.xml|  6 ++---
 src/site/xdoc/readme-md-mojo.xml|  6 ++---
 src/site/xdoc/readme-md.xml |  6 ++---
 src/site/xdoc/sandbox-jira-page-mojo.xml|  6 ++---
 src/site/xdoc/sandbox-jira-page.xml |  8 +++---
 35 files changed, 99 insertions(+), 99 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-build-plugin/blob/4a2fda52/CONTRIBUTING.md
--
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 21bf919..d02572b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -25,7 +25,7 @@
  | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
  +==+
  |  |
- | 1) Re-generate using: mvn commons:contributing-md|
+ | 1) Re-generate using: mvn commons-build:contributing-md  |
  |  |
  | 2) Set the following properties in the component's pom:  |
  |- commons.jira.id  (required, alphabetic, upper case) |

http://git-wip-us.apache.org/repos/asf/commons-build-plugin/blob/4a2fda52/README.md
--
diff --git a/README.md b/README.md
index 6cf8981..fc7f211 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@
  | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
  +==+
  |  |
- | 1) Re-generate using: mvn commons:readme-md  |
+ | 1) Re-generate using: mvn commons-build:readme-md|
  |  |
  | 2) Set the following properties in the component's pom:  |
  |- commons.componentid (required, alphabetic, lower case)  |

http://git-wip-us.apache.org/repos/asf/commons-build-plugin/blob/4a2fda52/src/main/resources/commons-xdoc-templates/contributing-md-template.md
--
diff --git 
a/src/main/res

[15/48] commons-csv git commit: Remove trailing white spaces on all lines.

2018-09-19 Thread britter
Remove trailing white spaces on all lines.

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

Branch: refs/heads/release
Commit: c6cd6ce8ee461328d3331fd96e82c8f8651b4ee4
Parents: 0051a83
Author: Gary Gregory 
Authored: Wed Nov 1 16:05:40 2017 -0600
Committer: Gary Gregory 
Committed: Wed Nov 1 16:05:40 2017 -0600

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


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/c6cd6ce8/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index c8ce042..6049173 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -87,7 +87,7 @@ public final class CSVPrinter implements Flushable, Closeable 
{
 /**
  * Closes the underlying stream with an optional flush first.
  * @param flush whether to flush before the actual close.
- * 
+ *
  * @throws IOException
  * If an I/O error occurs
  * @since 1.6



[41/48] commons-csv git commit: CR and LF are already statically imported

2018-09-19 Thread britter
CR and LF are already statically imported


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

Branch: refs/heads/release
Commit: e5b2413ca760a5d75f8a7030d5dad6c221ed4fa8
Parents: 7694e8f
Author: Benedikt Ritter 
Authored: Tue Aug 21 22:08:33 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Aug 21 22:08:33 2018 +0200

--
 src/main/java/org/apache/commons/csv/Lexer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/e5b2413c/src/main/java/org/apache/commons/csv/Lexer.java
--
diff --git a/src/main/java/org/apache/commons/csv/Lexer.java 
b/src/main/java/org/apache/commons/csv/Lexer.java
index 76fa81e..b29fc14 100644
--- a/src/main/java/org/apache/commons/csv/Lexer.java
+++ b/src/main/java/org/apache/commons/csv/Lexer.java
@@ -38,8 +38,8 @@ import java.io.IOException;
  */
 final class Lexer implements Closeable {
 
-private static final String CR_STRING = Character.toString(Constants.CR);
-private static final String LF_STRING = Character.toString(Constants.LF);
+private static final String CR_STRING = Character.toString(CR);
+private static final String LF_STRING = Character.toString(LF);
 
 /**
  * Constant char to use for disabling comments, escapes and encapsulation. 
The value -2 is used because it



[39/48] commons-csv git commit: Call flush instead of duplicating the logic

2018-09-19 Thread britter
Call flush instead of duplicating the logic


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

Branch: refs/heads/release
Commit: 676a580c350874a27a357520e7ff309a66b2378f
Parents: 47dbc8f
Author: Benedikt Ritter 
Authored: Tue Aug 21 22:02:02 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Aug 21 22:02:02 2018 +0200

--
 src/main/java/org/apache/commons/csv/CSVPrinter.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/676a580c/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index 6049173..d639c60 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -94,9 +94,7 @@ public final class CSVPrinter implements Flushable, Closeable 
{
  */
 public void close(final boolean flush) throws IOException {
 if (flush || format.getAutoFlush()) {
-if (out instanceof Flushable) {
-((Flushable) out).flush();
-}
+flush();
 }
 if (out instanceof Closeable) {
 ((Closeable) out).close();



[19/48] commons-csv git commit: Sort methods.

2018-09-19 Thread britter
Sort methods.

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

Branch: refs/heads/release
Commit: 34262e8c5e0d6746b914468d9e8f739b9f3cfa13
Parents: 4f58df6
Author: Gary Gregory 
Authored: Mon Dec 11 11:49:36 2017 -0700
Committer: Gary Gregory 
Committed: Mon Dec 11 11:49:36 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/34262e8c/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 dc7588b..9e6c807 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -749,6 +749,16 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
+ * Returns whether to flush on close.
+ *
+ * @return whether to flush on close.
+ * @since 1.6
+ */
+public boolean getAutoFlush() {
+return autoFlush;
+}
+
+/**
  * Returns the character marking the start of a line comment.
  *
  * @return the comment start marker, may be {@code null}
@@ -891,16 +901,6 @@ public final class CSVFormat implements Serializable {
 return trim;
 }
 
-/**
- * Returns whether to flush on close.
- *
- * @return whether to flush on close.
- * @since 1.6
- */
-public boolean getAutoFlush() {
-return autoFlush;
-}
-
 @Override
 public int hashCode() {
 final int prime = 31;
@@ -994,22 +994,6 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
- * Prints to the {@link System#out}.
- *
- * 
- * See also {@link CSVPrinter}.
- * 
- *
- * @return a printer to {@link System#out}.
- * @throws IOException
- * thrown if the optional header cannot be printed.
- * @since 1.5
- */
-public CSVPrinter printer() throws IOException {
-return new CSVPrinter(System.out, this);
-}
-
-/**
  * Prints to the specified output.
  *
  * 
@@ -1032,26 +1016,6 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
- * Prints to the specified output.
- *
- * 
- * See also {@link CSVPrinter}.
- * 
- *
- * @param out
- *the output.
- * @param charset
- *A charset.
- * @return a printer to an output.
- * @throws IOException
- * thrown if the optional header cannot be printed.
- * @since 1.5
- */
-public CSVPrinter print(final Path out, final Charset charset) throws 
IOException {
-return print(Files.newBufferedWriter(out, charset));
-}
-
-/**
  * Prints the {@code value} as the next value on the line to {@code out}. 
The value will be escaped or encapsulated
  * as needed. Useful when one wants to avoid creating CSVPrinters.
  *
@@ -1104,6 +1068,26 @@ public final class CSVFormat implements Serializable {
 }
 }
 
+/**
+ * Prints to the specified output.
+ *
+ * 
+ * See also {@link CSVPrinter}.
+ * 
+ *
+ * @param out
+ *the output.
+ * @param charset
+ *A charset.
+ * @return a printer to an output.
+ * @throws IOException
+ * thrown if the optional header cannot be printed.
+ * @since 1.5
+ */
+public CSVPrinter print(final Path out, final Charset charset) throws 
IOException {
+return print(Files.newBufferedWriter(out, charset));
+}
+
 /*
  * Note: must only be called if escaping is enabled, otherwise will 
generate NPE
  */
@@ -1254,6 +1238,22 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
+ * Prints to the {@link System#out}.
+ *
+ * 
+ * See also {@link CSVPrinter}.
+ * 
+ *
+ * @return a printer to {@link System#out}.
+ * @throws IOException
+ * thrown if the optional header cannot be printed.
+ * @since 1.5
+ */
+public CSVPrinter printer() throws IOException {
+return new CSVPrinter(System.out, this);
+}
+
+/**
  * Outputs the trailing delimiter (if set) followed by the record 
separator (if set).
  *
  * @param out
@@ -1446,6 +1446,21 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
+ * Returns a new {@code CSVFormat} with whether t

[44/48] commons-csv git commit: Update to latest commons-parent

2018-09-19 Thread britter
Update to latest commons-parent


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

Branch: refs/heads/release
Commit: 62515c52eccb30533615c0dfd8bf072b635268db
Parents: 4e1802d
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:32:55 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:32:55 2018 +0200

--
 pom.xml | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/62515c52/pom.xml
--
diff --git a/pom.xml b/pom.xml
index f9491cf..5433ba2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
   
 org.apache.commons
 commons-parent
-43
+47
   
   commons-csv
   1.6-SNAPSHOT
@@ -152,6 +152,9 @@ CSV files of various types.
 2.17
 
${basedir}/LICENSE-header.txt
 LICENSE.txt, 
NOTICE.txt
+
+
+
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}
   
 
   



[08/48] commons-csv git commit: [CSV-217] Add autoFlush option for CsvPrinter. Use current version of Mockito.

2018-09-19 Thread britter
[CSV-217] Add autoFlush option for CsvPrinter. Use current version of
Mockito.

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

Branch: refs/heads/release
Commit: b4a084ed4839f297ab3f88c48d48f5081f229c96
Parents: 5ca0f91
Author: Gary Gregory 
Authored: Mon Oct 9 13:26:57 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:26:57 2017 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/b4a084ed/pom.xml
--
diff --git a/pom.xml b/pom.xml
index a9777da..266b509 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,7 +41,7 @@ CSV files of various types.
 
   org.mockito
   mockito-all
-  1.9.5
+  1.10.19
   test
 
 



[30/48] commons-csv git commit: [CSV-225] Parse method should avoid creating a redundant BufferedReader.

2018-09-19 Thread britter
[CSV-225] Parse method should avoid creating a redundant BufferedReader.

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

Branch: refs/heads/release
Commit: 865872e0f1517796f4b203ff7682d922119514fa
Parents: f368f64
Author: Gary Gregory 
Authored: Sat May 19 09:03:29 2018 -0600
Committer: Gary Gregory 
Committed: Sat May 19 09:03:29 2018 -0600

--
 .../java/org/apache/commons/csv/CSVParser.java  |   2 +-
 .../org/apache/commons/csv/CSVParserTest.java   |  69 +++-
 .../org/apache/commons/csv/PerformanceTest.java | 172 ---
 3 files changed, 174 insertions(+), 69 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/865872e0/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 7e9d7d4..ac45c72 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -203,7 +203,7 @@ public final class CSVParser implements 
Iterable, Closeable {
 public static CSVParser parse(final Path path, final Charset charset, 
final CSVFormat format) throws IOException {
 Assertions.notNull(path, "path");
 Assertions.notNull(format, "format");
-return parse(Files.newBufferedReader(path, charset), format);
+return parse(Files.newInputStream(path), charset, format);
 }
 
 /**

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/865872e0/src/test/java/org/apache/commons/csv/CSVParserTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java 
b/src/test/java/org/apache/commons/csv/CSVParserTest.java
index 1e1d7a6..8336154 100644
--- a/src/test/java/org/apache/commons/csv/CSVParserTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -39,6 +39,9 @@ import java.io.StringWriter;
 import java.net.URL;
 import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
@@ -810,24 +813,78 @@ public class CSVParserTest {
 }
 }
 
+@Test
+public void testParse() throws Exception {
+final ClassLoader loader = ClassLoader.getSystemClassLoader();
+final URL url = loader.getResource("CSVFileParser/test.csv");
+final CSVFormat format = CSVFormat.DEFAULT.withHeader("A", "B", "C", 
"D");
+final Charset charset = StandardCharsets.UTF_8;
+
+try(final CSVParser parser = CSVParser.parse(new 
InputStreamReader(url.openStream(), charset), format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = CSVParser.parse(new 
String(Files.readAllBytes(Paths.get(url.toURI())), charset), format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = CSVParser.parse(new File(url.toURI()), 
charset, format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = CSVParser.parse(url.openStream(), 
charset, format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = CSVParser.parse(Paths.get(url.toURI()), 
charset, format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = CSVParser.parse(url, charset, format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = new CSVParser(new 
InputStreamReader(url.openStream(), charset), format)) {
+parseFully(parser);
+}
+try(final CSVParser parser = new CSVParser(new 
InputStreamReader(url.openStream(), charset), format, /*characterOffset=*/0, 
/*recordNumber=*/1)) {
+parseFully(parser);
+}
+}
+
+private void parseFully(final CSVParser parser) {
+for (final Iterator records = parser.iterator(); 
records.hasNext(); ) {
+records.next();
+}
+}
+
 @Test(expected = IllegalArgumentException.class)
 public void testParseFileNullFormat() throws Exception {
-CSVParser.parse(new File(""), Charset.defaultCharset(), null);
+try (final CSVParser parser = CSVParser.parse(new 
File("CSVFileParser/test.csv"), Charset.defaultCharset(), null)) {
+Assert.fail("This test should have thrown an exception.");
+}
 }
 
 @Test(expected = IllegalArgumentException.class)
 public void t

[09/48] commons-csv git commit: Use final.

2018-09-19 Thread britter
Use final.

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

Branch: refs/heads/release
Commit: 0c216e783cbff346c820cabb83486e4401b2c0a2
Parents: b4a084e
Author: Gary Gregory 
Authored: Mon Oct 9 13:43:02 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:43:02 2017 -0600

--
 .../java/org/apache/commons/csv/CSVFormat.java  |  6 +-
 .../java/org/apache/commons/csv/CSVParser.java  |  2 +-
 .../java/org/apache/commons/csv/CSVPrinter.java |  2 +-
 .../org/apache/commons/csv/CSVFormatTest.java   | 36 +--
 .../org/apache/commons/csv/CSVParserTest.java   |  2 +-
 .../org/apache/commons/csv/CSVPrinterTest.java  | 64 ++--
 .../commons/csv/issues/JiraCsv198Test.java  |  6 +-
 .../commons/csv/issues/JiraCsv203Test.java  | 42 ++---
 .../commons/csv/issues/JiraCsv213Test.java  |  6 +-
 9 files changed, 83 insertions(+), 83 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0c216e78/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 29b7c36..00f1064 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -630,7 +630,7 @@ public final class CSVFormat implements Serializable {
   final boolean ignoreEmptyLines, final String 
recordSeparator, final String nullString,
   final Object[] headerComments, final String[] header, 
final boolean skipHeaderRecord,
   final boolean allowMissingColumnNames, final boolean 
ignoreHeaderCase, final boolean trim,
-  final boolean trailingDelimiter, boolean autoFlush) {
+  final boolean trailingDelimiter, final boolean 
autoFlush) {
 this.delimiter = delimiter;
 this.quoteCharacter = quoteChar;
 this.quoteMode = quoteMode;
@@ -1026,7 +1026,7 @@ public final class CSVFormat implements Serializable {
  * @since 1.5
  */
 @SuppressWarnings("resource")
-public CSVPrinter print(final File out, Charset charset) throws 
IOException {
+public CSVPrinter print(final File out, final Charset charset) throws 
IOException {
 // The writer will be closed when close() is called.
 return new CSVPrinter(new OutputStreamWriter(new 
FileOutputStream(out), charset), this);
 }
@@ -1047,7 +1047,7 @@ public final class CSVFormat implements Serializable {
  * thrown if the optional header cannot be printed.
  * @since 1.5
  */
-public CSVPrinter print(final Path out, Charset charset) throws 
IOException {
+public CSVPrinter print(final Path out, final Charset charset) throws 
IOException {
 return print(Files.newBufferedWriter(out, charset));
 }
 

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0c216e78/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 09251a3..06108f6 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -225,7 +225,7 @@ public final class CSVParser implements 
Iterable, Closeable {
  * If there is a problem reading the header or skipping the 
first record
  * @since 1.5
  */
-public static CSVParser parse(Reader reader, final CSVFormat format) 
throws IOException {
+public static CSVParser parse(final Reader reader, final CSVFormat format) 
throws IOException {
 return new CSVParser(reader, format);
 }
 

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0c216e78/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index 49d9022..c8ce042 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -92,7 +92,7 @@ public final class CSVPrinter implements Flushable, Closeable 
{
  * If an I/O error occurs
  * @since 1.6
  */
-public void close(boolean flush) throws IOException {
+public void close(final boolean flush) throws IOException {
 if (flush || format.getAutoFlush()

[37/48] commons-csv git commit: Method in package private class does not need to be public

2018-09-19 Thread britter
Method in package private class does not need to be public


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

Branch: refs/heads/release
Commit: 768f656c4329b44d28b25ab94d7686172f99f6b1
Parents: 3d4a7e6
Author: Benedikt Ritter 
Authored: Tue Aug 21 09:22:08 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Aug 21 09:22:08 2018 +0200

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


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/768f656c/src/main/java/org/apache/commons/csv/Assertions.java
--
diff --git a/src/main/java/org/apache/commons/csv/Assertions.java 
b/src/main/java/org/apache/commons/csv/Assertions.java
index f22002d..057b3d7 100644
--- a/src/main/java/org/apache/commons/csv/Assertions.java
+++ b/src/main/java/org/apache/commons/csv/Assertions.java
@@ -30,7 +30,7 @@ final class Assertions {
 // can not be instantiated
 }
 
-public static void notNull(final Object parameter, final String 
parameterName) {
+static void notNull(final Object parameter, final String parameterName) {
 if (parameter == null) {
 throw new IllegalArgumentException("Parameter '" + parameterName + 
"' must not be null!");
 }



[16/48] commons-csv git commit: Update tests from Apache Commons Lang 3.6 to 3.7.

2018-09-19 Thread britter
Update tests from Apache Commons Lang 3.6 to 3.7.

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

Branch: refs/heads/release
Commit: e76c4d809cf2b39a9d7fe831b63e60891fe47f55
Parents: c6cd6ce
Author: ggregory 
Authored: Sun Dec 10 16:27:09 2017 -0700
Committer: ggregory 
Committed: Sun Dec 10 16:27:09 2017 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/e76c4d80/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 8623b92..68fb8e2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@ CSV files of various types.
 
   org.apache.commons
   commons-lang3
-  3.6
+  3.7
   test
 
 



[05/48] commons-csv git commit: Next version will be 1.6 due to new auto-flush feature just added.

2018-09-19 Thread britter
Next version will be 1.6 due to new auto-flush feature just added.

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

Branch: refs/heads/release
Commit: 9c203414696118e291279ff3a2eb1d58b93d
Parents: 7e47152
Author: Gary Gregory 
Authored: Mon Oct 9 13:23:46 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:23:46 2017 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/9c203414/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 8b13c17..0feb5be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 42
   
   commons-csv
-  1.5.1-SNAPSHOT
+  1.6-SNAPSHOT
   Apache Commons CSV
   http://commons.apache.org/proper/commons-csv/
   



[12/48] commons-csv git commit: Update tests from Apache Commons IO 2.5 to 2.6.

2018-09-19 Thread britter
Update tests from Apache Commons IO 2.5 to 2.6.

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

Branch: refs/heads/release
Commit: 0e39fe3bed3444e1b989c2a0a90c1d8e6bb36ccc
Parents: 27cdc55
Author: Gary Gregory 
Authored: Fri Oct 20 10:04:51 2017 -0600
Committer: Gary Gregory 
Committed: Fri Oct 20 10:04:51 2017 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0e39fe3b/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 8011872..526faa7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -47,7 +47,7 @@ CSV files of various types.
 
   commons-io
   commons-io
-  2.5
+  2.6
   test
 
 



[40/48] commons-csv git commit: Remove duplicated code by calling printRecords(Iterable)

2018-09-19 Thread britter
Remove duplicated code by calling printRecords(Iterable)


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

Branch: refs/heads/release
Commit: 7694e8f99972f33b2e285ea2652a1b21a1c6b653
Parents: 676a580
Author: Benedikt Ritter 
Authored: Tue Aug 21 22:05:47 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Aug 21 22:05:47 2018 +0200

--
 src/main/java/org/apache/commons/csv/CSVPrinter.java | 11 ++-
 1 file changed, 2 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/7694e8f9/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index d639c60..3ae5971 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -26,6 +26,7 @@ import java.io.Flushable;
 import java.io.IOException;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.util.Arrays;
 
 /**
  * Prints values in a CSV format.
@@ -321,15 +322,7 @@ public final class CSVPrinter implements Flushable, 
Closeable {
  * If an I/O error occurs
  */
 public void printRecords(final Object... values) throws IOException {
-for (final Object value : values) {
-if (value instanceof Object[]) {
-this.printRecord((Object[]) value);
-} else if (value instanceof Iterable) {
-this.printRecord((Iterable) value);
-} else {
-this.printRecord(value);
-}
-}
+printRecords(Arrays.asList(values));
 }
 
 /**



[13/48] commons-csv git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-csv.git

2018-09-19 Thread britter
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-csv.git

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

Branch: refs/heads/release
Commit: 1521cc285daf9923d09bd112892647c60e59a750
Parents: 0e39fe3 d20e5ab
Author: Gary Gregory 
Authored: Fri Oct 20 17:27:45 2017 -0600
Committer: Gary Gregory 
Committed: Fri Oct 20 17:27:45 2017 -0600

--
 .travis.yml |  1 +
 pom.xml | 16 
 2 files changed, 17 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/1521cc28/pom.xml
--



[34/48] commons-csv git commit: The the patrol.

2018-09-19 Thread britter
The the patrol.

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

Branch: refs/heads/release
Commit: ea13687e6637fc50ff5c38585c26b57fbf811a3c
Parents: 98d4407
Author: Gary Gregory 
Authored: Sat Jun 16 15:44:55 2018 -0600
Committer: Gary Gregory 
Committed: Sat Jun 16 15:44:55 2018 -0600

--
 src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/ea13687e/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 ae96b1e..a74e47b 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -1943,7 +1943,7 @@ public final class CSVFormat implements Serializable {
 /**
  * Returns a new {@code CSVFormat} with skipping the header record set to 
{@code true}.
  *
- * @return A new CSVFormat that is equal to this but with the the 
specified skipHeaderRecord setting.
+ * @return A new CSVFormat that is equal to this but with the specified 
skipHeaderRecord setting.
  * @see #withSkipHeaderRecord(boolean)
  * @see #withHeader(String...)
  * @since 1.1
@@ -1958,7 +1958,7 @@ public final class CSVFormat implements Serializable {
  * @param skipHeaderRecord
  *whether to skip the header record.
  *
- * @return A new CSVFormat that is equal to this but with the the 
specified skipHeaderRecord setting.
+ * @return A new CSVFormat that is equal to this but with the specified 
skipHeaderRecord setting.
  * @see #withHeader(String...)
  */
 public CSVFormat withSkipHeaderRecord(final boolean skipHeaderRecord) {



[46/48] commons-csv git commit: Adopt commons-jcs way of generating SHA-512 checksums

2018-09-19 Thread britter
Adopt commons-jcs way of generating SHA-512 checksums


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

Branch: refs/heads/release
Commit: 79adf78d231388350b8c8fb2fd16b7810e332620
Parents: af261c8
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:51:35 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:51:35 2018 +0200

--
 pom.xml | 39 +++
 1 file changed, 39 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/79adf78d/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 3fa6dd4..d694794 100644
--- a/pom.xml
+++ b/pom.xml
@@ -242,6 +242,45 @@ CSV files of various types.
   
 
   
+
+  
+  
+net.nicoulaj.maven.plugins
+checksum-maven-plugin
+1.7
+
+  
+generate.checksums
+verify
+
+  files
+
+  
+
+
+  
+SHA-512
+  
+  false
+  
+
+  ${project.build.directory}
+  
+
${project.artifactId}-${project.version}-src.zip
+
+  ${project.artifactId}-${project.version}-src.tar.gz
+
+
${project.artifactId}-${project.version}-bin.zip
+
+  ${project.artifactId}-${project.version}-bin.tar.gz
+
+  
+
+  
+
+  
 
   
 



[04/48] commons-csv git commit: [CSV-217] Add autoFlush option for CsvPrinter. Applying modified patch This closes #24.

2018-09-19 Thread britter
[CSV-217] Add autoFlush option for CsvPrinter. Applying modified patch
This closes #24.

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

Branch: refs/heads/release
Commit: 7e471527915cb0c73316c598fd02b71a56f2cf43
Parents: 10977ae
Author: Korolyov Alexei 
Authored: Mon Oct 9 13:22:53 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:22:53 2017 -0600

--
 pom.xml |  6 ++
 src/changes/changes.xml |  1 +
 .../java/org/apache/commons/csv/CSVFormat.java  | 75 ++--
 .../java/org/apache/commons/csv/CSVPrinter.java | 17 +
 .../org/apache/commons/csv/CSVPrinterTest.java  | 55 ++
 5 files changed, 131 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/7e471527/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 262bc17..8b13c17 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,6 +39,12 @@ CSV files of various types.
   test
 
 
+  org.mockito
+  mockito-all
+  1.9.5
+  test
+
+
   commons-io
   commons-io
   2.5

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/7e471527/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index bbfa930..b56b75f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -39,6 +39,7 @@
   
   
 
+  Add autoFlush option for CsvPrinter. PR #24.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/7e471527/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 410c8fb..29b7c36 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -242,7 +242,7 @@ public final class CSVFormat implements Serializable {
  * @see Predefined#Default
  */
 public static final CSVFormat DEFAULT = new CSVFormat(COMMA, 
DOUBLE_QUOTE_CHAR, null, null, null, false, true, CRLF,
-null, null, null, false, false, false, false, false);
+null, null, null, false, false, false, false, false, false);
 
 /**
  * Excel file format (using a comma as the value delimiter). Note that the 
actual value delimiter used by Excel is
@@ -537,7 +537,7 @@ public final class CSVFormat implements Serializable {
  */
 public static CSVFormat newFormat(final char delimiter) {
 return new CSVFormat(delimiter, null, null, null, null, false, false, 
null, null, null, null, false, false,
-false, false, false);
+false, false, false, false);
 }
 
 /**
@@ -584,6 +584,8 @@ public final class CSVFormat implements Serializable {
 
 private final boolean trim;
 
+private final boolean autoFlush;
+
 /**
  * Creates a customized CSV format.
  *
@@ -619,15 +621,16 @@ public final class CSVFormat implements Serializable {
  *TODO
  * @param trailingDelimiter
  *TODO
+ * @param autoFlush
  * @throws IllegalArgumentException
  * if the delimiter is a line break character
  */
 private CSVFormat(final char delimiter, final Character quoteChar, final 
QuoteMode quoteMode,
-final Character commentStart, final Character escape, final 
boolean ignoreSurroundingSpaces,
-final boolean ignoreEmptyLines, final String recordSeparator, 
final String nullString,
-final Object[] headerComments, final String[] header, final 
boolean skipHeaderRecord,
-final boolean allowMissingColumnNames, final boolean 
ignoreHeaderCase, final boolean trim,
-final boolean trailingDelimiter) {
+  final Character commentStart, final Character escape, 
final boolean ignoreSurroundingSpaces,
+  final boolean ignoreEmptyLines, final String 
recordSeparator, final String nullString,
+  final Object[] headerComments, final String[] header, 
final boolean skipHeaderRecord,
+  final boolean allowMissingColumnNames, final boolean 
ignoreHeaderCase, final boolean trim,
+  final boolean trailingDelimiter, boolean autoFlush

[26/48] commons-csv git commit: Typo: 'JavaDoc' -> 'Javadoc'.

2018-09-19 Thread britter
Typo: 'JavaDoc' -> 'Javadoc'.

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

Branch: refs/heads/release
Commit: c00f4d426ecf7f58071a41a1d3fad7efbacf9777
Parents: 00583b2
Author: Gary Gregory 
Authored: Tue May 15 12:21:56 2018 -0600
Committer: Gary Gregory 
Committed: Tue May 15 12:21:56 2018 -0600

--
 README.md   | 2 +-
 src/main/java/org/apache/commons/csv/CSVParser.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/c00f4d42/README.md
--
diff --git a/README.md b/README.md
index 87f1c60..68b7aa4 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ Documentation
 -
 
 More information can be found on the [Apache Commons CSV 
homepage](https://commons.apache.org/proper/commons-csv).
-The 
[JavaDoc](https://commons.apache.org/proper/commons-csv/javadocs/api-release) 
can be browsed.
+The 
[Javadoc](https://commons.apache.org/proper/commons-csv/javadocs/api-release) 
can be browsed.
 Questions related to the usage of Apache Commons CSV should be posted to the 
[user mailing list][ml].
 
 Where can I get the latest release?

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/c00f4d42/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 06108f6..2a902cd 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -99,7 +99,7 @@ import java.util.TreeMap;
  *
  * 
  * If the predefined formats don't match the format at hands, custom formats 
can be defined. More information about
- * customising CSVFormats is available in {@link CSVFormat CSVFormat JavaDoc}.
+ * customising CSVFormats is available in {@link CSVFormat CSVFormat Javadoc}.
  * 
  *
  * Parsing into memory



[24/48] commons-csv git commit: [CSV-209] Create CSVFormat.ORACLE preset. Also: Fix and complete documentation for other formats.

2018-09-19 Thread britter
[CSV-209] Create CSVFormat.ORACLE preset. Also: Fix and complete
documentation for other formats.

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

Branch: refs/heads/release
Commit: a9daab6992bc800e510de180aa3e49522a0db462
Parents: 83cd808
Author: Gary Gregory 
Authored: Tue Apr 3 17:37:03 2018 -0600
Committer: Gary Gregory 
Committed: Tue Apr 3 17:37:03 2018 -0600

--
 src/changes/changes.xml |  1 +
 .../java/org/apache/commons/csv/CSVFormat.java  | 52 ++--
 src/site/xdoc/index.xml |  3 ++
 src/site/xdoc/user-guide.xml| 16 +++---
 .../commons/csv/CSVFormatPredefinedTest.java|  5 ++
 .../org/apache/commons/csv/CSVPrinterTest.java  |  6 +++
 6 files changed, 72 insertions(+), 11 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/a9daab69/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7297a18..14acb0a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -44,6 +44,7 @@
   Don't quote cells just because they have UTF-8 encoded 
characters.
   Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
   Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
+  Create CSVFormat.ORACLE preset.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/a9daab69/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 d7698ab..ae96b1e 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -190,6 +190,11 @@ public final class CSVFormat implements Serializable {
 MySQL(CSVFormat.MYSQL),
 
 /**
+ * @see CSVFormat#ORACLE
+ */
+Oracle(CSVFormat.ORACLE),
+
+/**
  * @see CSVFormat#POSTGRESQL_CSV
  * @since 1.5
  */
@@ -227,7 +232,7 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
- * Standard comma separated format, as for {@link #RFC4180} but allowing 
empty lines.
+ * Standard Comma Separated Value format, as for {@link #RFC4180} but 
allowing empty lines.
  *
  * 
  * Settings are:
@@ -378,6 +383,44 @@ public final class CSVFormat implements Serializable {
 // @formatter:off
 
 /**
+ * Default Oracle format used by the SQL*Loader utility.
+ *
+ * 
+ * This is a comma-delimited format with the system line separator 
character as the record separator. Values are double quoted when needed and 
special
+ * characters are escaped with {@code '"'}. The default NULL string is 
{@code ""}. Values are trimmed.
+ * 
+ *
+ * 
+ * Settings are:
+ * 
+ * 
+ * withDelimiter(',') // default is {@code FIELDS TERMINATED BY 
','}
+ * withQuote('"')  // default is {@code OPTIONALLY ENCLOSED BY 
'"'}
+ * withSystemRecordSeparator()
+ * withTrim()
+ * withIgnoreEmptyLines(false)
+ * withEscape('\\')
+ * withNullString("\\N")
+ * withQuoteMode(QuoteMode.MINIMAL)
+ * 
+ *
+ * @see Predefined#Oracle
+ * @see https://docs.oracle.com/database/121/SUTIL/GUID-D1762699-8154-40F6-90DE-EFB8EB6A9AB0.htm#SUTIL4217";>https://docs.oracle.com/database/121/SUTIL/GUID-D1762699-8154-40F6-90DE-EFB8EB6A9AB0.htm#SUTIL4217
+ * @since 1.6
+ */
+// @formatter:off
+public static final CSVFormat ORACLE = DEFAULT
+.withDelimiter(COMMA)
+.withEscape(BACKSLASH)
+.withIgnoreEmptyLines(false)
+.withQuote(DOUBLE_QUOTE_CHAR)
+.withNullString("\\N")
+.withTrim()
+.withSystemRecordSeparator()
+.withQuoteMode(QuoteMode.MINIMAL);
+// @formatter:off
+
+/**
  * Default PostgreSQL CSV format used by the {@code COPY} operation.
  *
  * 
@@ -399,7 +442,7 @@ public final class CSVFormat implements Serializable {
  * 
  *
  * @see Predefined#MySQL
- * @see http://dev.mysql.com/doc/refman/5.1/en/load-data.html";> 
http://dev.mysql.com/doc/refman/5.1/en/load
+ * @see https://www.postgresql.org/docs/current/static/sql-copy.html";> 
https://www.postgresql.org/docs/current/static/sql-copy.html
 

[25/48] commons-csv git commit: Update release for 1.6 to this year.

2018-09-19 Thread britter
Update release for 1.6 to this year.

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

Branch: refs/heads/release
Commit: 00583b2ad9f83f4bd30d0c48af6e905beb47fd49
Parents: a9daab6
Author: Gary Gregory 
Authored: Tue Apr 3 17:37:27 2018 -0600
Committer: Gary Gregory 
Committed: Tue Apr 3 17:37:27 2018 -0600

--
 src/changes/changes.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/00583b2a/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 14acb0a..8142c21 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,7 +38,7 @@
 Release Notes
   
   
-
+
   Add autoFlush option for CsvPrinter. PR #24.
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).
   Don't quote cells just because they have UTF-8 encoded 
characters.



[42/48] commons-csv git commit: CSV-231: Add more documentation to CSVPrinter

2018-09-19 Thread britter
CSV-231: Add more documentation to CSVPrinter


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

Branch: refs/heads/release
Commit: 71459b6d30135723608b06c6ee7a9307b34edaea
Parents: e5b2413
Author: Benedikt Ritter 
Authored: Fri Aug 31 10:29:12 2018 +0200
Committer: Benedikt Ritter 
Committed: Fri Aug 31 10:29:12 2018 +0200

--
 src/changes/changes.xml |  1 +
 .../java/org/apache/commons/csv/CSVPrinter.java | 45 +++-
 2 files changed, 44 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/71459b6d/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index dd56857..607b979 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -39,6 +39,7 @@
   
   
 
+  Add more 
documentation to CSVPrinter.
   Add autoFlush option for CsvPrinter. PR #24.
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).
   Don't quote cells just because they have UTF-8 encoded 
characters.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/71459b6d/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index 3ae5971..ccf4bff 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -29,7 +29,42 @@ import java.sql.SQLException;
 import java.util.Arrays;
 
 /**
- * Prints values in a CSV format.
+ * Prints values in a {@link CSVFormat CSV format}.
+ *
+ * Values can be appended to the output by calling the {@link 
#print(Object)} method.
+ * Values are printed according to {@link String#valueOf(Object)}.
+ * To complete a record the {@link #println()} method has to be called.
+ * Comments can be appended by calling {@link #printComment(String)}.
+ * However a comment will only be written to the output if the {@link 
CSVFormat} supports comments.
+ * 
+ *
+ * The printer also supports appending a complete record at once by calling 
{@link #printRecord(Object...)}
+ * or {@link #printRecord(Iterable)}.
+ * Furthermore {@link #printRecords(Object...)}, {@link 
#printRecords(Iterable)} and {@link #printRecords(ResultSet)}
+ * methods can be used to print several records at once.
+ * 
+ *
+ * Example:
+ *
+ * 
+ * try (CSVPrinter printer = new CSVPrinter(new FileWriter("csv.txt"), 
CSVFormat.EXCEL)) {
+ * printer.printRecord("id", "userName", "firstName", "lastName", 
"birthday");
+ * printer.printRecord(1, "john73", "John", "Doe", LocalDate.of(1973, 9, 
15));
+ * printer.println();
+ * printer.printRecord(2, "mary", "Mary", "Meyer", LocalDate.of(1985, 3, 
29));
+ * } catch (IOException ex) {
+ * ex.printStackTrace();
+ * }
+ * 
+ *
+ * This code will write the following to csv.txt:
+ * 
+ * id,userName,firstName,lastName,birthday
+ * 1,john73,John,Doe,1973-09-15
+ *
+ * 2,mary,Mary,Meyer,1985-03-29
+ * 
+ * 
  */
 public final class CSVPrinter implements Flushable, Closeable {
 
@@ -141,11 +176,17 @@ public final class CSVPrinter implements Flushable, 
Closeable {
  * Prints a comment on a new line among the delimiter separated values.
  *
  * 
- * Comments will always begin on a new line and occupy a least one full 
line. The character specified to start
+ * Comments will always begin on a new line and occupy at least one full 
line. The character specified to start
  * comments and a space will be inserted at the beginning of each new line 
in the comment.
  * 
  *
+ * 
  * If comments are disabled in the current CSV format this method does 
nothing.
+ * 
+ *
+ * This method detects line breaks inside the comment string and 
inserts {@link CSVFormat#getRecordSeparator()}
+ * to start a new line of the comment. Note that this might produce 
unexpected results for formats that do not use
+ * line breaks as record separator.
  *
  * @param comment
  *the comment to output



[20/48] commons-csv git commit: [CSV-220] Add API org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().

2018-09-19 Thread britter
[CSV-220] Add API
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().

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

Branch: refs/heads/release
Commit: 3a2034434cf29e241378f5f0cdbb9be6cf01eaba
Parents: 34262e8
Author: Gary Gregory 
Authored: Mon Dec 11 11:50:31 2017 -0700
Committer: Gary Gregory 
Committed: Mon Dec 11 11:50:31 2017 -0700

--
 src/changes/changes.xml |  1 +
 src/main/java/org/apache/commons/csv/CSVFormat.java | 16 
 .../java/org/apache/commons/csv/CSVFormatTest.java  |  8 +++-
 3 files changed, 24 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3a203443/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 302632e..217c2ce 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -42,6 +42,7 @@
   Add autoFlush option for CsvPrinter. PR #24.
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).
   Don't quote cells just because they have UTF-8 encoded 
characters.
+  Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3a203443/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 9e6c807..10f766d 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -1926,6 +1926,22 @@ public final class CSVFormat implements Serializable {
 }
 
 /**
+ * Returns a new {@code CSVFormat} with the record separator of the format 
set to the operating system's line
+ * separator string, typically CR+LF on Windows and LF on Linux.
+ *
+ * 
+ * Note: This setting is only used during printing and 
does not affect parsing. Parsing currently
+ * only works for inputs with '\n', '\r' and "\r\n"
+ * 
+ *
+ * @return A new CSVFormat that is equal to this but with the operating 
system's line separator stringr
+ * @since 1.6
+ */
+public CSVFormat withSystemRecordSeparator() {
+return withRecordSeparator(System.getProperty("line.separator"));
+}
+
+/**
  * Returns a new {@code CSVFormat} to add a trailing delimiter.
  *
  * @return A new CSVFormat that is equal to this but with the trailing 
delimiter setting.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3a203443/src/test/java/org/apache/commons/csv/CSVFormatTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java 
b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
index 9a69780..6a96c7c 100644
--- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
@@ -640,7 +640,7 @@ public class CSVFormatTest {
 public void testToString() {
 
 final CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT;
-final String string = cSVFormat.INFORMIX_UNLOAD.toString();
+final String string = CSVFormat.INFORMIX_UNLOAD.toString();
 
 assertEquals("Delimiter=<|> Escape=<\\> QuoteChar=<\"> 
RecordSeparator=<\n> EmptyLines:ignored SkipHeaderRecord:false", string);
 
@@ -1090,4 +1090,10 @@ public class CSVFormatTest {
 assertEquals(String.valueOf(LF), 
formatWithRecordSeparator.getRecordSeparator());
 }
 
+@Test
+public void testWithSystemRecordSeparator() throws Exception {
+final CSVFormat formatWithRecordSeparator = 
CSVFormat.DEFAULT.withSystemRecordSeparator();
+assertEquals(System.getProperty("line.separator"), 
formatWithRecordSeparator.getRecordSeparator());
+}
+
 }



[21/48] commons-csv git commit: Update to commons-parent version 43

2018-09-19 Thread britter
Update to commons-parent version 43


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

Branch: refs/heads/release
Commit: f3f48be1d08d87672aa80364f1d59df3daa11be1
Parents: 3a20344
Author: pascalschumacher 
Authored: Sun Jan 7 11:42:26 2018 +0100
Committer: pascalschumacher 
Committed: Sun Jan 7 11:42:26 2018 +0100

--
 pom.xml | 8 +---
 1 file changed, 1 insertion(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/f3f48be1/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 68fb8e2..3beeffc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
   
 org.apache.commons
 commons-parent
-42
+43
   
   commons-csv
   1.6-SNAPSHOT
@@ -152,9 +152,6 @@ CSV files of various types.
 2.17
 
${basedir}/LICENSE-header.txt
 LICENSE.txt, 
NOTICE.txt
-
-
-0.7.9
   
 
   
@@ -274,7 +271,6 @@ CSV files of various types.
   
 org.codehaus.mojo
 findbugs-maven-plugin
-3.0.5
   
   
 org.codehaus.mojo
@@ -522,8 +518,6 @@ CSV files of various types.
 9
   
   
-
-3.0.0-M1
 
 true
   



[45/48] commons-csv git commit: Add temporary fix for COMMONSSITE-125

2018-09-19 Thread britter
Add temporary fix for COMMONSSITE-125


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

Branch: refs/heads/release
Commit: af261c8fbf29b215f8ab9ff66200948968ac28c0
Parents: 62515c5
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:38:30 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:38:30 2018 +0200

--
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/af261c8f/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 5433ba2..3fa6dd4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,6 +155,8 @@ CSV files of various types.
 
 
 
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}
+
+
org.apache.commons.${commons.componentid}
   
 
   



[36/48] commons-csv git commit: Add missing predefined formats to class documentation

2018-09-19 Thread britter
Add missing predefined formats to class documentation


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

Branch: refs/heads/release
Commit: 3d4a7e6716af61a5462d81aa355229d9a4b52ae3
Parents: 39e8ee6
Author: Benedikt Ritter 
Authored: Mon Aug 20 08:47:20 2018 +0200
Committer: Benedikt Ritter 
Committed: Mon Aug 20 08:47:20 2018 +0200

--
 src/main/java/org/apache/commons/csv/CSVFormat.java | 5 +
 1 file changed, 5 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3d4a7e67/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 10cc199..a0a83cc 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -58,8 +58,13 @@ import java.util.Set;
  * 
  * {@link #DEFAULT}
  * {@link #EXCEL}
+ * {@link #INFORMIX_UNLOAD}
+ * {@link #INFORMIX_UNLOAD_CSV}
  * {@link #MYSQL}
  * {@link #RFC4180}
+ * {@link #ORACLE}
+ * {@link #POSTGRESQL_CSV}
+ * {@link #POSTGRESQL_TEXT}
  * {@link #TDF}
  * 
  *



[11/48] commons-csv git commit: travis: add java 9 to build (closes #23)

2018-09-19 Thread britter
travis: add java 9 to build (closes #23)

pom.xml: add java 9 profile and override jacoco version to make build pass


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

Branch: refs/heads/release
Commit: d20e5abaa3bd1718de4e5e8d1caf6b7dbdcfa021
Parents: 27cdc55
Author: Pascal Schumacher 
Authored: Mon Oct 2 12:02:32 2017 +0200
Committer: pascalschumacher 
Committed: Thu Oct 12 22:41:08 2017 +0200

--
 .travis.yml |  1 +
 pom.xml | 16 
 2 files changed, 17 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/d20e5aba/.travis.yml
--
diff --git a/.travis.yml b/.travis.yml
index a697e28..d842196 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,6 +22,7 @@ script:
 jdk:
   - openjdk7
   - oraclejdk8
+  - oraclejdk9
 
 after_success:
   - mvn -B -V -Ptravis-jacoco clean test jacoco:report coveralls:report

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/d20e5aba/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 8011872..e3533e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -152,6 +152,9 @@ CSV files of various types.
 2.17
 
${basedir}/LICENSE-header.txt
 LICENSE.txt, 
NOTICE.txt
+
+
+0.7.9
   
 
   
@@ -512,6 +515,19 @@ CSV files of various types.
 
   
 
+
+ 
+  java9
+  
+9
+  
+  
+
+3.0.0-M1
+
+true
+  
+
   
 
 



[32/48] commons-csv git commit: Remove trailing white spaces on all lines.

2018-09-19 Thread britter
Remove trailing white spaces on all lines.

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

Branch: refs/heads/release
Commit: 05e2f7763a7abc8cf29074fdeed4f8bae1951165
Parents: f5a1968
Author: Gary Gregory 
Authored: Sat May 19 09:08:25 2018 -0600
Committer: Gary Gregory 
Committed: Sat May 19 09:08:25 2018 -0600

--
 .../java/org/apache/commons/csv/CSVParser.java| 18 +-
 .../org/apache/commons/csv/CSVParserTest.java |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/05e2f776/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 ac45c72..6e121e8 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -287,7 +287,7 @@ public final class CSVParser implements 
Iterable, Closeable {
 private final Lexer lexer;
 
 private final CSVRecordIterator csvRecordIterator;
-
+
 /** A record buffer for getRecord(). Grows as necessary and is reused. */
 private final List recordList = new ArrayList<>();
 
@@ -524,10 +524,10 @@ public final class CSVParser implements 
Iterable, Closeable {
 public Iterator iterator() {
 return csvRecordIterator;
 }
-
+
 class CSVRecordIterator implements Iterator {
 private CSVRecord current;
-  
+
 private CSVRecord getNextRecord() {
 try {
 return CSVParser.this.nextRecord();
@@ -536,7 +536,7 @@ public final class CSVParser implements 
Iterable, Closeable {
 e.getClass().getSimpleName() + " reading next record: 
" + e.toString(), e);
 }
 }
-  
+
 @Override
 public boolean hasNext() {
 if (CSVParser.this.isClosed()) {
@@ -545,10 +545,10 @@ public final class CSVParser implements 
Iterable, Closeable {
 if (this.current == null) {
 this.current = this.getNextRecord();
 }
-  
+
 return this.current != null;
 }
-  
+
 @Override
 public CSVRecord next() {
 if (CSVParser.this.isClosed()) {
@@ -556,7 +556,7 @@ public final class CSVParser implements 
Iterable, Closeable {
 }
 CSVRecord next = this.current;
 this.current = null;
-  
+
 if (next == null) {
 // hasNext() wasn't called before
 next = this.getNextRecord();
@@ -564,10 +564,10 @@ public final class CSVParser implements 
Iterable, Closeable {
 throw new NoSuchElementException("No more CSV records 
available");
 }
 }
-  
+
 return next;
 }
-  
+
 @Override
 public void remove() {
 throw new UnsupportedOperationException();

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/05e2f776/src/test/java/org/apache/commons/csv/CSVParserTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java 
b/src/test/java/org/apache/commons/csv/CSVParserTest.java
index 8336154..1e355f1 100644
--- a/src/test/java/org/apache/commons/csv/CSVParserTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -1103,7 +1103,7 @@ public class CSVParserTest {
 assertEquals(String.valueOf(recordNumber), record.get(0));
 }
 }
-
+
 private void validateLineNumbers(final String lineSeparator) throws 
IOException {
 try (final CSVParser parser = CSVParser.parse("a" + lineSeparator + 
"b" + lineSeparator + "c",
 CSVFormat.DEFAULT.withRecordSeparator(lineSeparator))) {



[43/48] commons-csv git commit: Remove empty paragraph from JavaDoc

2018-09-19 Thread britter
Remove empty paragraph from JavaDoc


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

Branch: refs/heads/release
Commit: 4e1802db96a352d244b1a5d53cfea1414952eeb1
Parents: 71459b6
Author: Benedikt Ritter 
Authored: Fri Aug 31 10:51:00 2018 +0200
Committer: Benedikt Ritter 
Committed: Fri Aug 31 10:51:00 2018 +0200

--
 src/main/java/org/apache/commons/csv/CSVPrinter.java | 1 -
 1 file changed, 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/4e1802db/src/main/java/org/apache/commons/csv/CSVPrinter.java
--
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java 
b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index ccf4bff..70e3bed 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -64,7 +64,6 @@ import java.util.Arrays;
  *
  * 2,mary,Mary,Meyer,1985-03-29
  * 
- * 
  */
 public final class CSVPrinter implements Flushable, Closeable {
 



[23/48] commons-csv git commit: [CSV-223] Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL. Apply modified patch from Samuel Martin. Closes #26.

2018-09-19 Thread britter
[CSV-223] Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
Apply modified patch from Samuel Martin. Closes #26.

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

Branch: refs/heads/release
Commit: 83cd8088a63db894a0358e3ad5abbecc83964f3a
Parents: eede739
Author: Gary Gregory 
Authored: Tue Apr 3 13:45:05 2018 -0600
Committer: Gary Gregory 
Committed: Tue Apr 3 13:45:05 2018 -0600

--
 src/changes/changes.xml | 1 +
 src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/83cd8088/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 217c2ce..7297a18 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -43,6 +43,7 @@
   The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).
   Don't quote cells just because they have UTF-8 encoded 
characters.
   Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
+  Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/83cd8088/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 10f766d..d7698ab 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -267,8 +267,8 @@ public final class CSVFormat implements Serializable {
  * {@link #withAllowMissingColumnNames(boolean) 
withAllowMissingColumnNames(true)}
  * 
  * 
- * Note: this is currently like {@link #RFC4180} plus {@link 
#withAllowMissingColumnNames(boolean)
- * withAllowMissingColumnNames(true)}.
+ * Note: This is currently like {@link #RFC4180} plus {@link 
#withAllowMissingColumnNames(boolean)
+ * withAllowMissingColumnNames(true)} and {@link 
#withIgnoreEmptyLines(boolean) withIgnoreEmptyLines(false)}.
  * 
  *
  * @see Predefined#Excel



[06/48] commons-csv git commit: [CSV-217] Add autoFlush option for CsvPrinter. Remove println() in test.

2018-09-19 Thread britter
[CSV-217] Add autoFlush option for CsvPrinter. Remove println() in test.

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

Branch: refs/heads/release
Commit: 3c0a73b30f1969136987f25227383ae9d233e4c1
Parents: 9c20341
Author: Gary Gregory 
Authored: Mon Oct 9 13:24:47 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:24:47 2017 -0600

--
 src/test/java/org/apache/commons/csv/CSVPrinterTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3c0a73b3/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java 
b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
index 893675c..30eb652 100644
--- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
@@ -1347,7 +1347,7 @@ public class CSVPrinterTest {
 
 @Test
 public void testCloseWithCsvFormatAutoFlushOn() throws IOException {
-System.out.println("start method");
+// System.out.println("start method");
 Writer writer = mock(Writer.class);
 CSVFormat csvFormat = CSVFormat.DEFAULT.withAutoFlush(true);
 try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {



[18/48] commons-csv git commit: Sort methods.

2018-09-19 Thread britter
Sort methods.

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

Branch: refs/heads/release
Commit: 4f58df6d4a41ef489ed117fb58a93b68328ec5ed
Parents: 8b3de71
Author: Gary Gregory 
Authored: Mon Dec 11 11:42:09 2017 -0700
Committer: Gary Gregory 
Committed: Mon Dec 11 11:42:09 2017 -0700

--
 .../org/apache/commons/csv/CSVFormatTest.java   | 824 +--
 1 file changed, 412 insertions(+), 412 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/4f58df6d/src/test/java/org/apache/commons/csv/CSVFormatTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java 
b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
index 7eb0ce5..9a69780 100644
--- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
@@ -44,6 +44,13 @@ import org.junit.Test;
  */
 public class CSVFormatTest {
 
+public enum EmptyEnum {
+}
+
+public enum Header {
+Name, Email, Phone
+}
+
 private static void assertNotEquals(final Object right, final Object left) 
{
 assertFalse(right.equals(left));
 assertFalse(left.equals(right));
@@ -164,14 +171,6 @@ public class CSVFormatTest {
 }
 
 @Test
-public void testEqualsQuoteChar() {
-final CSVFormat right = CSVFormat.newFormat('\'').withQuote('"');
-final CSVFormat left = right.withQuote('!');
-
-assertNotEquals(right, left);
-}
-
-@Test
 public void testEqualsLeftNoQuoteRightQuote() {
final CSVFormat left = CSVFormat.newFormat(',').withQuote(null);
final CSVFormat right = left.withQuote('#');
@@ -188,34 +187,172 @@ public class CSVFormatTest {
 }
 
 @Test
-public void testEqualsQuotePolicy() {
+public void testEqualsNullString() {
 final CSVFormat right = CSVFormat.newFormat('\'')
+.withRecordSeparator(CR)
+.withCommentMarker('#')
+.withEscape('+')
+.withIgnoreEmptyLines()
+.withIgnoreSurroundingSpaces()
 .withQuote('"')
-.withQuoteMode(QuoteMode.ALL);
+.withQuoteMode(QuoteMode.ALL)
+.withNullString("null");
 final CSVFormat left = right
-.withQuoteMode(QuoteMode.MINIMAL);
+.withNullString("---");
 
 assertNotEquals(right, left);
 }
 
 @Test
-public void testEqualsRecordSeparator() {
+public void testEqualsOne() {
+
+final CSVFormat cSVFormatOne = CSVFormat.INFORMIX_UNLOAD;
+final CSVFormat cSVFormatTwo = CSVFormat.MYSQL;
+
+
+assertEquals('\\', (char)cSVFormatOne.getEscapeCharacter());
+assertNull(cSVFormatOne.getQuoteMode());
+
+assertTrue(cSVFormatOne.getIgnoreEmptyLines());
+assertFalse(cSVFormatOne.getSkipHeaderRecord());
+
+assertFalse(cSVFormatOne.getIgnoreHeaderCase());
+assertNull(cSVFormatOne.getCommentMarker());
+
+assertFalse(cSVFormatOne.isCommentMarkerSet());
+assertTrue(cSVFormatOne.isQuoteCharacterSet());
+
+assertEquals('|', cSVFormatOne.getDelimiter());
+assertFalse(cSVFormatOne.getAllowMissingColumnNames());
+
+assertTrue(cSVFormatOne.isEscapeCharacterSet());
+assertEquals("\n", cSVFormatOne.getRecordSeparator());
+
+assertEquals('\"', (char)cSVFormatOne.getQuoteCharacter());
+assertFalse(cSVFormatOne.getTrailingDelimiter());
+
+assertFalse(cSVFormatOne.getTrim());
+assertFalse(cSVFormatOne.isNullStringSet());
+
+assertNull(cSVFormatOne.getNullString());
+assertFalse(cSVFormatOne.getIgnoreSurroundingSpaces());
+
+
+assertTrue(cSVFormatTwo.isEscapeCharacterSet());
+assertNull(cSVFormatTwo.getQuoteCharacter());
+
+assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+assertEquals(QuoteMode.ALL_NON_NULL, cSVFormatTwo.getQuoteMode());
+
+assertEquals('\t', cSVFormatTwo.getDelimiter());
+assertEquals("\n", cSVFormatTwo.getRecordSeparator());
+
+assertFalse(cSVFormatTwo.isQuoteCharacterSet());
+assertTrue(cSVFormatTwo.isNullStringSet());
+
+assertEquals('\\', (char)cSVFormatTwo.getEscapeCharacter());
+assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+
+assertFalse(cSVFormatTwo.getTrim());
+assertFalse(cSVFormatTwo.getIgnoreEmptyLines());
+
+assertEquals("\\N", cSVFormatTwo.getNullString());
+assertFalse(cSVFormatTwo.getIgnoreSurro

[33/48] commons-csv git commit: Normalize caps.

2018-09-19 Thread britter
Normalize caps.

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

Branch: refs/heads/release
Commit: 98d44079386039f3a6b2ecb8ba7b9165567fdf8d
Parents: 05e2f77
Author: Gary Gregory 
Authored: Tue Jun 5 09:06:13 2018 -0600
Committer: Gary Gregory 
Committed: Tue Jun 5 09:06:13 2018 -0600

--
 src/changes/changes.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/98d44079/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 21229a3..dd56857 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -45,7 +45,7 @@
   Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
   Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
   Create CSVFormat.ORACLE preset.
-  Some Multi Iterator Parsing Peek Sequences Incorrectly Consume 
Elements.
+  Some multi-iterator parsing peek sequences incorrectly consume 
elements.
   Parse method should avoid creating a redundant 
BufferedReader.
 
 



[38/48] commons-csv git commit: Update tests from Apache Commons Lang 3.7 to 3.8.

2018-09-19 Thread britter
Update tests from Apache Commons Lang 3.7 to 3.8.

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

Branch: refs/heads/release
Commit: 47dbc8fd1e1bdad8970c804e4ecde2ed3af07784
Parents: 768f656
Author: Gary Gregory 
Authored: Tue Aug 21 09:07:58 2018 -0600
Committer: Gary Gregory 
Committed: Tue Aug 21 09:07:58 2018 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/47dbc8fd/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 3beeffc..f9491cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@ CSV files of various types.
 
   org.apache.commons
   commons-lang3
-  3.7
+  3.8
   test
 
 



[28/48] commons-csv git commit: Fix compiler warning.

2018-09-19 Thread britter
Fix compiler warning.

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

Branch: refs/heads/release
Commit: 33f662b219b439af5134de4553a1bb9485136999
Parents: 5c0d27c
Author: Gary Gregory 
Authored: Fri May 18 13:47:37 2018 -0600
Committer: Gary Gregory 
Committed: Fri May 18 13:47:37 2018 -0600

--
 .../org/apache/commons/csv/CSVPrinterTest.java  | 39 ++--
 1 file changed, 20 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/33f662b2/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java 
b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
index 36308c5..45c8445 100644
--- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
@@ -1352,33 +1352,34 @@ public class CSVPrinterTest {
 
 @Test
 public void testCloseBackwardCompatibility() throws IOException {
-final Writer writer = mock(Writer.class);
-final CSVFormat csvFormat = CSVFormat.DEFAULT;
-try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
-}
-verify(writer, never()).flush();
-verify(writer, times(1)).close();
-}
+try (final Writer writer = mock(Writer.class)) {
+final CSVFormat csvFormat = CSVFormat.DEFAULT;
+try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
+}
+verify(writer, never()).flush();
+verify(writer, times(1)).close();
+}}
 
 @Test
 public void testCloseWithCsvFormatAutoFlushOn() throws IOException {
 // System.out.println("start method");
-final Writer writer = mock(Writer.class);
-final CSVFormat csvFormat = CSVFormat.DEFAULT.withAutoFlush(true);
-try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
-}
-verify(writer, times(1)).flush();
-verify(writer, times(1)).close();
-}
+try (final Writer writer = mock(Writer.class)) {
+final CSVFormat csvFormat = CSVFormat.DEFAULT.withAutoFlush(true);
+try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
+}
+verify(writer, times(1)).flush();
+verify(writer, times(1)).close();
+}}
 
 @Test
 public void testCloseWithCsvFormatAutoFlushOff() throws IOException {
-final Writer writer = mock(Writer.class);
-final CSVFormat csvFormat = CSVFormat.DEFAULT.withAutoFlush(false);
-try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
+try (final Writer writer = mock(Writer.class)) {
+final CSVFormat csvFormat = CSVFormat.DEFAULT.withAutoFlush(false);
+try (CSVPrinter csvPrinter = new CSVPrinter(writer, csvFormat)) {
+}
+verify(writer, never()).flush();
+verify(writer, times(1)).close();
 }
-verify(writer, never()).flush();
-verify(writer, times(1)).close();
 }
 
 }



[29/48] commons-csv git commit: [CSV-224] Some Multi Iterator Parsing Peek Sequences Incorrectly Consume Elements.

2018-09-19 Thread britter
[CSV-224] Some Multi Iterator Parsing Peek Sequences Incorrectly Consume
Elements.

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

Branch: refs/heads/release
Commit: f368f64fa7f9acdcc01084f676e8b9c2b86f946e
Parents: 33f662b
Author: David Warshaw 
Authored: Fri May 18 14:24:50 2018 -0600
Committer: Gary Gregory 
Committed: Fri May 18 14:24:50 2018 -0600

--
 src/changes/changes.xml |  1 +
 .../java/org/apache/commons/csv/CSVParser.java  | 93 +++-
 .../org/apache/commons/csv/CSVParserTest.java   | 56 
 3 files changed, 106 insertions(+), 44 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/f368f64f/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8142c21..d94ccdd 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -45,6 +45,7 @@
   Add API 
org.apache.commons.csv.CSVFormat.withSystemRecordSeparator().
   Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
   Create CSVFormat.ORACLE preset.
+  Some Multi Iterator Parsing Peek Sequences Incorrectly Consume 
Elements.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/f368f64f/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 2a902cd..7e9d7d4 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -286,6 +286,8 @@ public final class CSVParser implements 
Iterable, Closeable {
 
 private final Lexer lexer;
 
+private final CSVRecordIterator csvRecordIterator;
+
 /** A record buffer for getRecord(). Grows as necessary and is reused. */
 private final List recordList = new ArrayList<>();
 
@@ -353,6 +355,7 @@ public final class CSVParser implements 
Iterable, Closeable {
 
 this.format = format;
 this.lexer = new Lexer(format, new ExtendedBufferedReader(reader));
+this.csvRecordIterator = new CSVRecordIterator();
 this.headerMap = this.initializeHeader();
 this.characterOffset = characterOffset;
 this.recordNumber = recordNumber - 1;
@@ -519,55 +522,57 @@ public final class CSVParser implements 
Iterable, Closeable {
  */
 @Override
 public Iterator iterator() {
-return new Iterator() {
-private CSVRecord current;
-
-private CSVRecord getNextRecord() {
-try {
-return CSVParser.this.nextRecord();
-} catch (final IOException e) {
-throw new IllegalStateException(
-e.getClass().getSimpleName() + " reading next 
record: " + e.toString(), e);
-}
+return csvRecordIterator;
+}
+
+class CSVRecordIterator implements Iterator {
+private CSVRecord current;
+  
+private CSVRecord getNextRecord() {
+try {
+return CSVParser.this.nextRecord();
+} catch (final IOException e) {
+throw new IllegalStateException(
+e.getClass().getSimpleName() + " reading next record: 
" + e.toString(), e);
 }
-
-@Override
-public boolean hasNext() {
-if (CSVParser.this.isClosed()) {
-return false;
-}
-if (this.current == null) {
-this.current = this.getNextRecord();
-}
-
-return this.current != null;
+}
+  
+@Override
+public boolean hasNext() {
+if (CSVParser.this.isClosed()) {
+return false;
 }
-
-@Override
-public CSVRecord next() {
-if (CSVParser.this.isClosed()) {
-throw new NoSuchElementException("CSVParser has been 
closed");
-}
-CSVRecord next = this.current;
-this.current = null;
-
+if (this.current == null) {
+this.current = this.getNextRecord();
+}
+  
+return this.current != null;
+}
+  
+@Override
+public CSVRecord next() {
+if (CSVParser.this.isC

[27/48] commons-csv git commit: Remove trailing whitespace.

2018-09-19 Thread britter
Remove trailing whitespace.

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

Branch: refs/heads/release
Commit: 5c0d27c0e28797d86185d85c229c23e3adaa35d9
Parents: c00f4d4
Author: Gary Gregory 
Authored: Fri May 18 13:39:49 2018 -0600
Committer: Gary Gregory 
Committed: Fri May 18 13:39:49 2018 -0600

--
 src/test/java/org/apache/commons/csv/CSVPrinterTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/5c0d27c0/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java 
b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
index 57a2568..36308c5 100644
--- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
@@ -1187,7 +1187,7 @@ public class CSVPrinterTest {
 public void testRandomOracle() throws Exception {
 doRandom(CSVFormat.ORACLE, ITERATIONS_FOR_RANDOM_TEST);
 }
-
+
 @Test
 @Ignore
 public void testRandomPostgreSqlCsv() throws Exception {



[07/48] commons-csv git commit: Next version will be 1.6 due to new auto-flush feature just added.

2018-09-19 Thread britter
Next version will be 1.6 due to new auto-flush feature just added.

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

Branch: refs/heads/release
Commit: 5ca0f91ff65440476239d67dd31da9556da1bd88
Parents: 3c0a73b
Author: Gary Gregory 
Authored: Mon Oct 9 13:25:13 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:25:13 2017 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/5ca0f91f/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 0feb5be..a9777da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -134,7 +134,7 @@ CSV files of various types.
   
 
   
-1.5
+1.6
 (Java 7+)
 
 RC1



[48/48] commons-csv git commit: Update website for commons-csv 1.6 release

2018-09-19 Thread britter
Update website for commons-csv 1.6 release


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

Branch: refs/heads/release
Commit: 2596582d61083f0d6ea9e3de63307d005f9aab2d
Parents: 6c87f1f
Author: Benedikt Ritter 
Authored: Wed Sep 19 11:03:14 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 11:03:14 2018 +0200

--
 src/site/site.xml   | 2 ++
 src/site/xdoc/index.xml | 6 --
 2 files changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596582d/src/site/site.xml
--
diff --git a/src/site/site.xml b/src/site/site.xml
index 25165bc..ad46165 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -40,6 +40,7 @@
   
   
   
+  
   
   
   
@@ -49,6 +50,7 @@
 
 
 
+  
   
   
   

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/2596582d/src/site/xdoc/index.xml
--
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 04dabfb..8d8b248 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -51,6 +51,7 @@ The Javadoc API documents are available online:
 
 
   Javadoc trunk
+  Javadoc 1.6
   Javadoc 1.5
   Javadoc 1.4
   Javadoc 1.3
@@ -66,7 +67,8 @@ The git repository can be
 
 
 
-  http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.5 (mirrors) requires Java 1.7
+  http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.6 (mirrors) requires Java 1.7
+  http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.5 (archives) requires Java 1.7
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.3 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.2 (archives) requires Java 1.6
@@ -89,7 +91,7 @@ For previous releases, see the http://archive.apache.org/dist/commons/c
   
 org.apache.commons
 commons-csv
-1.5
+1.6
 
 
 



[31/48] commons-csv git commit: [CSV-225] Parse method should avoid creating a redundant BufferedReader.

2018-09-19 Thread britter
[CSV-225] Parse method should avoid creating a redundant BufferedReader.

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

Branch: refs/heads/release
Commit: f5a1968bb128db9a6a13ad0731f00237800163b2
Parents: 865872e
Author: Gary Gregory 
Authored: Sat May 19 09:03:56 2018 -0600
Committer: Gary Gregory 
Committed: Sat May 19 09:03:56 2018 -0600

--
 src/changes/changes.xml | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/f5a1968b/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d94ccdd..21229a3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,6 +46,7 @@
   Inconsistency between Javadoc of CSVFormat DEFAULT EXCEL.
   Create CSVFormat.ORACLE preset.
   Some Multi Iterator Parsing Peek Sequences Incorrectly Consume 
Elements.
+  Parse method should avoid creating a redundant 
BufferedReader.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.



[17/48] commons-csv git commit: [CSV-219] The behavior of quote char using is not similar as Excel does when the first string contains CJK char(s). [CSV-172] Don't quote cells just because they have U

2018-09-19 Thread britter
[CSV-219] The behavior of quote char using is not similar as Excel does
when the first string contains CJK char(s).
[CSV-172] Don't quote cells just because they have UTF-8 encoded
characters.


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

Branch: refs/heads/release
Commit: 8b3de71fd99d0fa07cb6a3a35b583bbb170aab66
Parents: e76c4d8
Author: Gary Gregory 
Authored: Mon Dec 11 11:16:01 2017 -0700
Committer: Gary Gregory 
Committed: Mon Dec 11 11:16:01 2017 -0700

--
 src/changes/changes.xml|  2 ++
 src/main/java/org/apache/commons/csv/CSVFormat.java|  5 +
 .../java/org/apache/commons/csv/CSVPrinterTest.java| 13 +++--
 3 files changed, 14 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/8b3de71f/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index b56b75f..302632e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -40,6 +40,8 @@
   
 
   Add autoFlush option for CsvPrinter. PR #24.
+  The behavior of quote char using is not similar as Excel does when the 
first string contains CJK char(s).
+  Don't quote cells just because they have UTF-8 encoded 
characters.
 
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/8b3de71f/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 58948fd..dc7588b 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -1186,10 +1186,7 @@ public final class CSVFormat implements Serializable {
 } else {
 char c = value.charAt(pos);
 
-// RFC4180 (https://tools.ietf.org/html/rfc4180) TEXTDATA =  
%x20-21 / %x23-2B / %x2D-7E
-if (newRecord && (c < 0x20 || c > 0x21 && c < 0x23 || c > 0x2B 
&& c < 0x2D || c > 0x7E)) {
-quote = true;
-} else if (c <= COMMENT) {
+if (c <= COMMENT) {
 // Some other chars at the start of a value caused the 
parser to fail, so for now
 // encapsulate if we start in anything less than '#'. We 
are being conservative
 // by including the default comment char too.

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/8b3de71f/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
--
diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java 
b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
index ae7aae2..5a09627 100644
--- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java
@@ -1033,11 +1033,20 @@ public class CSVPrinterTest {
 }
 
 @Test
-public void testRfc4180QuoteSingleChar() throws IOException {
+public void testDontQuoteEuroFirstChar() throws IOException {
 final StringWriter sw = new StringWriter();
 try (final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.RFC4180)) 
{
 printer.printRecord(EURO_CH, "Deux");
-assertEquals("\"" + EURO_CH + "\",Deux" + recordSeparator, 
sw.toString());
+assertEquals(EURO_CH + ",Deux" + recordSeparator, sw.toString());
+}
+}
+
+@Test
+public void testQuoteCommaFirstChar() throws IOException {
+final StringWriter sw = new StringWriter();
+try (final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.RFC4180)) 
{
+printer.printRecord(",");
+assertEquals("\",\"" + recordSeparator, sw.toString());
 }
 }
 



[10/48] commons-csv git commit: findbugs-maven-plugin 3.0.4 -> 3.0.5.

2018-09-19 Thread britter
findbugs-maven-plugin 3.0.4 -> 3.0.5.

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

Branch: refs/heads/release
Commit: 27cdc557283ee23e32384fcafcd9f2dcab416378
Parents: 0c216e7
Author: Gary Gregory 
Authored: Mon Oct 9 13:56:34 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:56:34 2017 -0600

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/27cdc557/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 266b509..8011872 100644
--- a/pom.xml
+++ b/pom.xml
@@ -271,7 +271,7 @@ CSV files of various types.
   
 org.codehaus.mojo
 findbugs-maven-plugin
-3.0.4
+3.0.5
   
   
 org.codehaus.mojo



[47/48] commons-csv git commit: Fix link to release archive

2018-09-19 Thread britter
Fix link to release archive


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

Branch: refs/heads/release
Commit: 6c87f1fe41d93057dbccbf074f855b56dc737950
Parents: 79adf78
Author: Benedikt Ritter 
Authored: Wed Sep 19 10:59:14 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 19 10:59:14 2018 +0200

--
 src/site/xdoc/index.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/6c87f1fe/src/site/xdoc/index.xml
--
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 40df179..04dabfb 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -67,7 +67,7 @@ The git repository can be
 
 
   http://commons.apache.org/csv/download_csv.cgi";>Apache Commons 
CSV 1.5 (mirrors) requires Java 1.7
-  http://commons.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
+  http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.4 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.3 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.2 (archives) requires Java 1.6
   http://archive.apache.org/dist/commons/csv/";>Apache Commons CSV 
1.1 (archives) requires Java 1.6



[02/48] commons-csv git commit: Update CSV 1.5 release date in changes.xml

2018-09-19 Thread britter
Update CSV 1.5 release date in changes.xml


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

Branch: refs/heads/release
Commit: edb87f3a5e53c2160fc3da79f066beb4459c707c
Parents: 3e3c236
Author: Bruno P. Kinoshita 
Authored: Sun Sep 3 17:48:13 2017 +1200
Committer: Bruno P. Kinoshita 
Committed: Sun Sep 3 17:48:13 2017 +1200

--
 src/changes/changes.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/edb87f3a/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 62fe6c2..039d15f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,7 +38,7 @@
 Release Notes
   
   
-
+
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.
   Fix outdated comments about FileReader in CSVParser #13
   Fix incorrect method name 'withFirstRowAsHeader' in user guide.



[01/48] commons-csv git commit: Bump to next development version

2018-09-19 Thread britter
Repository: commons-csv
Updated Branches:
  refs/heads/release f76a13570 -> 2596582d6


Bump to next development version


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

Branch: refs/heads/release
Commit: 3e3c236562ed3c520f70bb0cfeec9c8587fd9481
Parents: f76a135
Author: Bruno P. Kinoshita 
Authored: Sun Sep 3 17:26:46 2017 +1200
Committer: Bruno P. Kinoshita 
Committed: Sun Sep 3 17:26:46 2017 +1200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3e3c2365/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 232a5de..262bc17 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 42
   
   commons-csv
-  1.5
+  1.5.1-SNAPSHOT
   Apache Commons CSV
   http://commons.apache.org/proper/commons-csv/
   



[35/48] commons-csv git commit: Fix checkstyle errors

2018-09-19 Thread britter
Fix checkstyle errors


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

Branch: refs/heads/release
Commit: 39e8ee6f9fcc1d294aa3fb2ba11fdc4c2d272521
Parents: ea13687
Author: Benedikt Ritter 
Authored: Mon Aug 20 08:40:30 2018 +0200
Committer: Benedikt Ritter 
Committed: Mon Aug 20 08:40:30 2018 +0200

--
 src/main/java/org/apache/commons/csv/CSVFormat.java | 14 --
 1 file changed, 8 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/39e8ee6f/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 a74e47b..10cc199 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -386,8 +386,9 @@ public final class CSVFormat implements Serializable {
  * Default Oracle format used by the SQL*Loader utility.
  *
  * 
- * This is a comma-delimited format with the system line separator 
character as the record separator. Values are double quoted when needed and 
special
- * characters are escaped with {@code '"'}. The default NULL string is 
{@code ""}. Values are trimmed.
+ * This is a comma-delimited format with the system line separator 
character as the record separator.Values are
+ * double quoted when needed and special characters are escaped with 
{@code '"'}. The default NULL string is
+ * {@code ""}. Values are trimmed.
  * 
  *
  * 
@@ -405,7 +406,7 @@ public final class CSVFormat implements Serializable {
  * 
  *
  * @see Predefined#Oracle
- * @see https://docs.oracle.com/database/121/SUTIL/GUID-D1762699-8154-40F6-90DE-EFB8EB6A9AB0.htm#SUTIL4217";>https://docs.oracle.com/database/121/SUTIL/GUID-D1762699-8154-40F6-90DE-EFB8EB6A9AB0.htm#SUTIL4217
+ * @see https://s.apache.org/CGXG";>Oracle CSV Format 
Specification
  * @since 1.6
  */
 // @formatter:off
@@ -442,8 +443,8 @@ public final class CSVFormat implements Serializable {
  * 
  *
  * @see Predefined#MySQL
- * @see https://www.postgresql.org/docs/current/static/sql-copy.html";> 
https://www.postgresql.org/docs/current/static/sql-copy.html
- *  -data.html
+ * @see https://www.postgresql.org/docs/current/static/sql-copy.html";>PostgreSQL 
COPY command
+ *  documentation
  * @since 1.5
  */
 // @formatter:off
@@ -479,7 +480,8 @@ public final class CSVFormat implements Serializable {
  * 
  *
  * @see Predefined#MySQL
- * @see https://www.postgresql.org/docs/current/static/sql-copy.html";> 
https://www.postgresql.org/docs/current/static/sql-copy.html
+ * @see https://www.postgresql.org/docs/current/static/sql-copy.html";>PostgreSQL 
COPY command
+ *  documentation
  * @since 1.5
  */
 // @formatter:off



[03/48] commons-csv git commit: Add version 1.6 to changes.

2018-09-19 Thread britter
Add version 1.6 to changes.

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

Branch: refs/heads/release
Commit: 10977ae1b2e50d3b347d9fe501c4e40a7dccd94e
Parents: edb87f3
Author: Gary Gregory 
Authored: Mon Oct 9 13:10:23 2017 -0600
Committer: Gary Gregory 
Committed: Mon Oct 9 13:10:23 2017 -0600

--
 src/changes/changes.xml | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/10977ae1/src/changes/changes.xml
--
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 039d15f..bbfa930 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,6 +38,8 @@
 Release Notes
   
   
+
+
 
   withNullString value is printed without quotes when 
QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17.
   Fix outdated comments about FileReader in CSVParser #13



[14/48] commons-csv git commit: Fix Javadocs typos

2018-09-19 Thread britter
Fix Javadocs typos


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

Branch: refs/heads/release
Commit: 0051a83dcdceb818562fd30d7f195b91a549985f
Parents: 1521cc2
Author: Bruno P. Kinoshita 
Authored: Sun Oct 22 00:13:22 2017 +1300
Committer: Bruno P. Kinoshita 
Committed: Sun Oct 22 00:13:22 2017 +1300

--
 src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++--
 src/main/java/org/apache/commons/csv/Lexer.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0051a83d/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 00f1064..58948fd 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -1859,7 +1859,7 @@ public final class CSVFormat implements Serializable {
  * @param recordSeparator
  *the record separator to use for output.
  *
- * @return A new CSVFormat that is equal to this but with the the 
specified output record separator
+ * @return A new CSVFormat that is equal to this but with the specified 
output record separator
  */
 public CSVFormat withRecordSeparator(final char recordSeparator) {
 return withRecordSeparator(String.valueOf(recordSeparator));
@@ -1876,7 +1876,7 @@ public final class CSVFormat implements Serializable {
  * @param recordSeparator
  *the record separator to use for output.
  *
- * @return A new CSVFormat that is equal to this but with the the 
specified output record separator
+ * @return A new CSVFormat that is equal to this but with the specified 
output record separator
  * @throws IllegalArgumentException
  * if recordSeparator is none of CR, LF or CRLF
  */

http://git-wip-us.apache.org/repos/asf/commons-csv/blob/0051a83d/src/main/java/org/apache/commons/csv/Lexer.java
--
diff --git a/src/main/java/org/apache/commons/csv/Lexer.java 
b/src/main/java/org/apache/commons/csv/Lexer.java
index 8106532..76fa81e 100644
--- a/src/main/java/org/apache/commons/csv/Lexer.java
+++ b/src/main/java/org/apache/commons/csv/Lexer.java
@@ -326,7 +326,7 @@ final class Lexer implements Closeable {
  * @return the unescaped character (as an int) or {@link 
Constants#END_OF_STREAM} if char following the escape is
  *  invalid.
  * @throws IOException if there is a problem reading the stream or the end 
of stream is detected:
- *  the escape character is not allowed at end of strem
+ *  the escape character is not allowed at end of stream
  */
 int readEscape() throws IOException {
 // the escape char has just been read (normally a backslash)



[22/48] commons-csv git commit: Slightly better Javadoc.

2018-09-19 Thread britter
Slightly better Javadoc.

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

Branch: refs/heads/release
Commit: eede739d18c69722ff39e8e42df6b68ae7627082
Parents: f3f48be
Author: Gary Gregory 
Authored: Tue Jan 9 10:31:48 2018 -0700
Committer: Gary Gregory 
Committed: Tue Jan 9 10:31:48 2018 -0700

--
 src/main/java/org/apache/commons/csv/QuoteMode.java | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/eede739d/src/main/java/org/apache/commons/csv/QuoteMode.java
--
diff --git a/src/main/java/org/apache/commons/csv/QuoteMode.java 
b/src/main/java/org/apache/commons/csv/QuoteMode.java
index 216f775..272deb7 100644
--- a/src/main/java/org/apache/commons/csv/QuoteMode.java
+++ b/src/main/java/org/apache/commons/csv/QuoteMode.java
@@ -17,8 +17,7 @@
 package org.apache.commons.csv;
 
 /**
- * Defines quote behavior when printing.
- *
+ * Defines quoting behavior when printing.
  */
 public enum QuoteMode {
 
@@ -33,8 +32,8 @@ public enum QuoteMode {
 ALL_NON_NULL,
 
 /**
- * Quotes fields which contain special characters such as a delimiter, 
quotes character or any of the characters in
- * line separator.
+ * Quotes fields which contain special characters such as a the field 
delimiter, quote character or any of the
+ * characters in the line separator string.
  */
 MINIMAL,
 
@@ -44,8 +43,8 @@ public enum QuoteMode {
 NON_NUMERIC,
 
 /**
- * Never quotes fields. When the delimiter occurs in data, the printer 
prefixes it with the current escape
- * character. If the escape character is not set, format validation throws 
an exception.
+ * Never quotes fields. When the delimiter occurs in data, the printer 
prefixes it with the escape character. If the
+ * escape character is not set, format validation throws an exception.
  */
 NONE
 }



svn commit: r1841298 - /commons/proper/commons-parent/trunk/pom.xml

2018-09-19 Thread britter
Author: britter
Date: Wed Sep 19 08:13:47 2018
New Revision: 1841298

URL: http://svn.apache.org/viewvc?rev=1841298&view=rev
Log:
Remove redundant information that is already in changes.xml

Modified:
commons/proper/commons-parent/trunk/pom.xml

Modified: commons/proper/commons-parent/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1841298&r1=1841297&r2=1841298&view=diff
==
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Wed Sep 19 08:13:47 2018
@@ -37,169 +37,6 @@
 http://issues.apache.org/jira/browse/COMMONSSITE
   
 
-  
-  
-  
-  
-  
-
-  
-
-  
-
-  
-  
-  
-
   
 3.0.5
   




svn commit: r1841297 - /commons/proper/commons-parent/trunk/src/changes/changes.xml

2018-09-19 Thread britter
Author: britter
Date: Wed Sep 19 08:11:41 2018
New Revision: 1841297

URL: http://svn.apache.org/viewvc?rev=1841297&view=rev
Log:
Format changes.xml

Modified:
commons/proper/commons-parent/trunk/src/changes/changes.xml

Modified: commons/proper/commons-parent/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/src/changes/changes.xml?rev=1841297&r1=1841296&r2=1841297&view=diff
==
--- commons/proper/commons-parent/trunk/src/changes/changes.xml (original)
+++ commons/proper/commons-parent/trunk/src/changes/changes.xml Wed Sep 19 
08:11:41 2018
@@ -38,7 +38,8 @@ and commit
 The  type attribute can be add,update,fix,remove.
 -->
 
-http://maven.apache.org/changes/1.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 
http://maven.apache.org/xsd/changes-1.0.0.xsd";>
+http://maven.apache.org/changes/1.0.0"; 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 
http://maven.apache.org/xsd/changes-1.0.0.xsd";>
 
 Changes
 Apache Commons 
developers
@@ -111,7 +112,7 @@ The  type attribute can be add,u
 
 
 
-  Rearranging plugin order in -Prelease, 
removing commons-release-plugin from build>pluginManagement
+Rearranging plugin order in -Prelease, 
removing commons-release-plugin from build>pluginManagement
 
 
 
 COMMONSSITE-89 - support both clirr and 
japicmp
 Clirr report must now be explicitly enabled using 
src/site/resources/profile.clirr file or -Pclirr option
@@ -318,7 +319,7 @@ The main changes in this release are:
   - updated some plugins
 ">
 
- 
+
 commons-skin   3 -> 
4
 maven-deploy-plugin2.7 -> 
2.8.1
 maven-jxr-plugin   2.3 -> 
2.4
@@ -330,13 +331,13 @@ The main changes in this release are:
 apache-rat-plugin  0.9 -> 
0.10
 clirr-maven-plugin 2.5 -> 
2.6.1
 cobertura-maven-plugin   2.5.2 -> 
2.6
-
+
 jacoco-maven-plugin 0.6.3.201306030806 -> 
0.6.4.201312101107
 Fixed JaCoCo configuration - syntax changed 
completely between 0.6.2.x and 0.6.3.x
 
 Add commons.compiler.version property so 
compiler plugin version can be overridden if necessary
 Add source archive to Maven 
artifacts
-
+
 
 
 Add Javadoc link to Java EE.
 
-
+
 
 
 




svn commit: r1841296 - in /commons/proper/commons-parent/trunk: pom.xml src/changes/changes.xml

2018-09-19 Thread britter
Author: britter
Date: Wed Sep 19 08:06:17 2018
New Revision: 1841296

URL: http://svn.apache.org/viewvc?rev=1841296&view=rev
Log:
COMMONSSITE-124: Revert change in commons.scmPubUrl in Parent 47

Modified:
commons/proper/commons-parent/trunk/pom.xml
commons/proper/commons-parent/trunk/src/changes/changes.xml

Modified: commons/proper/commons-parent/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1841296&r1=1841295&r2=1841296&view=diff
==
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Wed Sep 19 08:06:17 2018
@@ -1940,7 +1940,7 @@
 
 ${commons.componentid}
 
-
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${commons.componentid}
+
https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}
 
${commons.site.cache}/${commons.site.path}
 commons.site
 

Modified: commons/proper/commons-parent/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/src/changes/changes.xml?rev=1841296&r1=1841295&r2=1841296&view=diff
==
--- commons/proper/commons-parent/trunk/src/changes/changes.xml (original)
+++ commons/proper/commons-parent/trunk/src/changes/changes.xml Wed Sep 19 
08:06:17 2018
@@ -61,6 +61,7 @@ The  type attribute can be add,u
 
 
 
+Revert 
change in commons.scmPubUrl in Parent 47
 Update parent from org.apache:apache 19 to 
20.
 maven-compiler-plugin 3.7.0 -> 3.8.0
 re-enabled japicmp and introduced japicmp.skip 
property that




[lang] Update to latest JUnit version

2018-09-11 Thread britter
Repository: commons-lang
Updated Branches:
  refs/heads/master 6dc3a6db1 -> 910f5427b


Update to latest JUnit version


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

Branch: refs/heads/master
Commit: 910f5427b37999bda04a7768f507f7baae34a118
Parents: 6dc3a6d
Author: Benedikt Ritter 
Authored: Tue Sep 11 21:06:39 2018 +0200
Committer: Benedikt Ritter 
Committed: Tue Sep 11 21:06:39 2018 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/910f5427/pom.xml
--
diff --git a/pom.xml b/pom.xml
index ff00abc..1528ea7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -624,7 +624,7 @@
 1.21
 benchmarks
 
-5.3.0
+5.3.1
 
 
 
false



[3/3] [lang] Merge branch 'spotbugs'

2018-09-06 Thread britter
Merge branch 'spotbugs'


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

Branch: refs/heads/master
Commit: 6dc3a6db11d7e63c960ccc6cf48aa15d6f00e903
Parents: c3b38a3 bb20855
Author: Benedikt Ritter 
Authored: Thu Sep 6 22:05:54 2018 +0200
Committer: Benedikt Ritter 
Committed: Thu Sep 6 22:05:54 2018 +0200

--
 findbugs-exclude-filter.xml | 153 ---
 pom.xml |  23 +++---
 spotbugs-exclude-filter.xml | 153 +++
 3 files changed, 165 insertions(+), 164 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/6dc3a6db/pom.xml
--



[2/3] [lang] Skip SpotBugs on Java 11

2018-09-06 Thread britter
Skip SpotBugs on Java 11


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

Branch: refs/heads/master
Commit: bb20855b5cba03fd4f38f934b21b7c25712f747c
Parents: 82fd251
Author: pascalschumacher 
Authored: Tue Aug 28 19:11:31 2018 +0200
Committer: pascalschumacher 
Committed: Tue Aug 28 19:11:31 2018 +0200

--
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/bb20855b/pom.xml
--
diff --git a/pom.xml b/pom.xml
index add7075..25721e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -868,6 +868,8 @@
   
 
 true
+
+true
   
 
 



[1/3] [lang] Replace FindBugs with SpotBugs

2018-09-06 Thread britter
Repository: commons-lang
Updated Branches:
  refs/heads/master c3b38a3ba -> 6dc3a6db1


Replace FindBugs with SpotBugs


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

Branch: refs/heads/master
Commit: 82fd2516d6c018e46ef290e05551349a9ed82ca8
Parents: 3ee9cc8
Author: pascalschumacher 
Authored: Tue Aug 28 19:00:09 2018 +0200
Committer: pascalschumacher 
Committed: Tue Aug 28 19:00:26 2018 +0200

--
 findbugs-exclude-filter.xml | 153 ---
 pom.xml |  21 +++---
 spotbugs-exclude-filter.xml | 153 +++
 3 files changed, 163 insertions(+), 164 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/82fd2516/findbugs-exclude-filter.xml
--
diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml
deleted file mode 100644
index 864b076..000
--- a/findbugs-exclude-filter.xml
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
-
-
-
-  
-  
-
-
-  
-  
-
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-  
-  
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-  
-  
-  
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-  
-
-  
-  
-
-
-
-  
-  
-
-
-
-  
-  
-  
-
-
-  
-  
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-
-  
-
-  
-  
-
-
-
-  
-  
-
-
-
-  
-

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/82fd2516/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 149e151..add7075 100644
--- a/pom.xml
+++ b/pom.xml
@@ -589,6 +589,7 @@
 utf-8
 
 3.0.0
+3.1.6
 false
 
 
@@ -611,7 +612,7 @@
 
 
   
-   clean verify apache-rat:check clirr:check checkstyle:check 
findbugs:check javadoc:javadoc
+   clean verify apache-rat:check clirr:check checkstyle:check 
spotbugs:check javadoc:javadoc

   
 
@@ -703,12 +704,11 @@
 
   
   
-org.codehaus.mojo
-findbugs-maven-plugin
-
-${commons.findbugs.version}
+com.github.spotbugs
+spotbugs-maven-plugin
+${spotbugs.plugin.version}
 
-  
${basedir}/findbugs-exclude-filter.xml
+  
${basedir}/spotbugs-exclude-filter.xml
 
   
 
@@ -735,12 +735,11 @@
   
   
   
-org.codehaus.mojo
-findbugs-maven-plugin
-
-${commons.findbugs.version}
+com.github.spotbugs
+spotbugs-maven-plugin
+${spotbugs.plugin.version}
 
-  
${basedir}/findbugs-exclude-filter.xml
+  
${basedir}/spotbugs-exclude-filter.xml
 
   
   

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/82fd2516/spotbugs-exclude-filter.xml
--
diff --git a/spotbugs-exclude-filter.xml b/spotbugs-exclude-filter.xml
new file mode 100644
index 000..864b076
--- /dev/null
+++ b/spotbugs-exclude-filter.xml
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+  
+  
+
+
+  
+  
+
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+  
+  
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+  
+  
+  
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+  
+
+  
+  
+
+
+
+  
+  
+
+
+
+  
+  
+  
+
+
+  
+  
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+
+  
+
+  
+  
+
+
+
+  
+  
+
+
+
+  
+



[13/16] [lang] Convert tests for Validate.isInstanceOf overloads to @Nested test

2018-09-06 Thread britter
Convert tests for Validate.isInstanceOf overloads to @Nested test


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

Branch: refs/heads/master
Commit: 3e58ab33b9c294817699ce18277aa6e772d3ee4f
Parents: 5445f22
Author: Benedikt Ritter 
Authored: Thu Sep 6 20:14:29 2018 +0200
Committer: Benedikt Ritter 
Committed: Thu Sep 6 20:16:47 2018 +0200

--
 .../org/apache/commons/lang3/ValidateTest.java  | 94 +++-
 1 file changed, 50 insertions(+), 44 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/3e58ab33/src/test/java/org/apache/commons/lang3/ValidateTest.java
--
diff --git a/src/test/java/org/apache/commons/lang3/ValidateTest.java 
b/src/test/java/org/apache/commons/lang3/ValidateTest.java
index 418c301..3f5fe6a 100644
--- a/src/test/java/org/apache/commons/lang3/ValidateTest.java
+++ b/src/test/java/org/apache/commons/lang3/ValidateTest.java
@@ -1785,55 +1785,61 @@ class ValidateTest {
 }
 }
 
-@Test
-void testIsInstanceOf() {
-Validate.isInstanceOf(String.class, "hi");
-Validate.isInstanceOf(Integer.class, 1);
-}
+@Nested
+class IsInstanceOf {
 
-@Test
-void testIsInstanceOfExceptionMessage() {
-try {
-Validate.isInstanceOf(List.class, "hi");
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException e) {
-assertEquals("Expected type: java.util.List, actual: 
java.lang.String", e.getMessage());
-}
-}
+@Nested
+class WithoutMessage {
 
-@Test
-void testIsInstanceOf_withMessage() {
-Validate.isInstanceOf(String.class, "hi", "Error");
-Validate.isInstanceOf(Integer.class, 1, "Error");
-try {
-Validate.isInstanceOf(List.class, "hi", "Error");
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException e) {
-assertEquals("Error", e.getMessage());
-}
-}
+@Test
+void shouldNotThrowExceptionWhenValueIsInstanceOfClass() {
+Validate.isInstanceOf(String.class, "hi");
+}
 
-@Test
-void testIsInstanceOf_withMessageArgs() {
-Validate.isInstanceOf(String.class, "hi", "Error %s=%s", "Name", 
"Value");
-Validate.isInstanceOf(Integer.class, 1, "Error %s=%s", "Name", 
"Value");
-try {
-Validate.isInstanceOf(List.class, "hi", "Error %s=%s", "Name", 
"Value");
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException e) {
-assertEquals("Error Name=Value", e.getMessage());
+@Test
+void 
shouldThrowIllegalArgumentExceptionWithDefaultMessageWhenValueIsNotInstanceOfClass()
 {
+final IllegalArgumentException ex = assertThrows(
+IllegalArgumentException.class,
+() -> Validate.isInstanceOf(List.class, "hi"));
+
+assertEquals("Expected type: java.util.List, actual: 
java.lang.String", ex.getMessage());
+}
 }
-try {
-Validate.isInstanceOf(List.class, "hi", "Error %s=%s", List.class, 
"Value");
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException e) {
-assertEquals("Error interface java.util.List=Value", 
e.getMessage());
+
+@Nested
+class WithMessage {
+
+@Test
+void shouldNotThrowExceptionWhenValueIsInstanceOfClass() {
+Validate.isInstanceOf(String.class, "hi", "MSG");
+}
+
+@Test
+void 
shouldThrowIllegalArgumentExceptionWithGivenMessageWhenValueIsNotInstanceOfClass()
 {
+final IllegalArgumentException ex = assertThrows(
+IllegalArgumentException.class,
+() -> Validate.isInstanceOf(List.class, "hi", "MSG"));
+
+assertEquals("MSG", ex.getMessage());
+}
 }
-try {
-Validate.isInstanceOf(List.class, "hi", "Error %s=%s", List.class, 
null);
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException e) {
-assertEquals("Error interface java.util.List=null", 
e.getMessage());
+
+@Nested
+class WithMessageTemplate {
+
+@Test
+void shouldNotThrowExceptionWhenValueIsInstanceOfClass() {
+Validate.isInstanceOf(String.class, "h

[07/16] [lang] Convert tests for Validate.validIndex overloads to @Nested test

2018-09-06 Thread britter
Convert tests for Validate.validIndex overloads to @Nested test


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

Branch: refs/heads/master
Commit: f6f8e5dbedfed0d10bf483b636abac87d90925b3
Parents: 74c24ad
Author: Benedikt Ritter 
Authored: Thu Sep 6 15:41:44 2018 +0200
Committer: Benedikt Ritter 
Committed: Thu Sep 6 15:41:44 2018 +0200

--
 .../org/apache/commons/lang3/ValidateTest.java  | 399 ---
 1 file changed, 265 insertions(+), 134 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/f6f8e5db/src/test/java/org/apache/commons/lang3/ValidateTest.java
--
diff --git a/src/test/java/org/apache/commons/lang3/ValidateTest.java 
b/src/test/java/org/apache/commons/lang3/ValidateTest.java
index c2de05d..c6a0898 100644
--- a/src/test/java/org/apache/commons/lang3/ValidateTest.java
+++ b/src/test/java/org/apache/commons/lang3/ValidateTest.java
@@ -25,7 +25,6 @@ import java.lang.reflect.Constructor;
 import java.lang.reflect.Modifier;
 import java.util.AbstractList;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
@@ -788,152 +787,284 @@ class ValidateTest {
 }
 }
 
-//---
-//---
-@Test
-void testValidIndex_withMessage_array() {
-final Object[] array = new Object[2];
-Validate.validIndex(array, 0, "Broken: ");
-Validate.validIndex(array, 1, "Broken: ");
-try {
-Validate.validIndex(array, -1, "Broken: ");
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("Broken: ", ex.getMessage());
-}
-try {
-Validate.validIndex(array, 2, "Broken: ");
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("Broken: ", ex.getMessage());
-}
+@Nested
+class ValidIndex {
 
-final String[] strArray = new String[]{"Hi"};
-final String[] test = Validate.noNullElements(strArray, "Message");
-assertSame(strArray, test);
-}
+@Nested
+class WithArray {
 
-@Test
-void testValidIndex_array() {
-final Object[] array = new Object[2];
-Validate.validIndex(array, 0);
-Validate.validIndex(array, 1);
-try {
-Validate.validIndex(array, -1);
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("The validated array index is invalid: -1", 
ex.getMessage());
-}
-try {
-Validate.validIndex(array, 2);
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("The validated array index is invalid: 2", 
ex.getMessage());
-}
+@Nested
+class WithoutMessage {
 
-final String[] strArray = new String[]{"Hi"};
-final String[] test = Validate.noNullElements(strArray);
-assertSame(strArray, test);
-}
+@Test
+void shouldNotThrowExceptionForValidIndex() {
+Validate.validIndex(new String[]{"a"}, 0);
+}
 
-//---
-//---
-@Test
-void testValidIndex_withMessage_collection() {
-final Collection coll = new ArrayList<>();
-coll.add(null);
-coll.add(null);
-Validate.validIndex(coll, 0, "Broken: ");
-Validate.validIndex(coll, 1, "Broken: ");
-try {
-Validate.validIndex(coll, -1, "Broken: ");
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("Broken: ", ex.getMessage());
-}
-try {
-Validate.validIndex(coll, 2, "Broken: ");
-fail("Expecting IndexOutOfBoundsException");
-} catch (final IndexOutOfBoundsException ex) {
-assertEquals("Broken: ", ex.getMessage());
-}
+@Test
+void shouldReturnSameInstance() {
+final String[] array = {"a"};
+final String[] re

[01/16] [lang] Convert tests for Validate.isTrue overloads to @Nested test

2018-09-06 Thread britter
Repository: commons-lang
Updated Branches:
  refs/heads/master 3178494ca -> c3b38a3ba


Convert tests for Validate.isTrue overloads to @Nested test


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

Branch: refs/heads/master
Commit: aad2db8b12b8c61556df9df7de4fadc927633504
Parents: bce28f9
Author: Benedikt Ritter 
Authored: Wed Sep 5 14:26:25 2018 +0200
Committer: Benedikt Ritter 
Committed: Wed Sep 5 14:26:25 2018 +0200

--
 .../org/apache/commons/lang3/ValidateTest.java  | 135 ---
 1 file changed, 86 insertions(+), 49 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/aad2db8b/src/test/java/org/apache/commons/lang3/ValidateTest.java
--
diff --git a/src/test/java/org/apache/commons/lang3/ValidateTest.java 
b/src/test/java/org/apache/commons/lang3/ValidateTest.java
index 4d6113f..c4cbe07 100644
--- a/src/test/java/org/apache/commons/lang3/ValidateTest.java
+++ b/src/test/java/org/apache/commons/lang3/ValidateTest.java
@@ -18,6 +18,7 @@
  */
 package org.apache.commons.lang3;
 
+import org.junit.jupiter.api.Nested;
 import org.junit.jupiter.api.Test;
 
 import java.lang.reflect.Constructor;
@@ -34,6 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
@@ -42,63 +44,98 @@ import static org.junit.jupiter.api.Assertions.fail;
  */
 class ValidateTest {
 
-//---
-@Test
-void testIsTrue1() {
-Validate.isTrue(true);
-try {
-Validate.isTrue(false);
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException ex) {
-assertEquals("The validated expression is false", ex.getMessage());
+@Nested
+class IsTrue {
+
+@Nested
+class WithoutMessage {
+
+@Test
+void shouldNotThrowForTrueExpression() {
+Validate.isTrue(true);
+}
+
+@Test
+void shouldThrowExceptionWithDefaultMessageForFalseExpression() {
+final IllegalArgumentException ex = assertThrows(
+IllegalArgumentException.class,
+() -> Validate.isTrue(false));
+
+assertEquals("The validated expression is false", 
ex.getMessage());
+}
+
 }
-}
 
-//---
-@Test
-void testIsTrue2() {
-Validate.isTrue(true, "MSG");
-try {
-Validate.isTrue(false, "MSG");
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException ex) {
-assertEquals("MSG", ex.getMessage());
+@Nested
+class WithMessage {
+
+@Test
+void shouldNotThrowForTrueExpression() {
+Validate.isTrue(true, "MSG");
+}
+
+@Test
+void shouldThrowExceptionWithGivenMessageForFalseExpression() {
+final IllegalArgumentException ex = assertThrows(
+IllegalArgumentException.class,
+() -> Validate.isTrue(false, "MSG"));
+
+assertEquals("MSG", ex.getMessage());
+}
 }
-}
 
-//---
-@Test
-void testIsTrue3() {
-Validate.isTrue(true, "MSG", 6);
-try {
-Validate.isTrue(false, "MSG", 6);
-fail("Expecting IllegalArgumentException");
-} catch (final IllegalArgumentException ex) {
-assertEquals("MSG", ex.getMessage());
+@Nested
+class WithLongTemplate {
+
+@Test
+void shouldNotThrowForTrueExpression() {
+Validate.isTrue(true, "MSG", 6);
+}
+
+@Test
+void 
shouldThrowExceptionWithLongInsertedIntoTemplateMessageForFalseExpression() {
+final IllegalArgumentException ex = assertThrows(
+IllegalArgumentException.class,
+() -> Validate.isTrue(false, "MSG %s", 6));
+
+assertEquals("

  1   2   3   4   5   6   7   8   9   10   >