]> source.dussan.org Git - poi.git/commitdiff
Removed validateSid method from Record classes
authorJosh Micich <josh@apache.org>
Tue, 30 Sep 2008 02:30:53 +0000 (02:30 +0000)
committerJosh Micich <josh@apache.org>
Tue, 30 Sep 2008 02:30:53 +0000 (02:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@700327 13f79535-47bb-0310-9956-ffa450edef68

197 files changed:
src/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java
src/java/org/apache/poi/hssf/record/AreaFormatRecord.java
src/java/org/apache/poi/hssf/record/AreaRecord.java
src/java/org/apache/poi/hssf/record/AxisLineFormatRecord.java
src/java/org/apache/poi/hssf/record/AxisOptionsRecord.java
src/java/org/apache/poi/hssf/record/AxisParentRecord.java
src/java/org/apache/poi/hssf/record/AxisRecord.java
src/java/org/apache/poi/hssf/record/AxisUsedRecord.java
src/java/org/apache/poi/hssf/record/BOFRecord.java
src/java/org/apache/poi/hssf/record/BackupRecord.java
src/java/org/apache/poi/hssf/record/BarRecord.java
src/java/org/apache/poi/hssf/record/BeginRecord.java
src/java/org/apache/poi/hssf/record/BlankRecord.java
src/java/org/apache/poi/hssf/record/BookBoolRecord.java
src/java/org/apache/poi/hssf/record/BoolErrRecord.java
src/java/org/apache/poi/hssf/record/BottomMarginRecord.java
src/java/org/apache/poi/hssf/record/BoundSheetRecord.java
src/java/org/apache/poi/hssf/record/CFHeaderRecord.java
src/java/org/apache/poi/hssf/record/CFRuleRecord.java
src/java/org/apache/poi/hssf/record/CRNCountRecord.java
src/java/org/apache/poi/hssf/record/CRNRecord.java
src/java/org/apache/poi/hssf/record/CalcCountRecord.java
src/java/org/apache/poi/hssf/record/CalcModeRecord.java
src/java/org/apache/poi/hssf/record/CategorySeriesAxisRecord.java
src/java/org/apache/poi/hssf/record/ChartFormatRecord.java
src/java/org/apache/poi/hssf/record/ChartRecord.java
src/java/org/apache/poi/hssf/record/ChartTitleFormatRecord.java
src/java/org/apache/poi/hssf/record/CodepageRecord.java
src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java
src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java
src/java/org/apache/poi/hssf/record/ContinueRecord.java
src/java/org/apache/poi/hssf/record/CountryRecord.java
src/java/org/apache/poi/hssf/record/DBCellRecord.java
src/java/org/apache/poi/hssf/record/DSFRecord.java
src/java/org/apache/poi/hssf/record/DVALRecord.java
src/java/org/apache/poi/hssf/record/DVRecord.java
src/java/org/apache/poi/hssf/record/DatRecord.java
src/java/org/apache/poi/hssf/record/DataFormatRecord.java
src/java/org/apache/poi/hssf/record/DateWindow1904Record.java
src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java
src/java/org/apache/poi/hssf/record/DefaultDataLabelTextPropertiesRecord.java
src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java
src/java/org/apache/poi/hssf/record/DeltaRecord.java
src/java/org/apache/poi/hssf/record/DimensionsRecord.java
src/java/org/apache/poi/hssf/record/DrawingRecord.java
src/java/org/apache/poi/hssf/record/EOFRecord.java
src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java
src/java/org/apache/poi/hssf/record/EndRecord.java
src/java/org/apache/poi/hssf/record/EndSubRecord.java
src/java/org/apache/poi/hssf/record/ExtSSTInfoSubRecord.java
src/java/org/apache/poi/hssf/record/ExtSSTRecord.java
src/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java
src/java/org/apache/poi/hssf/record/ExternSheetRecord.java
src/java/org/apache/poi/hssf/record/ExternalNameRecord.java
src/java/org/apache/poi/hssf/record/FilePassRecord.java
src/java/org/apache/poi/hssf/record/FileSharingRecord.java
src/java/org/apache/poi/hssf/record/FnGroupCountRecord.java
src/java/org/apache/poi/hssf/record/FontBasisRecord.java
src/java/org/apache/poi/hssf/record/FontIndexRecord.java
src/java/org/apache/poi/hssf/record/FontRecord.java
src/java/org/apache/poi/hssf/record/FooterRecord.java
src/java/org/apache/poi/hssf/record/FormatRecord.java
src/java/org/apache/poi/hssf/record/FormulaRecord.java
src/java/org/apache/poi/hssf/record/FrameRecord.java
src/java/org/apache/poi/hssf/record/GridsetRecord.java
src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java
src/java/org/apache/poi/hssf/record/GutsRecord.java
src/java/org/apache/poi/hssf/record/HCenterRecord.java
src/java/org/apache/poi/hssf/record/HeaderRecord.java
src/java/org/apache/poi/hssf/record/HideObjRecord.java
src/java/org/apache/poi/hssf/record/HorizontalPageBreakRecord.java
src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
src/java/org/apache/poi/hssf/record/IndexRecord.java
src/java/org/apache/poi/hssf/record/InterfaceEndRecord.java
src/java/org/apache/poi/hssf/record/InterfaceHdrRecord.java
src/java/org/apache/poi/hssf/record/IterationRecord.java
src/java/org/apache/poi/hssf/record/LabelRecord.java
src/java/org/apache/poi/hssf/record/LabelSSTRecord.java
src/java/org/apache/poi/hssf/record/LeftMarginRecord.java
src/java/org/apache/poi/hssf/record/LegendRecord.java
src/java/org/apache/poi/hssf/record/LineFormatRecord.java
src/java/org/apache/poi/hssf/record/LinkedDataRecord.java
src/java/org/apache/poi/hssf/record/MMSRecord.java
src/java/org/apache/poi/hssf/record/MergeCellsRecord.java
src/java/org/apache/poi/hssf/record/MulBlankRecord.java
src/java/org/apache/poi/hssf/record/MulRKRecord.java
src/java/org/apache/poi/hssf/record/NameRecord.java
src/java/org/apache/poi/hssf/record/NoteRecord.java
src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java
src/java/org/apache/poi/hssf/record/NumberFormatIndexRecord.java
src/java/org/apache/poi/hssf/record/NumberRecord.java
src/java/org/apache/poi/hssf/record/ObjRecord.java
src/java/org/apache/poi/hssf/record/ObjectLinkRecord.java
src/java/org/apache/poi/hssf/record/ObjectProtectRecord.java
src/java/org/apache/poi/hssf/record/PaletteRecord.java
src/java/org/apache/poi/hssf/record/PaneRecord.java
src/java/org/apache/poi/hssf/record/PasswordRecord.java
src/java/org/apache/poi/hssf/record/PasswordRev4Record.java
src/java/org/apache/poi/hssf/record/PlotAreaRecord.java
src/java/org/apache/poi/hssf/record/PlotGrowthRecord.java
src/java/org/apache/poi/hssf/record/PrecisionRecord.java
src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java
src/java/org/apache/poi/hssf/record/PrintHeadersRecord.java
src/java/org/apache/poi/hssf/record/PrintSetupRecord.java
src/java/org/apache/poi/hssf/record/ProtectRecord.java
src/java/org/apache/poi/hssf/record/ProtectionRev4Record.java
src/java/org/apache/poi/hssf/record/RKRecord.java
src/java/org/apache/poi/hssf/record/RecalcIdRecord.java
src/java/org/apache/poi/hssf/record/Record.java
src/java/org/apache/poi/hssf/record/RefModeRecord.java
src/java/org/apache/poi/hssf/record/RefreshAllRecord.java
src/java/org/apache/poi/hssf/record/RightMarginRecord.java
src/java/org/apache/poi/hssf/record/RowRecord.java
src/java/org/apache/poi/hssf/record/SCLRecord.java
src/java/org/apache/poi/hssf/record/SSTRecord.java
src/java/org/apache/poi/hssf/record/SaveRecalcRecord.java
src/java/org/apache/poi/hssf/record/ScenarioProtectRecord.java
src/java/org/apache/poi/hssf/record/SelectionRecord.java
src/java/org/apache/poi/hssf/record/SeriesChartGroupIndexRecord.java
src/java/org/apache/poi/hssf/record/SeriesIndexRecord.java
src/java/org/apache/poi/hssf/record/SeriesLabelsRecord.java
src/java/org/apache/poi/hssf/record/SeriesListRecord.java
src/java/org/apache/poi/hssf/record/SeriesRecord.java
src/java/org/apache/poi/hssf/record/SeriesTextRecord.java
src/java/org/apache/poi/hssf/record/SeriesToChartGroupRecord.java
src/java/org/apache/poi/hssf/record/SharedValueRecordBase.java
src/java/org/apache/poi/hssf/record/SheetPropertiesRecord.java
src/java/org/apache/poi/hssf/record/StringRecord.java
src/java/org/apache/poi/hssf/record/StyleRecord.java
src/java/org/apache/poi/hssf/record/SupBookRecord.java
src/java/org/apache/poi/hssf/record/TabIdRecord.java
src/java/org/apache/poi/hssf/record/TextObjectBaseRecord.java
src/java/org/apache/poi/hssf/record/TextRecord.java
src/java/org/apache/poi/hssf/record/TickRecord.java
src/java/org/apache/poi/hssf/record/TopMarginRecord.java
src/java/org/apache/poi/hssf/record/UncalcedRecord.java
src/java/org/apache/poi/hssf/record/UnicodeString.java
src/java/org/apache/poi/hssf/record/UnitsRecord.java
src/java/org/apache/poi/hssf/record/UnknownRecord.java
src/java/org/apache/poi/hssf/record/UseSelFSRecord.java
src/java/org/apache/poi/hssf/record/VCenterRecord.java
src/java/org/apache/poi/hssf/record/ValueRangeRecord.java
src/java/org/apache/poi/hssf/record/VerticalPageBreakRecord.java
src/java/org/apache/poi/hssf/record/WSBoolRecord.java
src/java/org/apache/poi/hssf/record/WindowOneRecord.java
src/java/org/apache/poi/hssf/record/WindowProtectRecord.java
src/java/org/apache/poi/hssf/record/WindowTwoRecord.java
src/java/org/apache/poi/hssf/record/WriteAccessRecord.java
src/java/org/apache/poi/hssf/record/WriteProtectRecord.java
src/testcases/org/apache/poi/hssf/record/TestAreaFormatRecord.java
src/testcases/org/apache/poi/hssf/record/TestAreaRecord.java
src/testcases/org/apache/poi/hssf/record/TestAxisLineFormatRecord.java
src/testcases/org/apache/poi/hssf/record/TestAxisOptionsRecord.java
src/testcases/org/apache/poi/hssf/record/TestAxisParentRecord.java
src/testcases/org/apache/poi/hssf/record/TestAxisRecord.java
src/testcases/org/apache/poi/hssf/record/TestAxisUsedRecord.java
src/testcases/org/apache/poi/hssf/record/TestBarRecord.java
src/testcases/org/apache/poi/hssf/record/TestCategorySeriesAxisRecord.java
src/testcases/org/apache/poi/hssf/record/TestChartRecord.java
src/testcases/org/apache/poi/hssf/record/TestCommonObjectDataSubRecord.java
src/testcases/org/apache/poi/hssf/record/TestDatRecord.java
src/testcases/org/apache/poi/hssf/record/TestDataFormatRecord.java
src/testcases/org/apache/poi/hssf/record/TestDefaultDataLabelTextPropertiesRecord.java
src/testcases/org/apache/poi/hssf/record/TestEndSubRecord.java
src/testcases/org/apache/poi/hssf/record/TestExtendedFormatRecord.java
src/testcases/org/apache/poi/hssf/record/TestFontBasisRecord.java
src/testcases/org/apache/poi/hssf/record/TestFontIndexRecord.java
src/testcases/org/apache/poi/hssf/record/TestFontRecord.java
src/testcases/org/apache/poi/hssf/record/TestFrameRecord.java
src/testcases/org/apache/poi/hssf/record/TestLegendRecord.java
src/testcases/org/apache/poi/hssf/record/TestLineFormatRecord.java
src/testcases/org/apache/poi/hssf/record/TestLinkedDataRecord.java
src/testcases/org/apache/poi/hssf/record/TestNoteRecord.java
src/testcases/org/apache/poi/hssf/record/TestNoteStructureSubRecord.java
src/testcases/org/apache/poi/hssf/record/TestNumberFormatIndexRecord.java
src/testcases/org/apache/poi/hssf/record/TestObjectLinkRecord.java
src/testcases/org/apache/poi/hssf/record/TestPaneRecord.java
src/testcases/org/apache/poi/hssf/record/TestPlotAreaRecord.java
src/testcases/org/apache/poi/hssf/record/TestPlotGrowthRecord.java
src/testcases/org/apache/poi/hssf/record/TestSCLRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesChartGroupIndexRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesIndexRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesLabelsRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesListRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesTextRecord.java
src/testcases/org/apache/poi/hssf/record/TestSeriesToChartGroupRecord.java
src/testcases/org/apache/poi/hssf/record/TestSheetPropertiesRecord.java
src/testcases/org/apache/poi/hssf/record/TestStringRecord.java
src/testcases/org/apache/poi/hssf/record/TestSupBookRecord.java
src/testcases/org/apache/poi/hssf/record/TestTableRecord.java
src/testcases/org/apache/poi/hssf/record/TestTextObjectBaseRecord.java
src/testcases/org/apache/poi/hssf/record/TestTextObjectRecord.java
src/testcases/org/apache/poi/hssf/record/TestTextRecord.java
src/testcases/org/apache/poi/hssf/record/TestTickRecord.java
src/testcases/org/apache/poi/hssf/record/TestUnitsRecord.java
src/testcases/org/apache/poi/hssf/record/TestValueRangeRecord.java

index c5fae27ae37415af86d613ae58aa57e2b72c7f75..89eb9301b7051ff0b612e4229621df961ed40681 100644 (file)
@@ -68,19 +68,6 @@ public abstract class AbstractEscherHolderRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != getSid())
-        {
-            throw new RecordFormatException("Not an escher record! (sid was " + id + ", expecting " + getSid() + ")");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         escherRecords = new ArrayList();
index 843128120efb22d8fcba5f09a0eec2411b19220b..de810245a5662b4ac69d84bb2605330149c1a69c 100644 (file)
@@ -60,19 +60,6 @@ public final class AreaFormatRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a AreaFormat record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_foregroundColor        = in.readInt();
index fd652894606a81566ef223dbbf689f9b667dc793..17d54ce8bb5e49b64b64838f86d8d3322c2ab775 100644 (file)
@@ -54,19 +54,6 @@ public final class AreaRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Area record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
 
index e46ce1a5d2f214ee0b00b43c156f45de199dbdb2..9aa8407fc54f70d860a76edb13718e7641db0424 100644 (file)
@@ -58,19 +58,6 @@ public class AxisLineFormatRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a AxisLineFormat record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_axisType               = in.readShort();
index 8be3f200be2ece1b9a10d1199cdc0117d6901bd0..20ab70bcb8774adf197e645d698dd02d7d262a69 100644 (file)
@@ -69,19 +69,6 @@ public final class AxisOptionsRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a AxisOptions record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_minimumCategory        = in.readShort();
index 3c4d5985459f30d3d6c2b2e0f60d5bfd8eed1bbb..150acb2b2e19be519588fa7664fe1422af0c893f 100644 (file)
@@ -60,19 +60,6 @@ public class AxisParentRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a AxisParent record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_axisType               = in.readShort();
index b18c9c32fdde381715331401f33036a39cd42930..3f956512479409315bf8e438a8acec1d2d3c2985 100644 (file)
@@ -61,19 +61,6 @@ public class AxisRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Axis record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_axisType               = in.readShort();
index 2b3937978a08368b78dc0a52f9850fcdbc3b15ce..bde01c32a8cc0aeb0ff696bc078419cb87972768 100644 (file)
@@ -54,19 +54,6 @@ public class AxisUsedRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a AxisUsed record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_numAxis                = in.readShort();
index dd5335a420b2f3894396625ff2f25d95046efae0..a7c3ee0ef3a01c3a956e655d41e5989a77c6775e 100644 (file)
@@ -98,14 +98,6 @@ public class BOFRecord
         // fillFields(data,size);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A BOF RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_version  = in.readShort();
index 6ee6cccfb68f64a98b89483bebf5801a43c977e7..47370f4fb235f888f8e93b5b942b36d2fff6d714 100644 (file)
@@ -50,14 +50,6 @@ public class BackupRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A BACKUP RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_backup = in.readShort();
index 0c88385ba8e6cf72d2d04f6be65193b0e364a1cc..2239e56e0189df0ad16c9867128a63876fe2441d 100644 (file)
@@ -59,19 +59,6 @@ public final class BarRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Bar record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_barSpace               = in.readShort();
index b899d3a6a8d8f29b4e95f0be02668c0e5f317469..f7347619c8ce81c1bdc1570190947026f37bba61 100644 (file)
@@ -49,14 +49,6 @@ public class BeginRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A BEGIN RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index cf1b97f5a58a224ff9614c99d5b39f34c644e5bd..4d333eb418bad8d681b2f661f10c2d95ad4c4da1 100644 (file)
@@ -55,20 +55,6 @@ public final class BlankRecord extends Record implements CellValueRecordInterfac
         field_3_xf  = in.readShort();
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A BLANKRECORD!");
-        }
-    }
-
     /**
      * set the row this cell occurs on
      * @param row the row this cell occurs within
index 6b5cf98836f5a61897fc3febd82f1f5dd2c8d311..150dc5dfda57c3a33d7e0f5cd7e28f9a7db86156 100644 (file)
@@ -50,14 +50,6 @@ public class BookBoolRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A BOOKBOOL RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_save_link_values = in.readShort();
index 1c15ccc5fe1f4ead2375bba1b4117b3005109fad..77ece1632c593142f842faab15159e0b2414f927 100644 (file)
@@ -221,20 +221,6 @@ public final class BoolErrRecord extends Record implements CellValueRecordInterf
         return 12;
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-    protected void validateSid(short id)
-    {
-        if (id != BoolErrRecord.sid)
-        {
-            throw new RecordFormatException("Not a valid BoolErrRecord");
-        }
-    }
-
     public short getSid()
     {
         return sid;
index fc535e06b9a6ced0137af7b65b9446a778b00c4b..8c8a4a9434750a2ee2fcc209ee745b72637be0ce 100644 (file)
@@ -49,19 +49,6 @@ public class BottomMarginRecord
         super( in );
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id the expected sid.
-     */
-    protected void validateSid( short id )
-    {
-        if ( id != sid )
-        {
-            throw new RecordFormatException( "Not a BottomMargin record" );
-        }
-    }
-
     protected void fillFields( RecordInputStream in )
     {
         field_1_margin = in.readDouble();
@@ -121,4 +108,4 @@ public class BottomMarginRecord
         return rec;
     }
 
-}  // END OF CLASS
+}  // END OF CLASS
\ No newline at end of file
index 4ecddce7e8d7dd35b744c5f6e4f2f9910f5be163..5cc087e65694cedcdd958f7dc01c6db906669207 100644 (file)
@@ -61,12 +61,6 @@ public final class BoundSheetRecord extends Record {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT A Bound Sheet RECORD");
-               }
-       }
-
        /**
         * UTF8: sid + len + bof + flags + len(str) + unicode + str 2 + 2 + 4 + 2 +
         * 1 + 1 + len(str)
index 0a2ffe9fb8d890b29ff63645d9ff66e95dac95c0..af8e4315eeec7527e152f4d3815d54d095e2f750 100644 (file)
@@ -160,22 +160,6 @@ public final class CFHeaderRecord extends Record {
                return 4 + getDataSize();
        }
 
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-
-       protected void validateSid(short id)
-       {
-               if (id != sid)
-               {
-                       throw new RecordFormatException(
-                                       "NOT A ConditionalFormattingHeaderRecord RECORD");
-               }
-       }
-
        public short getSid()
        {
                return sid;
index e676d431205845e89bceb409feadb6ad312e352d..c440b416fb5994769d317af60166f8284e2fd30d 100644 (file)
@@ -446,21 +446,6 @@ public final class CFRuleRecord extends Record {
        public void setParsedExpression2(Ptg[] ptgs) {
                field_18_formula2 = safeClone(ptgs);
        }
-       
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-
-       protected void validateSid(short id)
-       {
-               if (id != sid)
-               {
-                       throw new RecordFormatException("NOT A CFRULE RECORD");
-               }
-       }
 
        public short getSid()
        {
index 4c9e4425cd0b6f8f7eb4c9cbfbd2c55ea2411371..288031d5b81218018b6da6fdf3da0833a335c7aa 100755 (executable)
@@ -42,12 +42,6 @@ public final class CRNCountRecord extends Record {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT An XCT RECORD");
-               }
-       }
-
        public int getNumberOfCRNs() {
                return field_1_number_crn_records;
        }
index fe66d638b76278c198e029c539901d74484e2d2c..98c399a21b138bc5f052abf93dbc6b09de9acfa8 100755 (executable)
@@ -43,12 +43,6 @@ public final class CRNRecord extends Record {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT An XCT RECORD");
-               }
-       }
-
        public int getNumberOfCRNs() {
                return field_1_last_column_index;
        }
index 307dfa35ee39d7ed010028f513f97c35cbca2359..0d4d5e0d7da4542ff9973c78f5c9d923420ce9de 100644 (file)
@@ -56,14 +56,6 @@ public class CalcCountRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An Calc Count RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_iterations = in.readShort();
index b36123638e6349084d38fcdd2ccc61157d33f623..b2c323de4552cc8bbcd77f70a0f9d5dada7ecf72 100644 (file)
@@ -71,14 +71,6 @@ public class CalcModeRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An Calc Mode RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_calcmode = in.readShort();
index 0521ea709cdfa53f0f5b703bed367105d52b727d..ff5906360438e63e67726f9d25b363ee897ec83e 100644 (file)
@@ -59,19 +59,6 @@ public final class CategorySeriesAxisRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a CategorySeriesAxis record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_crossingPoint          = in.readShort();
index f5fd1d9530d2ac056f2eaaf2dc3fd5aa411667a8..f7c6384df93c5ded3e629be3dbe9eb8fc9eaec88 100644 (file)
@@ -54,14 +54,6 @@ public final class ChartFormatRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A CHARTFORMAT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field1_x_position = in.readInt();
index a4c6a5f4f4cf9a697de7a357485265b845a8c1ff..6e2e98191b76ac134f122f1d018d47c1ab6f7a5d 100644 (file)
@@ -57,19 +57,6 @@ public class ChartRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Chart record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_x                      = in.readInt();
index a9ec81e97a925dccd0bc8921d3b6083a94268795..0d522e7775a7f7e62aaaead605d502ce3c7389a6 100644 (file)
@@ -62,13 +62,6 @@ public class ChartTitleFormatRecord extends Record {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != sid)
-        {
-            throw new RecordFormatException("NOT A CHARTTITLEFORMAT RECORD");
-        }
-       }
-
        protected void fillFields(RecordInputStream in) {
                m_recs = in.readUShort();
                int idx;
index b2aa41039f980daef518bca006b957dd943fa696..285f5d0b579abd13bfc02a5840e16ed6810a2fbd 100644 (file)
@@ -57,14 +57,6 @@ public class CodepageRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A CODEPAGE RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_codepage = in.readShort();
index bd04a636f2dbe503466f4afc197dc47d1c169b0a..b8934efb08097e99fc93c71b08dcbd17fa663f3b 100644 (file)
@@ -83,14 +83,6 @@ public final class ColumnInfoRecord extends Record {
         }
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A COLINFO RECORD!!");
-        }
-    }
-
     /**
      * set the first column this record defines formatting info for
      * @param fc - the first column index (0-based)
index dd29f0d65c807d9acaf86020f0a3d5d5d4a1b090..43c6ad854957928bc54e80b5704e8d03cc3b15ea 100644 (file)
@@ -93,19 +93,6 @@ public final class CommonObjectDataSubRecord extends SubRecord {
         super(in);
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a CommonObjectData record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_objectType             = in.readShort();
index 46d15a3c1e53c77e7c16ecce66fa15c725536ef9..5402a46bd34a1fab8ceda290813802bfb783fc83 100644 (file)
@@ -97,20 +97,6 @@ public class ContinueRecord
         return field_1_data;
     }
 
-    /**
-     * Make sure we have a good id
-     *
-     * @param id the alleged id
-     */
-
-    protected void validateSid(short id)
-    {
-        if (id != ContinueRecord.sid)
-        {
-            throw new RecordFormatException("Not a Continue Record");
-        }
-    }
-
     /**
      * Debugging toString
      *
index ca1af5531ca40452ef73f56651c092361bfe51a5..0acccfd918239ade800b9f2fe2d54914438d4e1e 100644 (file)
@@ -54,14 +54,6 @@ public class CountryRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A Country RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_default_country = in.readShort();
index 1aef298e1f6514ecd8bee7713714459f1e44a15e..efa713aec62ce32c76007f151b99a4653888ce6c 100644 (file)
@@ -47,14 +47,6 @@ public final class DBCellRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid DBCell RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_row_offset   = in.readUShort();
index ea898c2f2306bf84d2ff93d0788f21c4429b210b..43dbe79580645f511e9783023c7bf31d82202a79 100644 (file)
@@ -50,14 +50,6 @@ public class DSFRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A DSF RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_dsf = in.readShort();
index 011c0a435557efab9fc1ae33deb473f4ab3556a8..c4fac186d264d7f62b80b334af4e2f0d58e90d97 100644 (file)
@@ -59,14 +59,6 @@ public class DVALRecord extends Record
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid DVAL RECORD");
-        }
-    }
-
        protected void fillFields(RecordInputStream in)
        {
                this.field_1_options = in.readShort();
index 6f319e028226438a71fc1f1a5436247b9a71354b..2a3dc05f14dd843e591f93ad937604a7d2d3b8f6 100644 (file)
@@ -110,12 +110,6 @@ public final class DVRecord extends Record {
                _regions = regions;
        }
 
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT a valid DV RECORD");
-               }
-       }
-
        protected void fillFields(RecordInputStream in) {
                
           _option_flags = in.readInt();
index 476b13291b682e557bb5a165871c6eadbbe17940..c7ece181aed69a62d17e42db8fa765580b02cfff 100644 (file)
@@ -57,19 +57,6 @@ public final class DatRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Dat record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_options                = in.readShort();
index f86834daaed8ee2377cda9f6b3206dbdce9b59b3..61c59bcfd32a2e82080693fbcc64de2c354f05a1 100644 (file)
@@ -57,19 +57,6 @@ public final class DataFormatRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a DataFormat record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_pointNumber            = in.readShort();
index 3a692fd6890c49709adc1efb5966442cef3a1839..5e7ffe95bfd284e94ef13e5e7dea79dc237c7056 100644 (file)
@@ -50,14 +50,6 @@ public class DateWindow1904Record
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A 1904 RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_window = in.readShort();
index ff6270be017e5f122b5a04ad6850d72290b73422..9d3e5d80e6252c538854aa7eb757d3bfb652849e 100644 (file)
@@ -46,14 +46,6 @@ public final class DefaultColWidthRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A DefaultColWidth RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_col_width = in.readUShort();
index 771d7c4cf797c49f4ad6fa05bf694cb33d4c384b..58b3b8f5cf72cc4556faba12997bafe02f722619 100644 (file)
@@ -57,19 +57,6 @@ public class DefaultDataLabelTextPropertiesRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a DefaultDataLabelTextProperties record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_categoryDataType       = in.readShort();
index 8f049c1602dee4606c0b2e25764641dd93193d82..bb93ff83dea8fa899729b1c61abd6cf2a4288cae 100644 (file)
@@ -52,14 +52,6 @@ public class DefaultRowHeightRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A DefaultRowHeight RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_option_flags = in.readShort();
index b7afe7486b77d7c0842c6c696ac079a364533b5d..467431eadd73a72cb3f7f6e3127c11c49add3097 100644 (file)
@@ -54,14 +54,6 @@ public class DeltaRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A DELTA RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_max_change = in.readDouble();
index feecd68653d9696451c42444b4bd3dc9bdcda06e..adf9f7edf2d89d54a7b9b364bc15c73542a29cf6 100644 (file)
@@ -55,14 +55,6 @@ public class DimensionsRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid DIMENSIONS RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_first_row = in.readInt();
index 009bc31bce892e7911f4987bbb68f7db750b2a12..089c15f903b9ba232c2c90a8e41477b8f4eb271e 100644 (file)
@@ -34,19 +34,6 @@ public class DrawingRecord extends Record
         super( in );
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a MSODRAWING record");
-        }
-    }
-
     protected void fillFields( RecordInputStream in )
     {
       recordData = in.readRemainder();
index d658c6d83dabf08ed0c5eb5b8c4e8a79e1d677ea..96159b42ab19be3821f78c27e1ad8d03cece64a0 100644 (file)
@@ -49,14 +49,6 @@ public final class EOFRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An EOF RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index 0e59282f5e22789ee809382c36aaedd081aa15ef..b33519c8e1b0fd570f6064f04de9bad8dfc94220 100644 (file)
@@ -64,19 +64,6 @@ public class EmbeddedObjectRefSubRecord
         super(in);
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a EmbeddedObjectRef record");
-        }
-    }
-
     public short getSid()
     {
         return sid;
index 0c15e723f7298581c8b841525bf5fd6519fae66e..48e50ac128c2fcc118e35cc3883ad686a4b70ec5 100644 (file)
@@ -49,15 +49,6 @@ public class EndRecord
         super(in);
     }
 
-
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An END RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index 28478adbfaf057dff30ab35ee832144540df1ce1..59ccb872edac68138c121577dd150604fc342554 100644 (file)
@@ -53,19 +53,6 @@ public class EndSubRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a End record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index bd2bc365665c92c1590f472d2f7fa9b255dacc39..e6e2317849d75daaff03963453006093be12102f 100644 (file)
@@ -55,12 +55,6 @@ public class ExtSSTInfoSubRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-
-        // do nothing
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_stream_pos        = in.readInt();
index cb31fb59b41329c29143100e77dd599bfebe4ba3..0d99c53241d261420c0a96ccb96e7f826e7a2559 100644 (file)
@@ -63,14 +63,6 @@ public class ExtSSTRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An EXTSST RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_2_sst_info           = new ArrayList();
index ae983876711ef44ebb5d8efebcc5ca04769b6539..a4e81ba55ef43c8d98e134b1c43a8ff0d3422521 100644 (file)
@@ -205,14 +205,6 @@ public class ExtendedFormatRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A EXTENDED FORMAT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_font_index           = in.readShort();
index 64f86c3f124f0ca97407d2990107714fc0e1b17e..71f0d496a18bdf32c5b8d63fe48cfa26ff9d442e 100644 (file)
@@ -104,18 +104,6 @@ public class ExternSheetRecord extends Record {
                super(in);
        }
        
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT An ExternSheet RECORD");
-               }
-       }
-       
        /**
         * called by the constructor, should set class level fields.  Should throw
         * runtime exception for bad/icomplete data.
index 45960e91af5f582960c79830db0bdaab938151ab..45deae1c6254747824930c472a328e5c343319cb 100755 (executable)
@@ -90,19 +90,6 @@ public final class ExternalNameRecord extends Record {
                return field_4_name;
        }
 
-
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT A valid ExternalName RECORD");
-               }
-       }
-
        private int getDataSize(){
                int result = 3 * 2  // 3 short fields
                        + 2 + field_4_name.length(); // nameLen and name
index a3f29c765487904022382a7f2bf3399f5583c079..b14fac83a4fbc76be6cdf30c2577dc2cc5d30217 100644 (file)
@@ -50,14 +50,6 @@ public class FilePassRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A FILEPASS RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_encryptedpassword = in.readInt();
index e375af365720a87b64a015d8195638ae98cf688c..e49c07785c263307aaea5771e73cc465f182e83b 100644 (file)
@@ -47,12 +47,6 @@ public final class FileSharingRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id) {
-        if (id != sid) {
-            throw new RecordFormatException("NOT A FILESHARING RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in) {
         field_1_readonly = in.readShort();
         field_2_password = in.readShort();
index 41bb07d8f49cc8ad4275cb6b9f4a0650f40d3700..abea11f5d79fbe95724e5ce673094be777282612 100644 (file)
@@ -56,14 +56,6 @@ public class FnGroupCountRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A FNGROUPCOUNT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_count = in.readShort();
index a2a45e23c1a75380dd9e7feeae618d5fe45f0e80..95731d102535d081d235e3dc5da96c4046dfc95f 100644 (file)
@@ -58,19 +58,6 @@ public class FontBasisRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a FontBasis record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_xBasis                 = in.readShort();
index 12e2f66691175b38c94e02031f5b21d762263b76..82d7152e88b34fe86b795662ab0cb0a4b97fabcf 100644 (file)
@@ -54,19 +54,6 @@ public class FontIndexRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a FontIndex record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_fontIndex              = in.readShort();
index 11ba3aaa897d0ec0dd1fed71acebbbd0fcff2f31..deaa92e266855d9aa3c8de25155c2aecf4632dd1 100644 (file)
@@ -87,14 +87,6 @@ public class FontRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A FONT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_font_height         = in.readShort();
index 6ccc082801aa3d8b0153e20736a4e3d3b4a7247c..9dcd031189ac1521d8e3e1b9106367fe5cd9377f 100644 (file)
@@ -55,14 +55,6 @@ public class FooterRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A FooterRECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         if (in.remaining() > 0)
index d71c401f8891087780fe48cc832dc742744b6140..47a45c4f0e6622021862261299b5976cb259342a 100644 (file)
@@ -56,14 +56,6 @@ public class FormatRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A FORMAT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_index_code       = in.readShort();
index e4b599a0e9eae2ca2f4c60d99226e79481d2d8c0..21ca8cccb538d80485e1b51c3c3afb056c44f1b5 100644 (file)
@@ -356,18 +356,6 @@ public final class FormulaRecord extends Record implements CellValueRecordInterf
                field_8_parsed_expr = ptgs;
        }
 
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT A FORMULA RECORD");
-               }
-       }
-
        public short getSid() {
                return sid;
        }
index e4a2bf6c3a1ac813232ac9610e3ae68edf4a099b..321c867d929c5f8028d389c5b20e8e36c5c95307 100644 (file)
@@ -58,19 +58,6 @@ public final class FrameRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Frame record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_borderType             = in.readShort();
index 5f5896d5a1fde8a8fb3d2c647167a5a7d17129a5..681b7cdc1498fd4fe51af3eaadf413ae524cea45 100644 (file)
@@ -54,14 +54,6 @@ public class GridsetRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A Gridset RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_gridset_flag = in.readShort();
index cba7544e93263ea0a2d677f483ee440dd5d8add6..d72b4be65bdf51f20ce003a7f20535a2e9f636f5 100644 (file)
@@ -53,19 +53,6 @@ public class GroupMarkerSubRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Group Marker record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
 //        int pos = 0;
index 2dc5c4a6cca56f1aa467246c778c0f8ec8967364..d165439215712911437dd1c03dc2893a8f023690 100644 (file)
@@ -53,14 +53,6 @@ public class GutsRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A Guts RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_left_row_gutter = in.readShort();
index 5232e17dea577d72905e1a811371f8e5528770e9..cfcdb00afe50645424143e0d16756d86939971de 100644 (file)
@@ -50,14 +50,6 @@ public class HCenterRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A HCenter RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_hcenter = in.readShort();
index e8190364a8f67a7f57d1288c89c98dbd66431f40..57846ee73ceb467f6ed346cb5f20afb92f46450c 100644 (file)
@@ -55,14 +55,6 @@ public class HeaderRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A HEADERRECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         if (in.remaining() > 0)
index 1496720d4f142fcc343ad5a09bf8f166359697f0..2786de4571affce29117e1d88635918f8ae22430 100644 (file)
@@ -52,14 +52,6 @@ public class HideObjRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A HIDEOBJ RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_hide_obj = in.readShort();
index a6846300cb9de30167f89a8c1568de30bb3e490e..63e757f8df2e97da021c01a74386b19605a6dde7 100644 (file)
@@ -44,13 +44,6 @@ public final class HorizontalPageBreakRecord extends PageBreakRecord {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != getSid()) {
-                       throw new RecordFormatException(
-                                       "NOT A HorizontalPageBreak or VerticalPageBreak RECORD!! " + id);
-               }
-       }
-
        public short getSid() {
                return sid;
        }
index e28cf5bf864b36e4204cd43f289ddbd096682e69..6daf192ca22867916faccb5970f9685848504073 100644 (file)
@@ -372,14 +372,6 @@ public class HyperlinkRecord extends Record {
         return HyperlinkRecord.sid;
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A HYPERLINKRECORD!");
-        }
-    }
-
     public int serialize(int offset, byte[] data)
     {
         int pos = offset;
index 957a047eaaa5d94492d18a76d35a17c4e70b2531..d997a43dd83ac4494ed518460824b301918db46b 100644 (file)
@@ -58,14 +58,6 @@ public class IndexRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An Index RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_5_dbcells       =
index bb92c974cae672d4e0c6ecf9dc4731210c300ac2..8f91b197eca68f5185edc704075b5d93e5963f47 100644 (file)
@@ -49,14 +49,6 @@ public class InterfaceEndRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A INTERFACEEND RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index 637e2c679431c4f6ad5059e85575c34ad240cfca..5e04b506ab7d956159c10d4a6ef119190a2dd779 100644 (file)
@@ -55,14 +55,6 @@ public class InterfaceHdrRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A INTERFACEHDR RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_codepage = in.readShort();
index 16ab1d0741fad97a77e42ceebf1f3e72d2aa7b19..82e167f79e793ca5ad6283612a793d88db74eb2c 100644 (file)
@@ -53,14 +53,6 @@ public class IterationRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An ITERATION RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_iteration = in.readShort();
index 844d86a0c6c68469ba21d8880e99687d5225d516..32b910b841a4e6263725738e627a4f4b3d6b623e 100644 (file)
@@ -53,20 +53,6 @@ public final class LabelRecord extends Record implements CellValueRecordInterfac
         super(in);
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a valid LabelRecord");
-        }
-    }
-
     /**
      * @param in the RecordInputstream to read the record from
      */
index 92b3436d3657d3fa60e205b75f9267f86fc2985f..3d878770d4c3475884caabb0f77514a0f82999af 100644 (file)
@@ -49,15 +49,6 @@ public final class LabelSSTRecord extends Record implements CellValueRecordInter
         super(in);
     }
 
-
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid LabelSST RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_row       = in.readUShort();
index 9e5883c5a05aa95a08dcb03fdec28dd03f1d45de..ebe59a3376294950d24c0b39b0adc6609d1d8d7b 100644 (file)
@@ -39,19 +39,6 @@ public class LeftMarginRecord extends Record implements Margin
     public LeftMarginRecord(RecordInputStream in)
     {        super(in);    }
 
-    /**
-     * Checks the sid matches the expected side for this record     
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid( short id )
-    {
-        if ( id != sid )
-        {
-            throw new RecordFormatException( "Not a LeftMargin record" );
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_margin = in.readDouble();
@@ -106,4 +93,4 @@ public class LeftMarginRecord extends Record implements Margin
         rec.field_1_margin = this.field_1_margin;
         return rec;
     }
-}  // END OF CLASS
+}  // END OF CLASS
\ No newline at end of file
index e9c529ea3c49d4deda8b869d2c5240ba729202a8..46ccd6b6595d4ba2a1a7e4cafaf9d004ae58c443 100644 (file)
@@ -74,19 +74,6 @@ public final class LegendRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Legend record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_xAxisUpperLeft         = in.readInt();
index 8caa8e4a4b0b053da13c7f23fb54fc959a555f44..88fafe10a203bdbc1fb41b2b6df8c3824df9e63f 100644 (file)
@@ -73,19 +73,6 @@ public final class LineFormatRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a LineFormat record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_lineColor              = in.readInt();
index 093c1a86cbf48a0f65be6203c918e010944336a3..6e0dc8296a8e6dc50bdf5f855588bffe188c7c36 100644 (file)
@@ -66,19 +66,6 @@ public final class LinkedDataRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a LinkedData record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_linkType               = in.readByte();
index c38e9df2449c1089a4d70071bd830e496d68a360..3ee9665692dd440ad7f76510ae0d7e3979ef633c 100644 (file)
@@ -51,14 +51,6 @@ public class MMSRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A MMS RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_addMenuCount = in.readByte();
index 27ebbd118eed31aebb820d1d59575425982d7958..aac11ef6037159f7fc0f3d43954c9f046f1b5bec 100644 (file)
@@ -119,13 +119,6 @@ public final class MergeCellsRecord extends Record {
         return retval.toString();
     }
 
-    protected void validateSid(short id) {
-        if (id != sid) {
-            throw new RecordFormatException("NOT A MERGEDCELLS RECORD!! "
-                                            + id);
-        }
-    }
-
     public Object clone() {
        int nRegions = _numberOfRegions;
        CellRangeAddress[] clonedRegions = new CellRangeAddress[nRegions];
index dffdb2fe80673f010b40c648a8efe47c1aa9bae3..0bfeea9ffc49ec920881171f99fff36255c6682e 100644 (file)
@@ -159,21 +159,6 @@ public class MulBlankRecord
         return buffer.toString();
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a MulBlankRecord!");
-        }
-    }
-
     public short getSid()
     {
         return sid;
index c301d52a8afa3549d9566c9bf0b25ccc66a0ce85..4f2981f5da6b8774b02c6c0c6975d6579943bf00 100644 (file)
@@ -117,21 +117,6 @@ public final class MulRKRecord extends Record {
                return buffer.toString();
        }
 
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-
-       protected void validateSid(short id)
-       {
-               if (id != sid)
-               {
-                       throw new RecordFormatException("Not a MulRKRecord!");
-               }
-       }
-
        public short getSid()
        {
                return sid;
index dc301bca933e12d68e305692ffafac71d4ae910d..732172add76ec9749e8b540be2c752d43b01a499 100644 (file)
@@ -340,18 +340,6 @@ public final class NameRecord extends Record {
                return field_17_status_bar_text;
        }
 
-       /**
-        * called by constructor, should throw runtime exception in the event of a
-        * record passed with a differing ID.
-        *
-        * @param id alleged id for this record
-        */
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT A valid Name RECORD");
-               }
-       }
-
 
        /**
         * called by the class that is responsible for writing this sucker.
index a9e83806f85d24ecba2319c8db42f0ad7290ba9d..c37bd08545f4049ef3cd0875804d57dc7e5568ee 100644 (file)
@@ -73,19 +73,6 @@ public class NoteRecord extends Record {
         return sid;
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a NoteRecord record");
-        }
-    }
-
     /**
      * Read the record data from the supplied <code>RecordInputStream</code>
      */
index c99f29be354942ab2008b927b589fcd8b15932a3..a0b519594c07b2e5af35a5b86967afcc36d23edd 100644 (file)
@@ -55,19 +55,6 @@ public class NoteStructureSubRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Note Structure record");
-        }
-    }
-
     /**
      * Read the record data from the supplied <code>RecordInputStream</code>
      */
index 15f9c367d837c24a562fb6afffe9346abbaca4f7..951e53360a658ba8c7cedbd301e104d5df44fd02 100644 (file)
@@ -54,19 +54,6 @@ public class NumberFormatIndexRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a NumberFormatIndex record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_formatIndex            = in.readShort();
index f3d906155c164c12b12f602fb74340ba1d33257b..0877985adc58b6872df95d0dbbbc8e097d6b6a59 100644 (file)
@@ -157,21 +157,6 @@ public final class NumberRecord extends Record implements CellValueRecordInterfa
         return 18;
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A Number RECORD");
-        }
-    }
-
     public short getSid()
     {
         return sid;
index 0e424eed2f3d5e101cc2b8be940fd255a33bb2b7..0e85817a2b4bc1357031f3e56835616e47537d93 100644 (file)
@@ -54,19 +54,6 @@ public final class ObjRecord extends Record {
         super(in);
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not an OBJ record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
        // TODO - problems with OBJ sub-records stream
index 0d64ee3d6bb113387ddcbb3f5a14d46b0e638068..ec32ef0fa7c22869bc2ca341a6a73d547d56cbad 100644 (file)
@@ -61,19 +61,6 @@ public class ObjectLinkRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a ObjectLink record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_anchorId               = in.readShort();
index 64d50cb3399db647a3bc0be728412b916d3686eb..0dbb95c21e91a4d6804b1ddd440f54c2fb3d975f 100644 (file)
@@ -51,14 +51,6 @@ public class ObjectProtectRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT AN OBJECTPROTECT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_protect = in.readShort();
index d626baa2d3897fcf6a11b8052a31783ebc8eb5f1..6fd4682173704b316ddf3b1a794f98262bdd9e8e 100644 (file)
@@ -58,14 +58,6 @@ public class PaletteRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An Palette RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
        field_1_numcolors = in.readShort();
index f02e4116555bf9253c9e769f47b51d2c09e1da05..c8e4df55b680da1a01c3141db285b25f6be856a9 100644 (file)
@@ -61,19 +61,6 @@ public final class PaneRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Pane record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_x                      = in.readShort();
index 67f210da5b14209b5d0b51ced15ea76dd6dcd49d..1b9e9041ac520d50d48db52f65a4628b79f97e82 100644 (file)
@@ -45,12 +45,6 @@ public class PasswordRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id) {
-        if (id != sid) {
-            throw new RecordFormatException("NOT A PASSWORD RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in) {
         field_1_password = in.readShort();
     }
index 8d31860af401b5fe1018d31f3338feb84258ae79..5a096b1d26135aa4c52d655445e5477d0dce053e 100644 (file)
@@ -50,14 +50,6 @@ public class PasswordRev4Record
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PROT4REVPASSWORD RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_password = in.readShort();
index e149c39ebb32851bcd93c14db5039c3d8aa6acad..c41c3f2f7d6eb18fdfce478ddbd74c7080055210 100644 (file)
@@ -53,19 +53,6 @@ public class PlotAreaRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a PlotArea record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
 
index 29c3259923349100a539fb5063a5ab47d2aa431b..b340fe604a35d9fbd83c8db59d17bd27d9832262 100644 (file)
@@ -55,19 +55,6 @@ public class PlotGrowthRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a PlotGrowth record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_horizontalScale        = in.readInt();
index dd7b719221037a2dca609ac21d4a326aee408cc8..57e390df46c31db73c0bb424af6eaffca87e47b1 100644 (file)
@@ -50,14 +50,6 @@ public class PrecisionRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PRECISION RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_precision = in.readShort();
index ff0eaac18d3f9ace916be7d3428ae082e304218e..3908e01660bf5939aebbfe3dc19f9295a8e6605e 100644 (file)
@@ -50,14 +50,6 @@ public class PrintGridlinesRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PrintGridlines RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_print_gridlines = in.readShort();
index d3a69e513671ca7acc6456d8c56ddd924c406372..80521050c3a47929df7c78fe949bd879f3b2b390 100644 (file)
@@ -51,14 +51,6 @@ public class PrintHeadersRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PrintHeaders RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_print_headers = in.readShort();
index a8518c7b316ba00530d3aaa528a3bbf603f0830d..91ab614543a7111540ccd9fbbf8e0ad7626ceafe 100644 (file)
@@ -76,15 +76,6 @@ public class PrintSetupRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException(
-                "NOT A valid PrintSetup record RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_paper_size    = in.readShort();
index 94868e0a6055916e21fc0b9afaff5d0caaa830bb..b6b5378c7469b0dc49f30f929a70aa9304a92ee7 100644 (file)
@@ -52,14 +52,6 @@ public class ProtectRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PROTECT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_protect = in.readShort();
index 68678799dcf4bdf6127fccf5a99cc92090789723..c0e650f4ecdce4aa904fd39584321573a788be72 100644 (file)
@@ -50,14 +50,6 @@ public class ProtectionRev4Record
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A PROTECTION REV 4 RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_protect = in.readShort();
index ce9c84c6ec71877e08f485c7ad80e53266e52cd2..b899df4651fab1f32ec9557e2a5f41b0d1ccc69e 100644 (file)
@@ -61,14 +61,6 @@ public final class RKRecord extends Record implements CellValueRecordInterface {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid RK RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_row       = in.readUShort();
index e076b2bab536f1bdb96e80d50af2da04f07aa63e..008ee82e6d38d1800ee99ce2354fd89ad093fb6b 100644 (file)
@@ -59,14 +59,6 @@ public class RecalcIdRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A RECALCID RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_recalcids = new short[ in.remaining() / 2 ];
index c33da57deb3848acf1e6731c0f5b28e2b563bf50..a18869f0730935916eaad99a9b538e54242ec0fc 100644 (file)
@@ -47,19 +47,9 @@ public abstract class Record extends RecordBase {
      */
     protected Record(RecordInputStream in)
     {
-        validateSid(in.getSid());
         fillFields(in);
     }
 
-    /**
-     * called by constructor, should throw runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-
-    protected abstract void validateSid(short id);
-
     /**
      * called by the constructor, should set class level fields.  Should throw
      * runtime exception for bad/icomplete data.
index c99d02e5c87c074803bff97d9b31d25201ce0ba5..632d0d3b58ee05dd9ee94cce3e6ee4e170d38d7b 100644 (file)
@@ -52,14 +52,6 @@ public class RefModeRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT An RefMode RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_mode = in.readShort();
index eae7a532ed402c704ce122e46ca5b1cd13b29ea9..624001beac1270f449e392d19cd4ad1d6a2ef78d 100644 (file)
@@ -50,14 +50,6 @@ public class RefreshAllRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A REFRESHALL RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_refreshall = in.readShort();
index 34c7d8e123540205f1b5371562c5033713944172..9e76010a347776ad0514a36b1224b342359fd761 100644 (file)
@@ -36,17 +36,6 @@ public class RightMarginRecord extends Record implements Margin
     public RightMarginRecord( RecordInputStream in )
     {        super( in );    }
 
-    /**
-     * Checks the sid matches the expected side for this record     *     * @param id   the expected sid.
-     */
-    protected void validateSid( short id )
-    {
-        if ( id != sid )
-        {
-            throw new RecordFormatException( "Not a RightMargin record" );
-        }
-    }
-
     protected void fillFields( RecordInputStream in )
     {
         field_1_margin = in.readDouble();
@@ -93,4 +82,4 @@ public class RightMarginRecord extends Record implements Margin
         rec.field_1_margin = this.field_1_margin;
         return rec;
     }
-}  // END OF CLASS
\ No newline at end of file
+}  // END OF CLAS
\ No newline at end of file
index 8b49523a86a0f316b5908bb20ff952a5c85ead86..a5e5cd1e85bf750c83d6c52f13f13ed0e092e0c2 100644 (file)
@@ -83,14 +83,6 @@ public final class RowRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid ROW RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_row_number   = in.readUShort();
index f06694b8658dd67ecbaf344eff47e357bd3f0d4d..41cbdee165916f92888da20756d66b798085adda 100644 (file)
@@ -55,19 +55,6 @@ public class SCLRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SCL record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_numerator              = in.readShort();
index 9c67c8dca45b3cf74c1d9c6cb833d986e04a2d4f..7f3477b63f0965778d6d3bc61b1d9a43ccd0e11a 100644 (file)
@@ -256,23 +256,6 @@ public class SSTRecord
                 .equals( other.field_3_strings ) );
     }
 
-    /**
-     * validate SID
-     *
-     * @param id the alleged SID
-     *
-     * @exception RecordFormatException if validation fails
-     */
-
-    protected void validateSid( final short id )
-            throws RecordFormatException
-    {
-        if ( id != sid )
-        {
-            throw new RecordFormatException( "NOT An SST RECORD" );
-        }
-    }
-
     /**
      * Fill the fields from the data
      * <P>
index 96ff53af24d7af959cd79b132f9fd4338ec42b25..2304639dbddb44b6f29b82a591be414a873e59b6 100644 (file)
@@ -50,14 +50,6 @@ public class SaveRecalcRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A Save Recalc RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_recalc = in.readShort();
index f84316362cbc45091552fd818e119ebb6e4d1fc4..9140f342b8700da1e997bd99506d528aa3072645 100644 (file)
@@ -52,14 +52,6 @@ public class ScenarioProtectRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A SCENARIOPROTECT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_protect = in.readShort();
index e1849a7d75c0514a1d6fb83e9768228601058873..c83b3e4da6419ffcc4d234ea142c01515e98d31a 100644 (file)
@@ -59,12 +59,6 @@ public final class SelectionRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id) {
-        if (id != sid) {
-            throw new RecordFormatException("NOT A valid Selection RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in) {
         field_1_pane            = in.readByte();
         field_2_row_active_cell = in.readUShort();
index 076687d69f514a02319cb0ce17ab598b4a25e55a..ce1fa3d8382fb1cdc646071c61e067f33c5a022d 100644 (file)
@@ -54,19 +54,6 @@ public class SeriesChartGroupIndexRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesChartGroupIndex record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_chartGroupIndex        = in.readShort();
index dcc2ebe4a3bef5372c89fbe28d5237715d51afd3..3f3f88803ed11bf60363aa3b03b7e4e91b510f59 100644 (file)
@@ -54,19 +54,6 @@ public class SeriesIndexRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesIndex record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_index                  = in.readShort();
index e18ae4be83023eb1a54c524ac3d78d4d8bb9c772..8ee1690e698f85600fcea3977de0ffc3b6fd436f 100644 (file)
@@ -58,19 +58,6 @@ public final class SeriesLabelsRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesLabels record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_formatFlags            = in.readShort();
index 0825e68e6cdb246f8a3c0d27e9a67d4180f420dd..d47f6b82bd09f031023db80272642bf935aed4b0 100644 (file)
@@ -54,19 +54,6 @@ public class SeriesListRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesList record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_seriesNumbers          = in.readShortArray();
index c13ff35e7c9223f813e4bcb4b79d30b34222f837..95fbd79b5a5004d8c2a13de6ce4e47253d2e5fc3 100644 (file)
@@ -71,19 +71,6 @@ public class SeriesRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Series record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_categoryDataType       = in.readShort();
index 66c26b32148285cb15bb3e6ae958263fdac12ad1..b451b57c796028bf6582a551a761ac9e952a3d40 100644 (file)
@@ -57,19 +57,6 @@ public class SeriesTextRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesText record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_id                     = in.readShort();
index 96e882e7c5a4a78aa2845714348246263755ffa7..94877c6027cd98b8bbaacbaa556869af8e5ae105 100644 (file)
@@ -54,19 +54,6 @@ public class SeriesToChartGroupRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SeriesToChartGroup record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_chartGroupIndex        = in.readShort();
index 16a73d0a81116b248b3c2cd7531441de6d5a5e3a..fe4e8b5829b27baccd79f1352cfe6d0bb10f7535 100644 (file)
@@ -45,12 +45,6 @@ public abstract class SharedValueRecordBase extends Record {
                _range = new CellRangeAddress8Bit(in);
        }
 
-       protected final void validateSid(short id) {
-               if (id != getSid()) {
-                       throw new RecordFormatException("Not a valid SharedFormula");
-               }
-       }
-
        public final CellRangeAddress8Bit getRange() {
                return _range;
        }
index c919278b4286b5c545bb463cb65cc0eaf0fff880..1cd68335377d4f0f451336339f370d32f76e0e1b 100644 (file)
@@ -62,19 +62,6 @@ public final class SheetPropertiesRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a SheetProperties record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_flags                  = in.readShort();
index d7eb11efcfa671262cbf5cafef896dd411799b0e..41154b618530c631abe5ab4ff04e3fdf031ed450 100644 (file)
@@ -46,21 +46,6 @@ public class StringRecord extends Record {
         super(in);
     }
 
-
-    /**
-     * Throw a runtime exception in the event of a
-     * record passed with a differing ID.
-     *
-     * @param id alleged id for this record
-     */
-    protected void validateSid( short id )
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a valid StringRecord");
-        }
-    }
-
     /**
      * @param in the RecordInputstream to read the record from
      */
index c6591f550de4e83762391b8ead794a61a1a69408..3dc095431482b59897d94baa3b3d81c14a6042d2 100644 (file)
@@ -64,14 +64,6 @@ public final class StyleRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A STYLE RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_xf_index = in.readShort();
index b4e46c6fdc8356024ea2499b94e8d2445d515afe..66fe24451d27654b85a3c67adeb26ee6214e0f3c 100644 (file)
@@ -77,12 +77,6 @@ public final class SupBookRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id) {
-        if (id != sid) {
-            throw new RecordFormatException("NOT An ExternSheet RECORD");
-        }
-    }
-
     public boolean isExternalReferences() {
         return field_3_sheet_names != null;
     }
index 7e924c33730c18b48698c4d127d62e4303112302..5e292c45f672d810e30f9f2c33c14a3d3d45d082 100644 (file)
@@ -50,14 +50,6 @@ public class TabIdRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A TABID RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_tabids = new short[ in.remaining() / 2 ];
index 2d649247b5fc9777b582bfa8a0faaecb28db7c21..e8df518c97572d8de7872eb2b486606552d54ebb 100644 (file)
@@ -81,19 +81,6 @@ public class TextObjectBaseRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a TextObjectBase record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_options                = in.readShort();
index 0840fe19324c275f91f7d8ac5f20bd5ffabbf1dd..7ef94f27a94922593a2009f0c87fd6789f6f0545 100644 (file)
@@ -105,19 +105,6 @@ public final class TextRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Text record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_horizontalAlignment    = in.readByte();
index 1b950e3ed428c02eea6e3627efce6de933dbcd1b..e3230d1dca081fd6527694955e28f059b0af179f 100644 (file)
@@ -68,19 +68,6 @@ public final class TickRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Tick record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
 
index 5c507a211ba7cbb4b6a6e3a939fcfc0a9d8178de..78860616efba4158f9fd9783610ba574b54d2af4 100644 (file)
@@ -40,19 +40,6 @@ public class TopMarginRecord extends Record implements Margin
     public TopMarginRecord( RecordInputStream in )
     {        super( in );    }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid( short id )
-    {
-        if ( id != sid )
-        {
-            throw new RecordFormatException( "Not a TopMargin record" );
-        }
-    }
-
     /**
      * @param in the RecordInputstream to read the record from
      */
@@ -102,4 +89,4 @@ public class TopMarginRecord extends Record implements Margin
         rec.field_1_margin = this.field_1_margin;
         return rec;
     }
-}  // END OF CLASS
+}  // END OF CLASS
\ No newline at end of file
index a67b0b5af4adb9b2eed6868bd0ef87778869b7b1..c4ca369f6b3cac9d0f00a533a8e66868c90dc107 100644 (file)
@@ -48,12 +48,6 @@ public class UncalcedRecord extends Record
                return sid;
        }
 
-       protected void validateSid(short id) {
-               if (id != sid) {
-                       throw new RecordFormatException("NOT AN UNCALCED RECORD");
-               }
-       }
-
        protected void fillFields(RecordInputStream in) {
                short unused = in.readShort();
        }
index 9919d52c3d5ee83c79c03a07101f97b314617eb5..3cf35accd12a8f26be5968fd9d224c126332976a 100644 (file)
@@ -111,8 +111,7 @@ public class UnicodeString
 
     public UnicodeString(RecordInputStream in)
     {
-      validateSid(in.getSid());
-      fillFields(in);
+      fillFields(in); // TODO - inline
     }
 
 
@@ -188,16 +187,6 @@ public class UnicodeString
         return true;
     }
 
-    /**
-     * NO OP
-     */
-
-    protected void validateSid(short id)
-    {
-
-        // included only for interface compliance
-    }
-
     /**
      * @param in the RecordInputstream to read the record from
      */
index a427a6c73950a12ae565a3d3163fc4c0713d8fee..84464376f8e37d93e61f6019ca335b44c34113b6 100644 (file)
@@ -53,19 +53,6 @@ public class UnitsRecord
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a Units record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_units                  = in.readShort();
index 851dbfbf55d339ac3eb8e72921c899f1ec633294..6f78f6ff5b2d87fba9e76d4bbdf90f6f316912cc 100644 (file)
@@ -91,13 +91,6 @@ public final class UnknownRecord extends Record {
                return 4 + _rawData.length;
        }
 
-       /**
-        * NO OP!
-        */
-       protected void validateSid(short id) {
-               // if we had a valid sid we wouldn't be using the "Unknown Record" record now would we?
-       }
-
        /**
         * print a sort of string representation ([UNKNOWN RECORD] id = x [/UNKNOWN RECORD])
         */
index 107792eb3e3940c9143346a4af6ea94ee21656cc..9b2e25e527c1e4462717aced60b3bb9d0922e9f2 100644 (file)
@@ -52,14 +52,6 @@ public class UseSelFSRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A UseSelFS RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_flag = in.readShort();
index e221b35f1c4edae9796f15cdf4916a17740c0b81..5df785caa3583e1342f031286e3cd08501475b27 100644 (file)
@@ -50,14 +50,6 @@ public class VCenterRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A VCenter RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_vcenter = in.readShort();
index 6c94c5c54cca35191e05792bbbdc90a71af2f8e2..c7c07cfe65733f8dd6f42fcaa0d0190c21057758 100644 (file)
@@ -67,19 +67,6 @@ public final class ValueRangeRecord extends Record {
     
     }
 
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("Not a ValueRange record");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_minimumAxisValue       = in.readDouble();
index fccb7ccdaac0271ccf58fbe36266c228d915bf2e..3dc5348f971c83ec16dfe3fa22c1d5dc013541d1 100644 (file)
@@ -43,13 +43,6 @@ public final class VerticalPageBreakRecord extends PageBreakRecord {
                super(in);
        }
 
-       protected void validateSid(short id) {
-               if (id != getSid()) {
-                       throw new RecordFormatException(
-                                       "NOT A HorizontalPageBreak or VerticalPageBreak RECORD!! " + id);
-               }
-       }
-
        public short getSid() {
                return sid;
        }
index 480b7f240e03f762730ae7448d3acad125dafcf7..9a4f3dd2095011523a28051ebd01fb8a8f7d4265 100644 (file)
@@ -81,14 +81,6 @@ public class WSBoolRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A WSBoolRECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
        byte data[] = in.readRemainder();
index 4c836f2ee83e731d15ba44c6b2d1780cc3826fbb..91f9cbd6479a685e303719a9673acd23c39849bb 100644 (file)
@@ -76,14 +76,6 @@ public class WindowOneRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A WINDOW1 RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_h_hold            = in.readShort();
index 9a5bc45dcee8faf916b4c2b2980a6fd2d9c2fe51..7f7b423363d2be35611cd26cc552ec33a8b4e860 100644 (file)
@@ -49,14 +49,6 @@ public class WindowProtectRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A WINDOWPROTECT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         field_1_protect = in.readShort();
index 6e60ef41a6974e0898ba08d41f24ad3a36f624c9..012a9e22ee743d3b3f3de809c5a4e25e65fb910e 100644 (file)
@@ -71,14 +71,6 @@ public final class WindowTwoRecord extends Record {
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A valid WindowTwo RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
       int size = in.remaining();
index af5f06e04f91a20eb39632bc4acdd6da27a65f3b..a01953a50105f4e17138324b1e1ab3bbcf4597f4 100644 (file)
@@ -52,14 +52,6 @@ public class WriteAccessRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A WRITEACCESS RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
         byte[] data = in.readRemainder();
index 9b3daf2a161e6c9519c9a926021a2c6610d4cbf6..5cef19d6168b389a54a9f977a6f9b31b876417ff 100644 (file)
@@ -48,14 +48,6 @@ public class WriteProtectRecord
         super(in);
     }
 
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new RecordFormatException("NOT A WRITEPROTECT RECORD");
-        }
-    }
-
     protected void fillFields(RecordInputStream in)
     {
     }
index 7d543c451f4d51c9c0c6bb31026b913783c10e66..de834be95eed8fbc06908d2fa7ac0495b24da110 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAreaFormatRecord
-        extends TestCase
-{
+public final class TestAreaFormatRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0x00,    // forecolor
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,    // backcolor
@@ -44,14 +39,7 @@ public class TestAreaFormatRecord
 
     };
 
-    public TestAreaFormatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         AreaFormatRecord record = new AreaFormatRecord(new TestcaseRecordInputStream((short)0x100a, (short)data.length, data));
         assertEquals( 0xFFFFFF, record.getForegroundColor());
@@ -65,8 +53,6 @@ public class TestAreaFormatRecord
 
 
         assertEquals( 20, record.getRecordSize() );
-
-        record.validateSid((short)0x100a);
     }
 
     public void testStore()
index 23b50a5ffeb435e0b27ccfe9447ba8fb17c1fd7d..2131e7319284e173e535e9c069e6b4d4d99ccf9d 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,21 +28,12 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAreaRecord
-        extends TestCase
-{
+public final class TestAreaRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x02,(byte)0x00       // format flags
     };
 
-    public TestAreaRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         AreaRecord record = new AreaRecord(new TestcaseRecordInputStream((short)0x101A, (short)data.length, data));
         assertEquals( 2, record.getFormatFlags());
@@ -55,8 +43,6 @@ public class TestAreaRecord
 
 
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x101A);
     }
 
     public void testStore()
index 5340e20d98c394b4c4a6f133175c037f1397e556..2146a31cfb58cb23558d3f7eee80ebc6221a986b 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,28 +28,16 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAxisLineFormatRecord
-        extends TestCase
-{
+public final class TestAxisLineFormatRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x01,(byte)0x00
     };
 
-    public TestAxisLineFormatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         AxisLineFormatRecord record = new AxisLineFormatRecord(new TestcaseRecordInputStream((short)0x1021, (short)data.length, data));
         assertEquals( AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE, record.getAxisType());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1021);
     }
 
     public void testStore()
index 498f896a7610c33327faf4e2f68c252955730eb1..4d88e18a69552d4e62c3b6ac98783e9f5d0e4551 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver(acoliver at apache.org)
  */
-public class TestAxisOptionsRecord
-        extends TestCase
-{
+public final class TestAxisOptionsRecord extends TestCase {
     byte[] data = new byte[] {        
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x01,
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x01,(byte)0x00,
@@ -41,14 +36,7 @@ public class TestAxisOptionsRecord
         (byte)0x00,(byte)0xEF,(byte)0x00
     };
 
-    public TestAxisOptionsRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         AxisOptionsRecord record = new AxisOptionsRecord(new TestcaseRecordInputStream((short)0x1062, (short)data.length, data));
         assertEquals( 0, record.getMinimumCategory());
         assertEquals( 0, record.getMaximumCategory());
@@ -68,10 +56,7 @@ public class TestAxisOptionsRecord
         assertEquals( true, record.isDefaultCross() );
         assertEquals( true, record.isDefaultDateSettings() );
 
-
         assertEquals( 22, record.getRecordSize() );
-
-        record.validateSid((short)0x1062);
     }
 
     public void testStore()
index 0d5cdb1719be8ef179e928618a0c3f02e1a9b894..a9787a2e8b4584f87110f266ea14b76bdacb3efe 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,9 +27,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAxisParentRecord
-        extends TestCase
-{
+public final class TestAxisParentRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,                                   // axis type
         (byte)0x1D,(byte)0x02,(byte)0x00,(byte)0x00,             // x
@@ -41,14 +36,7 @@ public class TestAxisParentRecord
         (byte)0x56,(byte)0x0B,(byte)0x00,(byte)0x00              // height
     };
 
-    public TestAxisParentRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         AxisParentRecord record = new AxisParentRecord(new TestcaseRecordInputStream((short)0x1041, (short)data.length, data));
         assertEquals( AxisParentRecord.AXIS_TYPE_MAIN, record.getAxisType());
         assertEquals( 0x021d, record.getX());
@@ -56,10 +44,7 @@ public class TestAxisParentRecord
         assertEquals( 0x0b31, record.getWidth());
         assertEquals( 0x0b56, record.getHeight());
 
-
         assertEquals( 22, record.getRecordSize() );
-
-        record.validateSid((short)0x1041);
     }
 
     public void testStore()
index 76c53bd164952b0061f2a3575238801252e1055e..719e930d2545e0ec35d94b29b8f925fc6043bc64 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,26 +28,16 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAxisRecord
-        extends TestCase
-{
+public final class TestAxisRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,                               // type
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00
-
     };
 
-    public TestAxisRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         AxisRecord record = new AxisRecord(new TestcaseRecordInputStream((short)0x101d, (short)data.length, data));
         assertEquals( AxisRecord.AXIS_TYPE_CATEGORY_OR_X_AXIS, record.getAxisType());
@@ -59,10 +46,7 @@ public class TestAxisRecord
         assertEquals( 0, record.getReserved3());
         assertEquals( 0, record.getReserved4());
 
-
         assertEquals( 4 + 18, record.getRecordSize() );
-
-        record.validateSid((short)0x101d);
     }
 
     public void testStore()
index 24516e095aaea51fc39c055f8023260ab4db7664..98812ddd6f8f8abf22f890a7790b03182559dd63 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,28 +28,16 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestAxisUsedRecord
-        extends TestCase
-{
+public final class TestAxisUsedRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x01,(byte)0x00,
     };
 
-    public TestAxisUsedRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         AxisUsedRecord record = new AxisUsedRecord(new TestcaseRecordInputStream((short)0x1046, (short)data.length, data));
         assertEquals( 1, record.getNumAxis());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1046);
     }
 
     public void testStore()
index 99cf3678872b6136462a71c0e5456ce3eb5fd657..1da17aae926e97b5d5c9e2f9f26c905d95601b54 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,23 +28,14 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestBarRecord
-        extends TestCase
-{
+public final class TestBarRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,   // bar space
         (byte)0x96,(byte)0x00,   // category space
         (byte)0x00,(byte)0x00    // format flags
     };
 
-    public TestBarRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         BarRecord record = new BarRecord(new TestcaseRecordInputStream((short)0x1017, (short)data.length, data));
         assertEquals( 0, record.getBarSpace());
@@ -58,10 +46,7 @@ public class TestBarRecord
         assertEquals( false, record.isDisplayAsPercentage() );
         assertEquals( false, record.isShadow() );
 
-
         assertEquals( 10, record.getRecordSize() );
-
-        record.validateSid((short)0x1017);
     }
 
     public void testStore()
index d0baf9b95bf74bd8833410376988ba262a26818c..415b302e87508480fccc288150644f54af2265d1 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestCategorySeriesAxisRecord
-        extends TestCase
-{
+public final class TestCategorySeriesAxisRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x01,(byte)0x00,    // crossing point
         (byte)0x01,(byte)0x00,    // label frequency
@@ -41,14 +36,7 @@ public class TestCategorySeriesAxisRecord
         (byte)0x01,(byte)0x00     // options
     };
 
-    public TestCategorySeriesAxisRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         CategorySeriesAxisRecord record = new CategorySeriesAxisRecord(new TestcaseRecordInputStream((short)0x1020, (short)data.length, data));
         assertEquals( 1, record.getCrossingPoint());
@@ -59,10 +47,7 @@ public class TestCategorySeriesAxisRecord
         assertEquals( false, record.isCrossesFarRight() );
         assertEquals( false, record.isReversed() );
 
-
         assertEquals( 4 + 8, record.getRecordSize() );
-
-        record.validateSid((short)0x1020);
     }
 
     public void testStore()
index 16591a209bee67341c0349942efe7864180d833c..996fb1102b12d171aab12ff4685882ef255ff694 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestChartRecord
-        extends TestCase
-{
+public final class TestChartRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
@@ -41,14 +36,7 @@ public class TestChartRecord
         (byte)0xC8,(byte)0xCC,(byte)0xE5,(byte)0x00
     };
 
-    public TestChartRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         ChartRecord record = new ChartRecord(new TestcaseRecordInputStream((short)0x1002, (short)data.length, data));
         assertEquals( 0, record.getX());
@@ -56,10 +44,7 @@ public class TestChartRecord
         assertEquals( 30474216, record.getWidth());
         assertEquals( 15060168, record.getHeight());
 
-
         assertEquals( 20, record.getRecordSize() );
-
-        record.validateSid((short)0x1002);
     }
 
     public void testStore()
index 0f7ba7296927b889638f977bf447f50969d75ab4..e68b5026d85b640a79b304c5254e05cfb06f2c1c 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestCommonObjectDataSubRecord
-        extends TestCase
-{
+public final class TestCommonObjectDataSubRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x12,(byte)0x00,(byte)0x01,(byte)0x00,
         (byte)0x01,(byte)0x00,(byte)0x11,(byte)0x60,
@@ -42,16 +37,8 @@ public class TestCommonObjectDataSubRecord
         (byte)0x00,(byte)0x00,
     };
 
-    public TestCommonObjectDataSubRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         CommonObjectDataSubRecord record = new CommonObjectDataSubRecord(new TestcaseRecordInputStream((short)0x15, (short)data.length, data));
-        
 
         assertEquals( CommonObjectDataSubRecord.OBJECT_TYPE_LIST_BOX, record.getObjectType());
         assertEquals( (short)1, record.getObjectId());
@@ -64,8 +51,6 @@ public class TestCommonObjectDataSubRecord
         assertEquals( (int)218103808, record.getReserved2());
         assertEquals( (int)294, record.getReserved3());
         assertEquals( 22 , record.getRecordSize() );
-
-        record.validateSid((short)0x15);
     }
 
     public void testStore()
index 3cd7a0603043c086e10275b4ed62405852e2cec7..8efbe70ecbccf3b9a8663ac4c8a116943c73a3bb 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,21 +28,12 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestDatRecord
-        extends TestCase
-{
+public final class TestDatRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x0D,(byte)0x00   // options
     };
 
-    public TestDatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         DatRecord record = new DatRecord(new TestcaseRecordInputStream((short)0x1063, (short)data.length, data));
         assertEquals( 0xD, record.getOptions());
@@ -54,10 +42,7 @@ public class TestDatRecord
         assertEquals( true, record.isBorder() );
         assertEquals( true, record.isShowSeriesKey() );
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1063);
     }
 
     public void testStore()
index ff8111ced568156734c55dfa21b4cebb745c8172..8de2f24dac549b165402ae69fe1dcce9018b7473 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestDataFormatRecord
-        extends TestCase
-{
+public final class TestDataFormatRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0xFF,(byte)0xFF,      // point number
         (byte)0x00,(byte)0x00,      // series index
@@ -41,14 +36,7 @@ public class TestDataFormatRecord
         (byte)0x00,(byte)0x00       // format flags
     };
 
-    public TestDataFormatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         DataFormatRecord record = new DataFormatRecord(new TestcaseRecordInputStream((short)0x1006, (short)data.length, data));
         assertEquals( (short)0xFFFF, record.getPointNumber());
@@ -57,10 +45,7 @@ public class TestDataFormatRecord
         assertEquals( 0, record.getFormatFlags());
         assertEquals( false, record.isUseExcel4Colors() );
 
-
         assertEquals( 12, record.getRecordSize() );
-
-        record.validateSid((short)0x1006);
     }
 
     public void testStore()
index 61a3dd5926e99e987260153b0589187a004a0dd2..f96dca90bfdfe486e1e85adf440034bd5040ac33 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,29 +28,17 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestDefaultDataLabelTextPropertiesRecord
-        extends TestCase
-{
+public final class TestDefaultDataLabelTextPropertiesRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x02,(byte)0x00
     };
 
-    public TestDefaultDataLabelTextPropertiesRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         DefaultDataLabelTextPropertiesRecord record = new DefaultDataLabelTextPropertiesRecord(new TestcaseRecordInputStream((short)0x1024, (short)data.length, data));
         assertEquals( 2, record.getCategoryDataType());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1024);
     }
 
     public void testStore()
index 0e48fcb4cadcebf39b62232742e2abba6137cffb..d809392420fc0e70425e28375292e3d459da3294 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,28 +27,15 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestEndSubRecord
-        extends TestCase
-{
+public final class TestEndSubRecord extends TestCase {
     byte[] data = new byte[] {
        
     };
 
-    public TestEndSubRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         EndSubRecord record = new EndSubRecord(new TestcaseRecordInputStream((short)0x00, (short)data.length, data));
-        
-
 
         assertEquals( 4, record.getRecordSize() );
-
-        record.validateSid((short)0x00);
     }
 
     public void testStore()
index 5bbf05be77342b604d0afd1289239ff7c6208141..3faa69ed6a8d901024d01f9b2bcc51b1eb008d53 100644 (file)
@@ -36,14 +36,7 @@ public final class TestExtendedFormatRecord extends TestCase {
                0xC0-256, 0x20  // Fill Palette 20c0
     };
 
-    public TestExtendedFormatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         ExtendedFormatRecord record = new ExtendedFormatRecord(new TestcaseRecordInputStream((short)0xe0, (short)data.length, data));
         assertEquals(0, record.getFontIndex());
         assertEquals(0, record.getFormatIndex());
@@ -56,7 +49,6 @@ public final class TestExtendedFormatRecord extends TestCase {
         assertEquals(0x20c0, record.getFillPaletteOptions());
 
         assertEquals( 20 + 4, record.getRecordSize() );
-        record.validateSid((short)0xe0);
     }
 
     public void testStore()
index 7f59031d9e12ae17fbc46382fdc8056ffcd8541d..acd5a361ad454f211d77c8cdc84ced7c3b2735a7 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -29,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestFontBasisRecord
-        extends TestCase
-{
+public final class TestFontBasisRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x28,(byte)0x1A,   // x basis
         (byte)0x9C,(byte)0x0F,   // y basis
@@ -40,14 +37,7 @@ public class TestFontBasisRecord
         (byte)0x05,(byte)0x00    // index to font table
     };
 
-    public TestFontBasisRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         FontBasisRecord record = new FontBasisRecord(new TestcaseRecordInputStream((short)0x1060, (short)data.length, data));
         assertEquals( 0x1a28, record.getXBasis());
@@ -56,10 +46,7 @@ public class TestFontBasisRecord
         assertEquals( 0x00, record.getScale());
         assertEquals( 0x05, record.getIndexToFontTable());
 
-
         assertEquals( 14, record.getRecordSize() );
-
-        record.validateSid((short)0x1060);
     }
 
     public void testStore()
index 9509f2662b4f5baa52920d8731a1ba76bc590a0d..49cfe4d65019b256f4290c270efb3d2ab71af23e 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,29 +28,17 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestFontIndexRecord
-        extends TestCase
-{
+public final class TestFontIndexRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x05,(byte)0x00
     };
 
-    public TestFontIndexRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         FontIndexRecord record = new FontIndexRecord(new TestcaseRecordInputStream((short)0x1026, (short)data.length, data));
         assertEquals( 5, record.getFontIndex());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1026);
     }
 
     public void testStore()
index d5051e99150d101dcb88998edc892570734f9fb6..19449c2f56bbecf4de4909fabb18b19038b822eb 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -26,9 +25,7 @@ import junit.framework.TestCase;
  * class works correctly.  Test data taken directly from a real
  * Excel file.
  */
-public class TestFontRecord
-        extends TestCase
-{
+public final class TestFontRecord extends TestCase {
        byte[] header = new byte[] {
                0x31, 00, 0x1a, 00, // sid=31, 26 bytes long
        };
@@ -45,14 +42,7 @@ public class TestFontRecord
                0x00, 0x61, 0x00, 0x6C, 0x00
     };
 
-    public TestFontRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         FontRecord record = new FontRecord(new TestcaseRecordInputStream((short)0x31, (short)data.length, data));
         assertEquals( 0xc8, record.getFontHeight());
@@ -72,7 +62,6 @@ public class TestFontRecord
 
 
         assertEquals( 26 + 4, record.getRecordSize() );
-        record.validateSid((short)0x31);
     }
 
     public void testStore()
index 1ad27bdc30bd2b1b0f1853cc37ea6c2fe184c360..f35a04b48836df92a9e4bc3d5f15b9d90b727b30 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,22 +28,13 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestFrameRecord
-        extends TestCase
-{
+public final class TestFrameRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,      // border type
         (byte)0x02,(byte)0x00       // options
     };
 
-    public TestFrameRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         FrameRecord record = new FrameRecord(new TestcaseRecordInputStream((short)0x1032, (short)data.length, data));
         assertEquals( FrameRecord.BORDER_TYPE_REGULAR, record.getBorderType());
@@ -54,10 +42,7 @@ public class TestFrameRecord
         assertEquals( false, record.isAutoSize() );
         assertEquals( true, record.isAutoPosition() );
 
-
         assertEquals( 8, record.getRecordSize() );
-
-        record.validateSid((short)0x1032);
     }
 
     public void testStore()
index be4ab5731f27cb50623b3d710551ad10b1682dca..aaee94fe8215cd79505f539d8ad5562afa442c38 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,21 +28,12 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestLegendRecord
-        extends TestCase
-{
+public class TestLegendRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x76,(byte)0x0E,(byte)0x00,(byte)0x00,(byte)0x86,(byte)0x07,(byte)0x00,(byte)0x00,(byte)0x19,(byte)0x01,(byte)0x00,(byte)0x00,(byte)0x8B,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x03,(byte)0x01,(byte)0x1F,(byte)0x00
     };
 
-    public TestLegendRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         LegendRecord record = new LegendRecord(new TestcaseRecordInputStream((short)0x1015, (short)data.length, data));
         
 
@@ -71,8 +59,6 @@ public class TestLegendRecord
 
 
         assertEquals( 24, record.getRecordSize() );
-
-        record.validateSid((short)0x1015);
     }
 
     public void testStore()
index d54f8622059fb3a0fc5e27f5161057505c9fd9f0..f4e833dd7c11d6a8646fc5a0f9456fba1c482b87 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestLineFormatRecord
-        extends TestCase
-{
+public class TestLineFormatRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,    // colour
         (byte)0x00,(byte)0x00,                          // pattern
@@ -42,14 +37,7 @@ public class TestLineFormatRecord
         (byte)0x4D,(byte)0x00                           // index
     };
 
-    public TestLineFormatRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         LineFormatRecord record = new LineFormatRecord(new TestcaseRecordInputStream((short)0x1007, (short)data.length, data));
         assertEquals( 0, record.getLineColor());
         assertEquals( 0, record.getLinePattern());
@@ -59,10 +47,7 @@ public class TestLineFormatRecord
         assertEquals( false, record.isDrawTicks() );
         assertEquals( 0x4d, record.getColourPaletteIndex());
 
-
         assertEquals( 16, record.getRecordSize() );
-
-        record.validateSid((short)0x1007);
     }
 
     public void testStore()
index c7ef2acc1c8791344d049df6c6cdeb8781af63b7..641f1e8c54a50a1843187ca2c1fc43df17b49c1c 100644 (file)
@@ -171,9 +171,6 @@ recordid = 0x1051, size =8
         assertEquals(ptgExpected.toString(),  ptgActual.toString());
 
         assertEquals( data.length + 4, record.getRecordSize() );
-
-        record.validateSid((short)0x1051);
-
     }
 
     public void testStore() {
index 2f967b66e65729c23d1670f44160b762993e8124..063f34e0c7155f32292ffd2eb5446aca7b62e73b 100644 (file)
@@ -39,19 +39,11 @@ public class TestNoteRecord
         0x6E, 0x64, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x00
     };
 
-    public TestNoteRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testRead()
-            throws Exception
-    {
+    public void testRead() {
 
         NoteRecord record = new NoteRecord(new TestcaseRecordInputStream(NoteRecord.sid, (short)data.length, data));
 
         assertEquals(NoteRecord.sid, record.getSid());
-        record.validateSid(NoteRecord.sid);
         assertEquals(6, record.getRow());
         assertEquals(1, record.getColumn());
         assertEquals(NoteRecord.NOTE_VISIBLE, record.getFlags());
@@ -60,11 +52,9 @@ public class TestNoteRecord
 
     }
 
-    public void testWrite()
-    {
+    public void testWrite() {
         NoteRecord record = new NoteRecord();
         assertEquals(NoteRecord.sid, record.getSid());
-        record.validateSid(NoteRecord.sid);
         
         record.setRow((short)6);
         record.setColumn((short)1);
index d6b5a64766c3b71461e18a469726616b55a5db2b..014a5be2baec66f14f409155ff2b25a068309e48 100644 (file)
@@ -14,6 +14,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
+
 package org.apache.poi.hssf.record;
 
 
@@ -28,37 +29,24 @@ import java.util.Arrays;
  *
  * @author Yegor Kozlov
  */
-public class TestNoteStructureSubRecord
-        extends TestCase
-{
+public final class TestNoteStructureSubRecord extends TestCase {
     private byte[] data = new byte[] {
         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (byte)0x80, 0x00, 0x00, 0x00,
         0x00, 0x00, (byte)0xBF, 0x00, 0x00, 0x00, 0x00, 0x00, (byte)0x81, 0x01,
         (byte)0xCC, (byte)0xEC
     };
 
-    public TestNoteStructureSubRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testRead()
-            throws Exception
-    {
+    public void testRead() {
 
         NoteStructureSubRecord record = new NoteStructureSubRecord(new TestcaseRecordInputStream(NoteStructureSubRecord.sid, (short)data.length, data));
 
         assertEquals(NoteStructureSubRecord.sid, record.getSid());
-        record.validateSid(NoteStructureSubRecord.sid);
         assertEquals(data.length + 4, record.getRecordSize());
-
     }
 
-    public void testWrite()
-    {
+    public void testWrite() {
         NoteStructureSubRecord record = new NoteStructureSubRecord();
         assertEquals(NoteStructureSubRecord.sid, record.getSid());
-        record.validateSid(NoteStructureSubRecord.sid);
         assertEquals(data.length + 4, record.getRecordSize());
 
         byte [] ser = record.serialize();
index e891a184131e2e6f31b4c74124e8ed4df7df9dfc..1ee74f2cc70b49dba0506ba0d38cfc828fb70719 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,29 +28,17 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestNumberFormatIndexRecord
-        extends TestCase
-{
+public final class TestNumberFormatIndexRecord extends TestCase {
     byte[] data = new byte[] {
         0x05,0x00
     };
 
-    public TestNumberFormatIndexRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         NumberFormatIndexRecord record = new NumberFormatIndexRecord(new TestcaseRecordInputStream((short)0x104e, (short)data.length, data));
         assertEquals( 5, record.getFormatIndex());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x104e);
     }
 
     public void testStore()
index deaef1a040e0dfbee456e854bfad5a61d1b4d4e9..e9d536df0ac656f633713ad603729eb4a45bc170 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,46 +28,26 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestObjectLinkRecord
-        extends TestCase
-{
+public final class TestObjectLinkRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x03,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00
     };
 
-    public TestObjectLinkRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         ObjectLinkRecord record = new ObjectLinkRecord(new TestcaseRecordInputStream((short)0x1027, (short)data.length, data));
         
-
         assertEquals( (short)3, record.getAnchorId());
-
         assertEquals( (short)0x00, record.getLink1());
-
         assertEquals( (short)0x00, record.getLink2());
 
-
         assertEquals( 10, record.getRecordSize() );
-
-        record.validateSid((short)0x1027);
     }
 
-    public void testStore()
-    {
+    public void testStore() {
         ObjectLinkRecord record = new ObjectLinkRecord();
 
-
-
         record.setAnchorId( (short)3 );
-
         record.setLink1( (short)0x00 );
-
         record.setLink2( (short)0x00 );
 
 
index a0d0cf841f0511144880b0e7b433e3b2b71245ce..aa8004791302ad485b7008b9ff771c56214d4037 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,9 +27,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestPaneRecord
-        extends TestCase
-{
+public final class TestPaneRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x01, (byte)0x00,
         (byte)0x02, (byte)0x00,
@@ -41,16 +36,8 @@ public class TestPaneRecord
         (byte)0x02, (byte)0x00,
     };
 
-    public TestPaneRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         PaneRecord record = new PaneRecord(new TestcaseRecordInputStream((short)0x41, (short)data.length, data));
-        
 
         assertEquals( (short)1, record.getX());
         assertEquals( (short)2, record.getY());
@@ -59,8 +46,6 @@ public class TestPaneRecord
         assertEquals( PaneRecord.ACTIVE_PANE_LOWER_LEFT, record.getActivePane());
 
         assertEquals( 14, record.getRecordSize() );
-
-        record.validateSid((short)0x41);
     }
 
     public void testStore()
index 01848870d32bc2c149e55078c4844ef1bd056ba6..aa5941a49a64d29e291e0677cdebd72cdd07bf28 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,37 +28,20 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestPlotAreaRecord
-        extends TestCase
-{
+public final class TestPlotAreaRecord extends TestCase {
     byte[] data = new byte[] {
        
     };
 
-    public TestPlotAreaRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         PlotAreaRecord record = new PlotAreaRecord(new TestcaseRecordInputStream((short)0x1035, (short)data.length, data));
-        
-
 
         assertEquals( 4, record.getRecordSize() );
-
-        record.validateSid((short)0x1035);
     }
 
-    public void testStore()
-    {
+    public void testStore() {
         PlotAreaRecord record = new PlotAreaRecord();
 
-
-
-
         byte [] recordBytes = record.serialize();
         assertEquals(recordBytes.length - 4, data.length);
         for (int i = 0; i < data.length; i++)
index e01e5bca54ffbf5820040e6ddad2da64b3444d0a..2897d8c33252e47e7bf54f2684fb99f3dab50b32 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,31 +27,19 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestPlotGrowthRecord
-        extends TestCase
-{
+public final class TestPlotGrowthRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,(byte)0x01,(byte)0x00,    // horizontal
         (byte)0x00,(byte)0x00,(byte)0x01,(byte)0x00     // vertical
     };
 
-    public TestPlotGrowthRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         PlotGrowthRecord record = new PlotGrowthRecord(new TestcaseRecordInputStream((short)0x1064, (short)data.length, data));
         assertEquals( 65536, record.getHorizontalScale());
         assertEquals( 65536, record.getVerticalScale());
 
-
         assertEquals( 12, record.getRecordSize() );
-
-        record.validateSid((short)0x1064);
     }
 
     public void testStore()
index 9f2a579774d885a9cccd62b86fb28467493be5d6..9b98dab1f658231ab091685f4c606e94d0f60055 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,29 +28,17 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestSCLRecord
-        extends TestCase
-{
+public final class TestSCLRecord extends TestCase {
     byte[] data = new byte[] {
       (byte)0x3,(byte)0x0,(byte)0x4,(byte)0x0
     };
 
-    public TestSCLRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SCLRecord record = new SCLRecord(new TestcaseRecordInputStream((short)0xa0, (short)data.length, data));
         assertEquals( 3, record.getNumerator());
         assertEquals( 4, record.getDenominator());
 
-
         assertEquals( 8, record.getRecordSize() );
-
-        record.validateSid((short)0xa0);
     }
 
     public void testStore()
index ff541fa9d2d7c9cc2a9dcd1e4c50d6f107f2ba16..1f30f26ec0c8bf069d751e94f3d24b9980af55a4 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,29 +27,16 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestSeriesChartGroupIndexRecord
-        extends TestCase
-{
+public final class TestSeriesChartGroupIndexRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00
     };
 
-    public TestSeriesChartGroupIndexRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SeriesChartGroupIndexRecord record = new SeriesChartGroupIndexRecord(new TestcaseRecordInputStream((short)0x1045, (short)data.length, data));
         assertEquals( 0, record.getChartGroupIndex());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1045);
-
     }
 
     public void testStore()
index f671ed9b51f4b088684b9ff195099ca74f7a3394..b971128c998a16a8109a22c2627609d2a63bce5d 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,30 +28,16 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestSeriesIndexRecord
-        extends TestCase
-{
+public final class TestSeriesIndexRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x03,(byte)0x00
     };
 
-    public TestSeriesIndexRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SeriesIndexRecord record = new SeriesIndexRecord(new TestcaseRecordInputStream((short)0x1065, (short)data.length, data));
         
-
         assertEquals( (short)3, record.getIndex());
-
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1065);
     }
 
     public void testStore()
index 03550cd3d868b540b50c8ee28744f97c80046179..265583655da475341c90908b22f0a5bf42eccc2d 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,21 +28,12 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestSeriesLabelsRecord
-        extends TestCase
-{
+public final class TestSeriesLabelsRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x03,(byte)0x00
     };
 
-    public TestSeriesLabelsRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SeriesLabelsRecord record = new SeriesLabelsRecord(new TestcaseRecordInputStream((short)0x100c, (short)data.length, data));
         assertEquals( 3, record.getFormatFlags());
         assertEquals( true, record.isShowActual() );
@@ -57,8 +45,6 @@ public class TestSeriesLabelsRecord
 
 
         assertEquals( 2+4, record.getRecordSize() );
-
-        record.validateSid((short)0x100c);
     }
 
     public void testStore()
index 73be41bdc50b2b62bf700b7663079ce4803355c4..7e81f2928061e3e854406ebf4c109e3295aa331f 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,21 +28,12 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestSeriesListRecord
-        extends TestCase
-{
+public final class TestSeriesListRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x02,(byte)0x00,(byte)0x01,(byte)0x20,(byte)0xff,(byte)0xf0
     };
 
-    public TestSeriesListRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         SeriesListRecord record = new SeriesListRecord(new TestcaseRecordInputStream((short)0x1016, (short)data.length, data));
         assertEquals( (short)0x2001, record.getSeriesNumbers()[0]);
@@ -53,8 +41,6 @@ public class TestSeriesListRecord
         assertEquals( 2, record.getSeriesNumbers().length);
 
         assertEquals( 4 + 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1016);
     }
 
     public void testStore()
index a01f95966b5f824c8b808b79732bf6af41f06561..69232754fb8e857ce7d58cc7f697db01d7e592c7 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,9 +27,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestSeriesRecord
-        extends TestCase
-{
+public final class TestSeriesRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x01,(byte)0x00,      // category data type
         (byte)0x01,(byte)0x00,      // values data type
@@ -42,14 +37,7 @@ public class TestSeriesRecord
         (byte)0x00,(byte)0x00       // num bubble values
     };
 
-    public TestSeriesRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         SeriesRecord record = new SeriesRecord(new TestcaseRecordInputStream((short)0x1003, (short)data.length, data));
         assertEquals( SeriesRecord.CATEGORY_DATA_TYPE_NUMERIC, record.getCategoryDataType());
@@ -61,8 +49,6 @@ public class TestSeriesRecord
 
 
         assertEquals( 16, record.getRecordSize() );
-
-        record.validateSid((short)0x1003);
     }
 
     public void testStore()
index 5ad41870aad49dcdbe4298a94428c930975afdc1..08e4189afbc6f52ebdbf5051fcd204fddc720e87 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,50 +28,29 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestSeriesTextRecord
-        extends TestCase
-{
+public final class TestSeriesTextRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x00,(byte)0x00,(byte)0x0C,(byte)0x01,(byte)0x56,(byte)0x00,(byte)0x61,(byte)0x00,(byte)0x6C,(byte)0x00,(byte)0x75,(byte)0x00,(byte)0x65,(byte)0x00,(byte)0x20,(byte)0x00,(byte)0x4E,(byte)0x00,(byte)0x75,(byte)0x00,(byte)0x6D,(byte)0x00,(byte)0x62,(byte)0x00,(byte)0x65,(byte)0x00,(byte)0x72,(byte)0x00
     };
 
-    public TestSeriesTextRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SeriesTextRecord record = new SeriesTextRecord(new TestcaseRecordInputStream((short)0x100d, (short)data.length, data));
-        
 
         assertEquals( (short)0, record.getId());
-
         assertEquals( (byte)0x0C, record.getTextLength());
-
         assertEquals( (byte)0x01, record.getUndocumented());
-
         assertEquals( "Value Number", record.getText());
 
-
         assertEquals( 32, record.getRecordSize() );
-
-        record.validateSid((short)0x100d);
     }
 
     public void testStore()
     {
         SeriesTextRecord record = new SeriesTextRecord();
 
-
-
         record.setId( (short)0 );
-
         record.setTextLength( (byte)0x0C );
-
         record.setUndocumented( (byte)0x01 );
-
         record.setText( "Value Number" );
 
 
index 55e0b9467495efd35121dd32df058522500f5b65..4f20e0e696ab6ee16ec685662c7b4075fb1ae84b 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,28 +28,16 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver (acoliver at apache.org)
  */
-public class TestSeriesToChartGroupRecord
-        extends TestCase
-{
+public final class TestSeriesToChartGroupRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x0, (byte)0x0
     };
 
-    public TestSeriesToChartGroupRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SeriesToChartGroupRecord record = new SeriesToChartGroupRecord(new TestcaseRecordInputStream((short)0x1045, (short)data.length, data));
         assertEquals( 0x0, record.getChartGroupIndex());
 
-
         assertEquals( 0x6, record.getRecordSize() );
-
-        record.validateSid((short)0x1045);
     }
 
     public void testStore()
index 9fd260c6a407767923fcabb907dbc082e8cec749..932ff6eace66206e19131f8065e6c76b1cee093a 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,23 +28,14 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestSheetPropertiesRecord
-        extends TestCase
-{
+public final class TestSheetPropertiesRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x0A,(byte)0x00,
         (byte)0x00
         //,(byte)0x00       // not sure where that last byte comes from
     };
 
-    public TestSheetPropertiesRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         SheetPropertiesRecord record = new SheetPropertiesRecord(new TestcaseRecordInputStream((short)0x1044, (short)data.length, data));
         assertEquals( 10, record.getFlags());
         assertEquals( false, record.isChartTypeManuallyFormatted() );
@@ -59,8 +47,6 @@ public class TestSheetPropertiesRecord
 
 
         assertEquals( 7, record.getRecordSize() );
-
-        record.validateSid((short)0x1044);
     }
 
     public void testStore()
index b383c77e86f0f1053623da239a3754d1feb25d67..7f06c54ab3210b0d1ed397681d9e05678dce5592 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,9 +27,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestStringRecord
-        extends TestCase
-{
+public class TestStringRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x0B,(byte)0x00,   // length
         (byte)0x00,              // option
@@ -40,21 +35,12 @@ public class TestStringRecord
         (byte)0x46,(byte)0x61,(byte)0x68,(byte)0x72,(byte)0x7A,(byte)0x65,(byte)0x75,(byte)0x67,(byte)0x74,(byte)0x79,(byte)0x70
     };
 
-    public TestStringRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         StringRecord record = new StringRecord(new TestcaseRecordInputStream((short)0x207, (short)data.length, data));
         assertEquals( "Fahrzeugtyp", record.getString());
 
         assertEquals( 18, record.getRecordSize() );
-
-        record.validateSid((short)0x207);
     }
 
     public void testStore()
index e2a61dde79b32adc19fef584b5f2526903483adc..5506f6abdf67dde521d7ac864c7cf1f38e12cdd4 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -49,11 +46,6 @@ public final class TestSupBookRecord extends TestCase {
                 (byte)'S', (byte)'h', (byte)'e', (byte)'e', (byte)'t', (byte)'2', 
    };
 
-    public TestSupBookRecord(String name)
-    {
-        super(name);
-    }
-
     /**
      * tests that we can load the record
      */
@@ -64,8 +56,6 @@ public final class TestSupBookRecord extends TestCase {
         assertEquals( 0x4, record.getNumberOfSheets() );    //expected # of sheets
 
         assertEquals( 8, record.getRecordSize() );  //sid+size+data
-
-        record.validateSid((short)0x01AE);
     }
     /**
      * tests that we can load the record
@@ -83,8 +73,6 @@ public final class TestSupBookRecord extends TestCase {
         assertEquals(2, sheetNames.length);
         assertEquals("Sheet1", sheetNames[0].getString());
         assertEquals("Sheet2", sheetNames[1].getString());
-
-        record.validateSid((short)0x01AE);
     }
     
     /**
@@ -96,7 +84,6 @@ public final class TestSupBookRecord extends TestCase {
         assertTrue( record.isAddInFunctions() );             //expected flag
         assertEquals( 0x1, record.getNumberOfSheets() );    //expected # of sheets
         assertEquals( 8, record.getRecordSize() );  //sid+size+data
-        record.validateSid((short)0x01AE);
     }
    
     /**
@@ -119,10 +106,4 @@ public final class TestSupBookRecord extends TestCase {
 
         TestcaseRecordInputStream.confirmRecordEncoding(0x01AE, dataER, record.serialize());
     }    
-    
-    public static void main(String [] args) {
-        System.out
-        .println("Testing org.apache.poi.hssf.record.SupBookRecord");
-        junit.textui.TestRunner.run(TestSupBookRecord.class);
-    }
 }
index 0f562d1456bddfbb2ecd83472c4fab02362c9681..19c91bbacb014bd2fe4fc5903cab1da98d9291c2 100644 (file)
@@ -58,7 +58,6 @@ public final class TestTableRecord extends TestCase {
                assertEquals(0, record.getColInputCol());
 
                assertEquals( 16 + 4, record.getRecordSize() );
-               record.validateSid((short)0x236);
        }
 
     public void testStore()
index b7c6367cd253f4620675421098881b8a14e94572..b9d80dbad50fdf10c67b7aca345e4510f87ce4f6 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,23 +28,14 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestTextObjectBaseRecord
-        extends TestCase
-{
+public class TestTextObjectBaseRecord extends TestCase {
     byte[] data = new byte[] {
            0x44, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00,
         0x00, 0x00,
     };
 
-    public TestTextObjectBaseRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         TextObjectBaseRecord record = new TextObjectBaseRecord(new TestcaseRecordInputStream((short)0x1B6, (short)data.length, data));
 
 
@@ -68,8 +56,6 @@ public class TestTextObjectBaseRecord
 
 
         assertEquals( 22, record.getRecordSize() );
-
-        record.validateSid((short)0x1B6);
     }
 
     public void testStore()
index 8f16516ca97fb5a990333ab89a94840a3bded155..91458e9ddb720426c16c04063590d5468cd6f314 100644 (file)
@@ -1,4 +1,3 @@
-\r
 /* ====================================================================\r
    Licensed to the Apache Software Foundation (ASF) under one or more\r
    contributor license agreements.  See the NOTICE file distributed with\r
 \r
 package org.apache.poi.hssf.record;\r
 \r
-import junit.framework.*;\r
-\r
-import java.util.Arrays;\r
-import java.util.List;\r
 import java.io.ByteArrayInputStream;\r
+import java.util.Arrays;\r
+\r
+import junit.framework.TestCase;\r
 \r
 import org.apache.poi.hssf.usermodel.HSSFRichTextString;\r
 \r
@@ -32,7 +30,7 @@ import org.apache.poi.hssf.usermodel.HSSFRichTextString;
  *\r
  * @author Yegor Kozlov\r
  */\r
-public class TestTextObjectRecord extends TestCase {\r
+public final class TestTextObjectRecord extends TestCase {\r
 \r
     byte[] data = {(byte)0xB6, 0x01, 0x12, 0x00, 0x12, 0x02, 0x00, 0x00, 0x00, 0x00,\r
                    0x00, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,\r
@@ -42,17 +40,13 @@ public class TestTextObjectRecord extends TestCase {
                    0x00, 0x08, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\r
 \r
 \r
-    public void testRead()\r
-            throws Exception\r
-    {\r
-\r
+    public void testRead() {\r
 \r
         RecordInputStream is = new RecordInputStream(new ByteArrayInputStream(data));\r
         is.nextRecord();\r
         TextObjectRecord record = new TextObjectRecord(is);\r
 \r
         assertEquals(TextObjectRecord.sid, record.getSid());\r
-        record.validateSid(TextObjectRecord.sid);\r
         assertEquals(TextObjectRecord.HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED, record.getHorizontalTextAlignment());\r
         assertEquals(TextObjectRecord.VERTICAL_TEXT_ALIGNMENT_TOP, record.getVerticalTextAlignment());\r
         assertEquals(TextObjectRecord.TEXT_ORIENTATION_NONE, record.getTextOrientation());\r
index 72f2dea8a9661354bca8fd50efdff093b656ce3f..40e98dff93fe4f5cb43800707961a41432f08827 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -30,9 +27,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestTextRecord
-        extends TestCase
-{
+public class TestTextRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x02,                                          // horiz align
         (byte)0x02,                                          // vert align
@@ -48,14 +43,7 @@ public class TestTextRecord
         (byte)0x00,(byte)0x00                                // text rotation
     };
 
-    public TestTextRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         TextRecord record = new TextRecord(new TestcaseRecordInputStream((short)0x1025, (short)data.length, data));
         assertEquals( TextRecord.HORIZONTAL_ALIGNMENT_CENTER, record.getHorizontalAlignment());
@@ -87,9 +75,6 @@ public class TestTextRecord
 
 
         assertEquals( 36, record.getRecordSize() );
-
-        record.validateSid((short)0x1025);
-
     }
 
     public void testStore()
index e34feba4f7c5d2a29b40a3d84dfff8f5c9f68763..4f2d9efd360462a8eefd007e9b93abc4483cb8b1 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
 
  * @author Andrew C. Oliver(acoliver at apache.org)
  */
-public class TestTickRecord
-        extends TestCase
-{
+public final class TestTickRecord extends TestCase {
     byte[] data = new byte[] {
        (byte)0x02, (byte)0x00, (byte)0x03, (byte)0x01, 
         (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
@@ -44,14 +39,7 @@ public class TestTickRecord
        (byte)0x4D, (byte)0x00, (byte)0x00, (byte)0x00
     };
 
-    public TestTickRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
         TickRecord record = new TickRecord(new TestcaseRecordInputStream((short)0x101e, (short)data.length, data));
         assertEquals( (byte)2, record.getMajorTickType());
         assertEquals( (byte)0, record.getMinorTickType());
@@ -70,8 +58,6 @@ public class TestTickRecord
 
 
         assertEquals( 34, record.getRecordSize() );
-
-        record.validateSid((short)0x101e);
     }
 
     public void testStore()
index bcf08ea54d62c12a8cbe959861780a26676a7145..c43828af485e961c36a4f0f7fb08262aa51d64f1 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,29 +28,17 @@ import junit.framework.TestCase;
 
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestUnitsRecord
-        extends TestCase
-{
+public final class TestUnitsRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00, (byte)0x00
     };
 
-    public TestUnitsRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         UnitsRecord record = new UnitsRecord(new TestcaseRecordInputStream((short)0x1001, (short)data.length, data));
         assertEquals( 0, record.getUnits());
 
-
         assertEquals( 6, record.getRecordSize() );
-
-        record.validateSid((short)0x1001);
     }
 
     public void testStore()
index ad84b7fcf86f87c4637214409fbce266cefb6f17..b974bf9759b2fa645f3deedf86600dbd97cfb451 100644 (file)
@@ -1,4 +1,3 @@
-
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
@@ -15,8 +14,6 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
-        
-
 
 package org.apache.poi.hssf.record;
 
@@ -31,9 +28,7 @@ import junit.framework.TestCase;
  *
  * @author Glen Stampoultzis (glens at apache.org)
  */
-public class TestValueRangeRecord
-        extends TestCase
-{
+public final class TestValueRangeRecord extends TestCase {
     byte[] data = new byte[] {
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,     // min axis value
         (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,     // max axis value
@@ -43,14 +38,7 @@ public class TestValueRangeRecord
         (byte)0x1F,(byte)0x01                                    // options
     };
 
-    public TestValueRangeRecord(String name)
-    {
-        super(name);
-    }
-
-    public void testLoad()
-            throws Exception
-    {
+    public void testLoad() {
 
         ValueRangeRecord record = new ValueRangeRecord(new TestcaseRecordInputStream((short)0x101f, (short)data.length, data));
         assertEquals( 0.0, record.getMinimumAxisValue(), 0.001);
@@ -70,8 +58,6 @@ public class TestValueRangeRecord
         assertEquals( true, record.isReserved() );
 
         assertEquals( 42+4, record.getRecordSize() );
-
-        record.validateSid((short)0x101f);
     }
 
     public void testStore()