]> source.dussan.org Git - poi.git/commitdiff
Generics fixes
authorNick Burch <nick@apache.org>
Wed, 30 Jul 2014 23:05:58 +0000 (23:05 +0000)
committerNick Burch <nick@apache.org>
Wed, 30 Jul 2014 23:05:58 +0000 (23:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1614788 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hssf/eventusermodel/examples/XLS2CSVmra.java

index 4c1119137e1d3385c7b52cf9d2274897c8068426..8bab0a8e4ba85eddc2b980088420c4f247a88293 100644 (file)
@@ -22,13 +22,14 @@ import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.PrintStream;
 import java.util.ArrayList;
+import java.util.List;
 
+import org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder.SheetRecordCollectingListener;
 import org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener;
 import org.apache.poi.hssf.eventusermodel.HSSFEventFactory;
 import org.apache.poi.hssf.eventusermodel.HSSFListener;
 import org.apache.poi.hssf.eventusermodel.HSSFRequest;
 import org.apache.poi.hssf.eventusermodel.MissingRecordAwareHSSFListener;
-import org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder.SheetRecordCollectingListener;
 import org.apache.poi.hssf.eventusermodel.dummyrecord.LastCellOfRowDummyRecord;
 import org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord;
 import org.apache.poi.hssf.model.HSSFFormulaParser;
@@ -75,7 +76,7 @@ public class XLS2CSVmra implements HSSFListener {
        /** So we known which sheet we're on */
        private int sheetIndex = -1;
        private BoundSheetRecord[] orderedBSRs;
-       private ArrayList boundSheetRecords = new ArrayList();
+       private List<BoundSheetRecord> boundSheetRecords = new ArrayList<BoundSheetRecord>();
 
        // For handling formulas with string results
        private int nextRow;
@@ -140,7 +141,7 @@ public class XLS2CSVmra implements HSSFListener {
                switch (record.getSid())
                {
                case BoundSheetRecord.sid:
-                       boundSheetRecords.add(record);
+                       boundSheetRecords.add((BoundSheetRecord)record);
                        break;
                case BOFRecord.sid:
                        BOFRecord br = (BOFRecord)record;