From 574ed87b269a89d56a941616f77dfcd38f7b3804 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 24 Feb 2019 10:07:39 -0500 Subject: [PATCH] Don't throw RuntimeException. --- .../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 18627a79..7c2d0526 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;