Fix a couple of warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@900399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2010-01-18 14:11:26 +00:00
parent 0e53beb61e
commit 64ee32ec12
2 changed files with 2 additions and 1 deletions

View 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"));

View 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()