diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2020-09-11 22:25:09 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2020-09-11 22:25:09 +0000 |
commit | 2ff5115b9f13c0662d40533ebdacbf374157e9f9 (patch) | |
tree | 451774f6a1cbe00dc84a4d98c165481867be225c | |
parent | 44756abd9846c9246575c794b9014e3a1d41d9a2 (diff) | |
download | jackcess-2ff5115b9f13c0662d40533ebdacbf374157e9f9.tar.gz jackcess-2ff5115b9f13c0662d40533ebdacbf374157e9f9.zip |
minor code cleanup
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1343 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java | 5 |
1 files 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<ColumnBuilder> toColumns(ResultSetMetaData md) throws SQLException { - List<ColumnBuilder> columns = new LinkedList<ColumnBuilder>(); + List<ColumnBuilder> columns = new ArrayList<ColumnBuilder>(); 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<ColumnBuilder> columns = new LinkedList<ColumnBuilder>(); + List<ColumnBuilder> columns = new ArrayList<ColumnBuilder>(); Object[] columnNames = splitLine(line, delimPat, quote, in, 0); for (int i = 0; i < columnNames.length; i++) { |