From 2ff5115b9f13c0662d40533ebdacbf374157e9f9 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 11 Sep 2020 22:25:09 +0000 Subject: minor code cleanup git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1343 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java b/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java index 8cfa9f9..2fd6455 100644 --- a/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java +++ b/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java @@ -25,7 +25,6 @@ import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.ArrayList; -import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -67,7 +66,7 @@ public class ImportUtil public static List toColumns(ResultSetMetaData md) throws SQLException { - List columns = new LinkedList(); + List columns = new ArrayList(); for (int i = 1; i <= md.getColumnCount(); i++) { ColumnBuilder column = new ColumnBuilder(md.getColumnLabel(i)) .escapeName(); @@ -447,7 +446,7 @@ public class ImportUtil Table table = null; if(!useExistingTable || ((table = db.getTable(name)) == null)) { - List columns = new LinkedList(); + List columns = new ArrayList(); Object[] columnNames = splitLine(line, delimPat, quote, in, 0); for (int i = 0; i < columnNames.length; i++) { -- cgit v1.2.3