summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-02-26 18:50:28 +0200
committerIttay Stern <ittay.stern@att.com>2020-02-27 05:44:42 +0200
commit904eaac80a52cb25117254501b9f8cc483b60fca (patch)
tree657601a60d3d58b61bd706f48ccb5d91bf625a22 /vid-app-common/src
parent97960cdd250fadae0bb312ac5ffa87348ece791d (diff)
Bump opencsv, c3p0, snakeyaml, h2 database to latests
Issue-ID: VID-755 Change-Id: If34239ebc6c9e4b067c22a3fae0a680a160cb00b Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java
index 4aabdae21..45ac78ab0 100644
--- a/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java
+++ b/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java
@@ -20,22 +20,22 @@
package org.onap.vid.services;
-import com.opencsv.CSVReader;
-import org.json.JSONArray;
-import org.json.JSONObject;
-import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.springframework.stereotype.Service;
-import org.springframework.web.multipart.MultipartFile;
+import static org.apache.commons.lang3.exception.ExceptionUtils.rethrow;
+import static org.onap.vid.utils.Logging.getMethodName;
-import javax.ws.rs.BadRequestException;
+import com.opencsv.CSVReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-
-import static org.onap.vid.utils.Logging.getMethodName;
+import javax.ws.rs.BadRequestException;
+import org.json.JSONArray;
+import org.json.JSONObject;
+import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
+import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
@Service
public class CsvServiceImpl implements CsvService{
@@ -84,7 +84,7 @@ public class CsvServiceImpl implements CsvService{
}
- private List<String[]> readCsv(CSVReader reader) throws IOException {
+ private List<String[]> readCsv(CSVReader reader) {
try {
List<String[]> myEntries = new ArrayList<>() ;
String [] line;
@@ -100,7 +100,7 @@ public class CsvServiceImpl implements CsvService{
}
catch (Exception e){
logger.error("error during reading CSV file. exception:" + e.getMessage());
- throw e;
+ return rethrow(e);
}
}