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
This commit is contained in:
Benedikt Ritter 2014-07-15 17:52:53 +00:00
parent 5e60966b56
commit d6de8062b5
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
*/
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);
}