Skip to content

Commit d6de806

Browse files
committed
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
1 parent 5e60966 commit d6de806

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ public long getRecordNumber() {
325325
*/
326326
public List<CSVRecord> getRecords() throws IOException {
327327
CSVRecord rec;
328-
List<CSVRecord> records = new ArrayList<>();
328+
// can not use Java 7 diamond notation here, since JavaNCSS will fail, see https://jira.codehaus.org/browse/JAVANCSS-51
329+
List<CSVRecord> records = new ArrayList<CSVRecord>();
329330
while ((rec = this.nextRecord()) != null) {
330331
records.add(rec);
331332
}

0 commit comments

Comments
 (0)