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:
parent
5e60966b56
commit
d6de8062b5
|
@ -325,7 +325,8 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
||||||
*/
|
*/
|
||||||
public List<CSVRecord> getRecords() throws IOException {
|
public List<CSVRecord> getRecords() throws IOException {
|
||||||
CSVRecord rec;
|
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) {
|
while ((rec = this.nextRecord()) != null) {
|
||||||
records.add(rec);
|
records.add(rec);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue