aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2011-11-30 14:58:03 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2011-11-30 14:58:03 +0000
commitf646e75d5b90647d9b2c65b938dc3adf84ddae02 (patch)
treeff95291971570e7bb116d56a87fdd97fe757af38 /src/java/com
parent67560e68f22c9745a7fe11876224a170798b05d5 (diff)
downloadjackcess-f646e75d5b90647d9b2c65b938dc3adf84ddae02.tar.gz
jackcess-f646e75d5b90647d9b2c65b938dc3adf84ddae02.zip
always pass Object[] to ImportFilter.filterRow
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@600 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com')
-rw-r--r--src/java/com/healthmarketscience/jackcess/ImportUtil.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/ImportUtil.java b/src/java/com/healthmarketscience/jackcess/ImportUtil.java
index 571ebfa..28aa9ea 100644
--- a/src/java/com/healthmarketscience/jackcess/ImportUtil.java
+++ b/src/java/com/healthmarketscience/jackcess/ImportUtil.java
@@ -447,10 +447,10 @@ public class ImportUtil
if(!useExistingTable || ((table = db.getTable(name)) == null)) {
List<Column> columns = new LinkedList<Column>();
- String[] columnNames = splitLine(line, delimPat, quote, in, 0);
+ Object[] columnNames = splitLine(line, delimPat, quote, in, 0);
for (int i = 0; i < columnNames.length; i++) {
- columns.add(new ColumnBuilder(columnNames[i], DataType.TEXT)
+ columns.add(new ColumnBuilder((String)columnNames[i], DataType.TEXT)
.escapeName()
.setLength((short)DataType.TEXT.getMaxSize())
.toColumn());
@@ -502,7 +502,7 @@ public class ImportUtil
* Splits the given line using the given delimiter pattern and quote
* character. May read additional lines for quotes spanning newlines.
*/
- private static String[] splitLine(String line, Pattern delim, char quote,
+ private static Object[] splitLine(String line, Pattern delim, char quote,
BufferedReader in, int numColumns)
throws IOException
{
@@ -573,7 +573,7 @@ public class ImportUtil
}
}
- return tokens.toArray(new String[Math.max(tokens.size(), numColumns)]);
+ return tokens.toArray(new Object[Math.max(tokens.size(), numColumns)]);
}
/**