You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2014/08/16 14:24:36 UTC

svn commit: r1618351 - in /ofbiz/branches/release13.07: applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java framework/base/lib/commons/commons-csv-1.0.jar

Author: adrianc
Date: Sat Aug 16 12:24:36 2014
New Revision: 1618351

URL: http://svn.apache.org/r1618351
Log:
Updated Commons CSV library to the official release version (the previous version was a release candidate).

Modified:
    ofbiz/branches/release13.07/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
    ofbiz/branches/release13.07/framework/base/lib/commons/commons-csv-1.0.jar

Modified: ofbiz/branches/release13.07/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=1618351&r1=1618350&r2=1618351&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/branches/release13.07/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Sat Aug 16 12:24:36 2014
@@ -19,7 +19,6 @@
 package org.ofbiz.accounting.invoice;
 
 import org.apache.commons.csv.CSVFormat;
-import org.apache.commons.csv.CSVFormat.CSVFormatBuilder;
 import org.apache.commons.csv.CSVRecord;
 
 import java.io.BufferedReader;
@@ -3353,8 +3352,7 @@ public class InvoiceServices {
         String encoding = System.getProperty("file.encoding");
         String csvString = Charset.forName(encoding).decode(fileBytes).toString();
         final BufferedReader csvReader = new BufferedReader(new StringReader(csvString));
-        final CSVFormatBuilder builder = CSVFormat.newBuilder(',').withQuoteChar('"').withHeader();
-        CSVFormat fmt = builder.build();
+        CSVFormat fmt = CSVFormat.DEFAULT.withHeader();
         List<String> errMsgs = FastList.newInstance();
     	List<String> newErrMsgs = FastList.newInstance();
         String lastInvoiceId = null;

Modified: ofbiz/branches/release13.07/framework/base/lib/commons/commons-csv-1.0.jar
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/framework/base/lib/commons/commons-csv-1.0.jar?rev=1618351&r1=1618350&r2=1618351&view=diff
==============================================================================
Binary files - no diff available.