]> source.dussan.org Git - poi.git/commitdiff
Fix a couple of warnings
authorNick Burch <nick@apache.org>
Mon, 18 Jan 2010 14:11:26 +0000 (14:11 +0000)
committerNick Burch <nick@apache.org>
Mon, 18 Jan 2010 14:11:26 +0000 (14:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@900399 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/dev/FormulaViewer.java
src/java/org/apache/poi/hssf/record/RecordInputStream.java

index d42cda71a353c68e7205f51440aeb3cd8d3cb4dc..817c947052ee0e45b4a8d4226267fe18dfd7c664 100644 (file)
@@ -62,7 +62,7 @@ public class FormulaViewer
     {
         POIFSFileSystem fs      =
             new POIFSFileSystem(new FileInputStream(file));
-        List            records =
+        List<Record>    records =
             RecordFactory
                 .createRecords(fs.createDocumentInputStream("Workbook"));
 
index 268ea9731f2f42ccb80130c7288321bdf7bfdfec..c044dd7796302688d6da56339cca6b07e467aaa1 100644 (file)
@@ -48,6 +48,7 @@ public final class RecordInputStream implements LittleEndianInput {
         * For use in {@link BiffViewer} which may construct {@link Record}s that don't completely
         * read all available data.  This exception should never be thrown otherwise.
         */
+       @SuppressWarnings("serial")
        public static final class LeftoverDataException extends RuntimeException {
                public LeftoverDataException(int sid, int remainingByteCount) {
                        super("Initialisation of record 0x" + Integer.toHexString(sid).toUpperCase()