This is an automated email from the ASF dual-hosted git repository.

ggregory 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 574ed87  Don't throw RuntimeException.
574ed87 is described below

commit 574ed87b269a89d56a941616f77dfcd38f7b3804
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Sun Feb 24 10:07:39 2019 -0500

    Don't throw RuntimeException.
---
 src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java 
b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java
index 18627a7..7c2d052 100644
--- a/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java
+++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java
@@ -36,7 +36,6 @@ import org.junit.Test;
  * in the CSVParser as the parser is streaming over the file. The CSVParser is 
like a forward-only stream. When you
  * create a new Iterator you are only created a new view on the same position 
in the parser's stream. For the behavior
  * you want, you need to open a new CSVParser.
- *
  */
 @Ignore
 public class JiraCsv213Test {
@@ -61,7 +60,7 @@ public class JiraCsv213Test {
                 return;
             }
         } catch (final IOException e) {
-            throw new RuntimeException("Error while adding end channel to 
csv", e);
+            throw new IllegalStateException("Error while adding end channel to 
csv", e);
         }
 
         return;

Reply via email to