From d6de8062b53cf5d486230b68e8a497d9c1660140 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Tue, 15 Jul 2014 17:52:53 +0000 Subject: [PATCH] Revert Java 7 diamond notation since JavaNCSS can't handle it git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1610772 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index 69c9b73f..1832c1d8 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -325,7 +325,8 @@ public final class CSVParser implements Iterable, Closeable { */ public List getRecords() throws IOException { CSVRecord rec; - List records = new ArrayList<>(); + // can not use Java 7 diamond notation here, since JavaNCSS will fail, see https://jira.codehaus.org/browse/JAVANCSS-51 + List records = new ArrayList(); while ((rec = this.nextRecord()) != null) { records.add(rec); }