commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1610772 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Date Tue, 15 Jul 2014 17:52:53 GMT
Author: britter
Date: Tue Jul 15 17:52:53 2014
New Revision: 1610772

URL: http://svn.apache.org/r1610772
Log:
Revert Java 7 diamond notation since JavaNCSS can't handle it

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1610772&r1=1610771&r2=1610772&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java Tue Jul 15
17:52:53 2014
@@ -325,7 +325,8 @@ public final class CSVParser implements 
      */
     public List<CSVRecord> getRecords() throws IOException {
         CSVRecord rec;
-        List<CSVRecord> records = new ArrayList<>();
+        // can not use Java 7 diamond notation here, since JavaNCSS will fail, see https://jira.codehaus.org/browse/JAVANCSS-51
+        List<CSVRecord> records = new ArrayList<CSVRecord>();
         while ((rec = this.nextRecord()) != null) {
             records.add(rec);
         }



Mime
View raw message