]> source.dussan.org Git - poi.git/commitdiff
Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations
authorJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 21:52:31 +0000 (21:52 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 21:52:31 +0000 (21:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765726 13f79535-47bb-0310-9956-ffa450edef68

156 files changed:
src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
src/examples/src/org/apache/poi/hpsf/examples/ReadCustomPropertySets.java
src/examples/src/org/apache/poi/hpsf/examples/ReadTitle.java
src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java
src/examples/src/org/apache/poi/hssf/eventusermodel/examples/XLS2CSVmra.java
src/examples/src/org/apache/poi/hssf/usermodel/examples/EventExample.java
src/examples/src/org/apache/poi/hssf/usermodel/examples/Outlines.java
src/examples/src/org/apache/poi/hssf/view/SVBorder.java
src/examples/src/org/apache/poi/hssf/view/SVFractionalFormat.java
src/examples/src/org/apache/poi/hssf/view/SVRowHeader.java
src/examples/src/org/apache/poi/hssf/view/SVSheetTable.java
src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java
src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java
src/examples/src/org/apache/poi/hssf/view/SVTableModel.java
src/examples/src/org/apache/poi/hssf/view/SViewer.java
src/examples/src/org/apache/poi/hssf/view/SViewerPanel.java
src/examples/src/org/apache/poi/hssf/view/brush/DoubleStroke.java
src/examples/src/org/apache/poi/poifs/poibrowser/DocumentDescriptorRenderer.java
src/examples/src/org/apache/poi/poifs/poibrowser/ExtendableTreeCellRenderer.java
src/examples/src/org/apache/poi/poifs/poibrowser/POIBrowser.java
src/examples/src/org/apache/poi/poifs/poibrowser/PropertySetDescriptorRenderer.java
src/examples/src/org/apache/poi/poifs/poibrowser/TreeReaderListener.java
src/examples/src/org/apache/poi/ss/examples/ToCSV.java
src/examples/src/org/apache/poi/ss/examples/formula/CalculateMortgage.java
src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java
src/examples/src/org/apache/poi/ss/examples/html/HSSFHtmlHelper.java
src/examples/src/org/apache/poi/ss/examples/html/XSSFHtmlHelper.java
src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java
src/examples/src/org/apache/poi/xssf/eventusermodel/examples/FromHowTo.java
src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntEvaluateCell.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntHandlerTask.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetDoubleCell.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetFormulaCell.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetStringCell.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java
src/excelant/testcases/org/apache/poi/ss/examples/formula/CalculateMortgageFunction.java
src/excelant/testcases/org/apache/poi/ss/excelant/BuildFileTest.java
src/excelant/testcases/org/apache/poi/ss/excelant/MockExcelAntWorkbookHandler.java
src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java
src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
src/integrationtest/org/apache/poi/stress/HPBFFileHandler.java
src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
src/integrationtest/org/apache/poi/stress/HSLFFileHandler.java
src/integrationtest/org/apache/poi/stress/HSMFFileHandler.java
src/integrationtest/org/apache/poi/stress/HWPFFileHandler.java
src/integrationtest/org/apache/poi/stress/OPCFileHandler.java
src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java
src/integrationtest/org/apache/poi/stress/XSSFFileHandler.java
src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
src/ooxml/testcases/org/apache/poi/poifs/crypt/AesZipFileZipEntrySource.java
src/ooxml/testcases/org/apache/poi/ss/format/TestCellFormatPart.java
src/ooxml/testcases/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTextParagraph.java
src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFConditionalFormatting.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFForkedEvaluator.java
src/ooxml/testcases/org/apache/poi/xwpf/model/TestXWPFDecorators.java
src/ooxml/testcases/org/apache/poi/xwpf/model/TestXWPFHeaderFooterPolicy.java
src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java
src/scratchpad/testcases/org/apache/poi/TestPOIDocumentScratchpad.java
src/scratchpad/testcases/org/apache/poi/hdgf/TestHDGFCore.java
src/scratchpad/testcases/org/apache/poi/hdgf/extractor/TestVisioExtractor.java
src/scratchpad/testcases/org/apache/poi/hdgf/streams/StreamTest.java
src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamBugs.java
src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamComplex.java
src/scratchpad/testcases/org/apache/poi/hmef/attribute/TestMAPIAttributes.java
src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordContainer.java
src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java
src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestAddingSlides.java
src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
src/scratchpad/testcases/org/apache/poi/hssf/converter/TestExcelConverterSuite.java
src/scratchpad/testcases/org/apache/poi/hwmf/TestHwmfParsing.java
src/scratchpad/testcases/org/apache/poi/hwpf/HWPFTestCase.java
src/scratchpad/testcases/org/apache/poi/hwpf/TestFieldsTables.java
src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java
src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFRangeParts.java
src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToConverterSuite.java
src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java
src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestDifferentRoutes.java
src/scratchpad/testcases/org/apache/poi/hwpf/extractor/TestWordExtractor.java
src/scratchpad/testcases/org/apache/poi/hwpf/model/TestCHPBinTable.java
src/scratchpad/testcases/org/apache/poi/hwpf/model/TestFontTable.java
src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPlexOfCps.java
src/scratchpad/testcases/org/apache/poi/hwpf/model/TestSectionTable.java
src/scratchpad/testcases/org/apache/poi/hwpf/model/TestStyleSheet.java
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestHeaderStories.java
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeDelete.java
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeInsertion.java
src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestRangeProperties.java
src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java
src/testcases/org/apache/poi/hpsf/basic/AllDataFilesTester.java
src/testcases/org/apache/poi/hpsf/basic/TestEmptyProperties.java
src/testcases/org/apache/poi/hpsf/basic/TestMetaDataIPI.java
src/testcases/org/apache/poi/hpsf/basic/TestUnicode.java
src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
src/testcases/org/apache/poi/hpsf/basic/Util.java
src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java
src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java
src/testcases/org/apache/poi/hssf/eventusermodel/TestFormatTrackingHSSFListener.java
src/testcases/org/apache/poi/hssf/eventusermodel/TestHSSFEventFactory.java
src/testcases/org/apache/poi/hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java
src/testcases/org/apache/poi/hssf/model/TestDrawingManager2.java
src/testcases/org/apache/poi/hssf/model/TestSheet.java
src/testcases/org/apache/poi/hssf/model/TestWorkbook.java
src/testcases/org/apache/poi/hssf/record/TestMergeCellsRecord.java
src/testcases/org/apache/poi/hssf/record/aggregates/TestColumnInfoRecordsAggregate.java
src/testcases/org/apache/poi/hssf/record/aggregates/TestValueRecordsAggregate.java
src/testcases/org/apache/poi/hssf/record/chart/TestChartTitleFormatRecord.java
src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java
src/testcases/org/apache/poi/hssf/usermodel/RecordInspector.java
src/testcases/org/apache/poi/hssf/usermodel/TestFontDetails.java
src/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFConditionalFormatting.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormat.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
src/testcases/org/apache/poi/hssf/usermodel/TestSanityChecker.java
src/testcases/org/apache/poi/hssf/usermodel/TestWorkbook.java
src/testcases/org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java
src/testcases/org/apache/poi/poifs/eventfilesystem/Listener.java
src/testcases/org/apache/poi/poifs/filesystem/ReaderWriter.java
src/testcases/org/apache/poi/poifs/filesystem/SlowInputStream.java
src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java
src/testcases/org/apache/poi/poifs/filesystem/TestEmptyDocument.java
src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java
src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java
src/testcases/org/apache/poi/poifs/filesystem/TestPropertySorter.java
src/testcases/org/apache/poi/poifs/property/LocalProperty.java
src/testcases/org/apache/poi/poifs/storage/LocalProperty.java
src/testcases/org/apache/poi/poifs/storage/LocalRawDataBlockList.java
src/testcases/org/apache/poi/poifs/storage/TestRawDataBlock.java
src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java
src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java
src/testcases/org/apache/poi/ss/formula/EvaluationListener.java
src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java
src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java
src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java
src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java
src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java
src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java
src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java
src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java
src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java
src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java
src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java
src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java
src/testcases/org/apache/poi/ss/formula/functions/TestDate.java
src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java
src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java
src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java
src/testcases/org/apache/poi/ss/util/BaseTestCellUtil.java
src/testcases/org/apache/poi/ss/util/cellwalk/TestCellWalk.java
src/testcases/org/apache/poi/util/LocalTestNode.java

index b09427c321335992bcca3d1024f866a8ca0557ea..43ea2e9d8dccd0a7467b3edbdd8c2eabb5a1a299 100644 (file)
@@ -311,6 +311,7 @@ public class CopyCompare
          * <p>The method is called by POI's eventing API for each file in the
          * origin POIFS.</p>
          */
+        @Override
         public void processPOIFSReaderEvent(final POIFSReaderEvent event) {
             /* The following declarations are shortcuts for accessing the
              * "event" object. */
index 222fff9fff3bcbe1e7461aed65ad2cd61ef9e62c..9649842114b0cef89fbc46df093a952eb9e802b7 100644 (file)
@@ -61,6 +61,7 @@ public class ReadCustomPropertySets
 
     static class MyPOIFSReaderListener implements POIFSReaderListener
     {
+        @Override
         public void processPOIFSReaderEvent(final POIFSReaderEvent event)
         {
             PropertySet ps = null;
index 201030ac2946cb432126f8b242c700001ed6235e..18054441004995512ac995448fd59f8a7174d6de 100644 (file)
@@ -54,6 +54,7 @@ public class ReadTitle
 
     static class MyPOIFSReaderListener implements POIFSReaderListener
     {
+        @Override
         public void processPOIFSReaderEvent(final POIFSReaderEvent event)
         {
             SummaryInformation si = null;
index 996aa9ff7b659fa35861781f56d8f28881d6e300..d08d778b0a1b9d6e08bd31677a45471991a8e203 100644 (file)
@@ -155,6 +155,7 @@ public class WriteAuthorAndTitle
          * <p>The method is called by POI's eventing API for each file in the
          * origin POIFS.</p>
          */
+        @Override
         public void processPOIFSReaderEvent(final POIFSReaderEvent event)
         {
             /* The following declarations are shortcuts for accessing the
index 8bab0a8e4ba85eddc2b980088420c4f247a88293..610d9617417922a77b8d34def6c9f73f738cfb46 100644 (file)
@@ -133,7 +133,8 @@ public class XLS2CSVmra implements HSSFListener {
         * Main HSSFListener method, processes events, and outputs the
         *  CSV as the file is processed.
         */
-       public void processRecord(Record record) {
+       @Override
+    public void processRecord(Record record) {
                int thisRow = -1;
                int thisColumn = -1;
                String thisStr = null;
index 7dd5ee3ca9d17d660e345250f1736dbbe6be9b7e..a324b3af4366296692ae67691d878dfe71cbdc04 100644 (file)
@@ -40,6 +40,7 @@ public class EventExample
      * This method listens for incoming records and handles them as required.
      * @param record    The record that was found while reading.
      */
+    @Override
     public void processRecord(Record record)
     {
         switch (record.getSid())
index 125d60d770ca2f993d302ba12f1a739e455af434..ad93f5e717a38a6d3a467f1e656985a15f471000 100644 (file)
@@ -61,6 +61,7 @@ public class Outlines implements Closeable {
         }
     }
     
+    @Override
     public void close() throws IOException {
         wb.close();
     }
index 97a46896634a7b05b1758bdc19cb5baeecdd95a1..273ed07fdbe54e559ac3ee0f61d54ea9e824c00c 100644 (file)
@@ -66,7 +66,8 @@ public class SVBorder extends AbstractBorder {
      this.selected = selected;
    }
 
-   public void paintBorder(Component c, Graphics g, int x, int y, int width,
+   @Override
+public void paintBorder(Component c, Graphics g, int x, int y, int width,
                            int height) {
       Color oldColor = g.getColor();
 
index cd6ff6ea726a487ba742ec421c781430427a6ad1..4884195880e2fcbad466d1fbadaba7a80062a5cf 100644 (file)
@@ -189,7 +189,8 @@ public class SVFractionalFormat extends Format {
     throw new RuntimeException("Unexpected Case");
   }
 
-  public StringBuffer format(Object obj,
+  @Override
+public StringBuffer format(Object obj,
                                       StringBuffer toAppendTo,
                                       FieldPosition pos) {
     if (obj instanceof Number) {
@@ -199,19 +200,22 @@ public class SVFractionalFormat extends Format {
     throw new IllegalArgumentException("Can only handle Numbers");
   }
 
-  public Object parseObject(String source,
+  @Override
+public Object parseObject(String source,
                                    ParsePosition status) {
     //JMH TBD
     return null;
   }
 
-  public Object parseObject(String source)
+  @Override
+public Object parseObject(String source)
                    throws ParseException {
     //JMH TBD
     return null;
   }
 
-  public Object clone() {
+  @Override
+public Object clone() {
     //JMH TBD
     return null;
   }
index c6db2f71a4003b76dc4e982d538068a973447e51..622f506430690efa9d68b7442abbfccce106cd0f 100644 (file)
@@ -44,9 +44,11 @@ public class SVRowHeader extends JList {
       this.sheet = sheet;
     }
 
+    @Override
     public int getSize() {
        return sheet.getLastRowNum() + 1;
     }
+    @Override
     public Object getElementAt(int index) {
       return Integer.toString(index+1);
     }
@@ -69,6 +71,7 @@ public class SVRowHeader extends JList {
       setFont(header.getFont());
     }
 
+    @Override
     public Component getListCellRendererComponent( JList list,
            Object value, int index, boolean isSelected, boolean cellHasFocus) {
       Dimension d = getPreferredSize();
index 8f95e03fbe3f06922718055902d165855f4ec359..c9e20908779ee4bcadd96eb0a26c6d2f1d02f68f 100644 (file)
@@ -114,6 +114,7 @@ public class SVSheetTable extends JTable {
   }
 
   private class HeaderCellRenderer implements TableCellRenderer {
+    @Override
     public Component getTableCellRendererComponent(JTable table, Object value,
         boolean isSelected, boolean hasFocus, int row, int column) {
 
@@ -128,6 +129,7 @@ public class SVSheetTable extends JTable {
       this.formulaDisplay = formulaDisplay;
     }
 
+    @Override
     public void valueChanged(ListSelectionEvent e) {
       int row = getSelectedRow();
       int col = getSelectedColumn();
@@ -187,7 +189,8 @@ public class SVSheetTable extends JTable {
     }
 
     addHierarchyListener(new HierarchyListener() {
-      public void hierarchyChanged(HierarchyEvent e) {
+      @Override
+    public void hierarchyChanged(HierarchyEvent e) {
         if ((e.getChangeFlags() & HierarchyEvent.PARENT_CHANGED) != 0) {
           Container changedParent = e.getChangedParent();
           if (changedParent instanceof JViewport) {
index 6c1552e54fe1b2408a731d8441671596616cca8e..3c58d5346b1f957411749207360e1e1a0b34dab8 100644 (file)
@@ -66,7 +66,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
    *
    * @return    The cellEditable value
    */
-  public boolean isCellEditable(java.util.EventObject e) {
+  @Override
+public boolean isCellEditable(java.util.EventObject e) {
     if (e instanceof MouseEvent) {
       return ((MouseEvent) e).getClickCount() >= 2;
     }
@@ -74,7 +75,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
   }
 
 
-  public boolean shouldSelectCell(EventObject anEvent) {
+  @Override
+public boolean shouldSelectCell(EventObject anEvent) {
     return true;
   }
 
@@ -85,20 +87,23 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
   }
 
 
-  public boolean stopCellEditing() {
+  @Override
+public boolean stopCellEditing() {
     System.out.println("Stop Cell Editing");
     fireEditingStopped();
     return true;
   }
 
 
-  public void cancelCellEditing() {
+  @Override
+public void cancelCellEditing() {
     System.out.println("Cancel Cell Editing");
     fireEditingCanceled();
   }
 
 
-  public void actionPerformed(ActionEvent e) {
+  @Override
+public void actionPerformed(ActionEvent e) {
     System.out.println("Action performed");
     stopCellEditing();
   }
@@ -109,7 +114,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
    *
    * @return    The cellEditorValue value
    */
-  public Object getCellEditorValue() {
+  @Override
+public Object getCellEditorValue() {
     System.out.println("GetCellEditorValue");
     //JMH Look at when this method is called. Should it return a HSSFCell?
     return editor.getText();
@@ -121,7 +127,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
    *
    * @return             The tableCellEditorComponent value
    */
-  public Component getTableCellEditorComponent(JTable table, Object value,
+  @Override
+public Component getTableCellEditorComponent(JTable table, Object value,
       boolean isSelected,
       int row,
       int column) {
index 8a59b8306fdba2a12fac3dbcda6c3df894739099..1448c5363ced08be0d57046b3f5ed7679b510d5b 100644 (file)
@@ -137,6 +137,7 @@ public class SVTableCellRenderer extends JLabel
         this.wb = wb;
     }
 
+    @Override
     public Component getTableCellRendererComponent(JTable table, Object value,
                           boolean isSelected, boolean hasFocus, int row, int column) {
        boolean isBorderSet = false;
@@ -249,14 +250,19 @@ public class SVTableCellRenderer extends JLabel
        return this;
     }
 
+    @Override
     public void validate() {}
 
+    @Override
     public void revalidate() {}
 
+    @Override
     public void repaint(long tm, int x, int y, int width, int height) {}
 
+    @Override
     public void repaint(Rectangle r) { }
 
+    @Override
     protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
        // Strings get interned...
        if (propertyName=="text") {
@@ -264,6 +270,7 @@ public class SVTableCellRenderer extends JLabel
        }
     }
 
+    @Override
     public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { }
 
     /**
index 5868a175df41d6dd86fd92ceaf143671868a828f..25ac83fc50cad1e2dbcaa3bd908b8547636390ea 100644 (file)
@@ -55,10 +55,12 @@ public class SVTableModel extends AbstractTableModel {
   }
 
 
-  public int getColumnCount() {
+  @Override
+public int getColumnCount() {
     return this.maxcol+1;
   }
-  public Object getValueAt(int row, int col) {
+  @Override
+public Object getValueAt(int row, int col) {
     HSSFRow r = st.getRow(row);
     HSSFCell c = null;
     if (r != null) {
@@ -66,19 +68,23 @@ public class SVTableModel extends AbstractTableModel {
     }
     return c;
   }
-  public int getRowCount() {
+  @Override
+public int getRowCount() {
     return st.getLastRowNum() + 1;
   }
 
-  public Class<?> getColumnClass(int c) {
+  @Override
+public Class<?> getColumnClass(int c) {
        return HSSFCell.class;
   }
 
-  public boolean isCellEditable(int rowIndex, int columnIndex) {
+  @Override
+public boolean isCellEditable(int rowIndex, int columnIndex) {
     return true;
   }
 
-  public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
+  @Override
+public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
     if (aValue != null)
       System.out.println("SVTableModel.setValueAt. value type = "+aValue.getClass().getName());
     else System.out.println("SVTableModel.setValueAt. value type = null");
index de2cfb1f6de3fcf041e3239a1ec00feaa7b5a8ca..a323992756dc0fad40c791583fa86dd66c835eae 100644 (file)
@@ -54,7 +54,8 @@ public class SViewer extends JApplet {
   }
 
   /**Initialize the applet*/
-  public void init() {
+  @Override
+public void init() {
     try {
       jbInit();
     }
@@ -104,20 +105,25 @@ public class SViewer extends JApplet {
   }
 
   /**Start the applet*/
-  public void start() {
+  @Override
+public void start() {
   }
   /**Stop the applet*/
-  public void stop() {
+  @Override
+public void stop() {
   }
   /**Destroy the applet*/
-  public void destroy() {
+  @Override
+public void destroy() {
   }
   /**Get Applet information*/
-  public String getAppletInfo() {
+  @Override
+public String getAppletInfo() {
     return "Applet Information";
   }
   /**Get parameter info*/
-  public String[][] getParameterInfo() {
+  @Override
+public String[][] getParameterInfo() {
     return null;
   }
 
@@ -149,13 +155,15 @@ public class SViewer extends JApplet {
     applet.filename = args[0];
     Frame frame;
     frame = new Frame() {
-      protected void processWindowEvent(WindowEvent e) {
+      @Override
+    protected void processWindowEvent(WindowEvent e) {
         super.processWindowEvent(e);
         if (e.getID() == WindowEvent.WINDOW_CLOSING) {
           System.exit(0);
         }
       }
-      public synchronized void setTitle(String title) {
+      @Override
+    public synchronized void setTitle(String title) {
         super.setTitle(title);
         enableEvents(AWTEvent.WINDOW_EVENT_MASK);
       }
index 5fe596220a7d74dfaeb351b59cb06b6478fa13d6..bf1ba4ab7f0751bac9a051394bf9b124fadb1930 100644 (file)
@@ -129,7 +129,8 @@ public class SViewerPanel extends JPanel {
     return scroll;
   }
 
-  public void paint(Graphics g) {
+  @Override
+public void paint(Graphics g) {
     //JMH I am only overriding this to get a picture of the time taken to paint
     long start = System.currentTimeMillis();
     super.paint(g);
@@ -180,19 +181,24 @@ public class SViewerPanel extends JPanel {
       }
     }
 
+    @Override
     public void mouseClicked(MouseEvent e) {
       checkPopup(e);
     }
 
+    @Override
     public void mousePressed(MouseEvent e) {
       checkPopup(e);
     }
 
+    @Override
     public void mouseReleased(MouseEvent e) {
       checkPopup(e);
     }
 
+    @Override
     public void mouseEntered(MouseEvent e) {}
+    @Override
     public void mouseExited(MouseEvent e) {}
   }
 
@@ -202,6 +208,7 @@ public class SViewerPanel extends JPanel {
       super("Rename");
     }
 
+    @Override
     public void actionPerformed(ActionEvent e) {
       int tabIndex = sheetPane.getSelectedIndex();
       if (tabIndex != -1) {
@@ -220,6 +227,7 @@ public class SViewerPanel extends JPanel {
       super("Insert");
     }
 
+    @Override
     public void actionPerformed(ActionEvent e) {
       //Create a new sheet then search for the sheet and make sure that the
       //sheetPane shows it.
@@ -239,6 +247,7 @@ public class SViewerPanel extends JPanel {
       super("Delete");
     }
 
+    @Override
     public void actionPerformed(ActionEvent e) {
       int tabIndex = sheetPane.getSelectedIndex();
       if (tabIndex != -1) {
@@ -267,12 +276,14 @@ public class SViewerPanel extends JPanel {
       SViewerPanel p = new SViewerPanel(wb, true);
       JFrame frame;
       frame = new JFrame() {
+        @Override
         protected void processWindowEvent(WindowEvent e) {
           super.processWindowEvent(e);
           if (e.getID() == WindowEvent.WINDOW_CLOSING) {
             System.exit(0);
           }
         }
+        @Override
         public synchronized void setTitle(String title) {
           super.setTitle(title);
           enableEvents(AWTEvent.WINDOW_EVENT_MASK);
index 126214b8a15d90cea61bc02b642f7fe8ad6ef8b5..01b17ef4d023b71c37064e5c365fc5020074264e 100644 (file)
@@ -47,6 +47,7 @@ public class DoubleStroke implements Brush {
      *
      * @return The created stroke as a new shape.
      */
+    @Override
     public Shape createStrokedShape(Shape s) {
         // Use the first stroke to create an outline of the shape
         Shape outline = stroke1.createStrokedShape(s);
@@ -56,6 +57,7 @@ public class DoubleStroke implements Brush {
     }
 
     /** {@inheritDoc} */
+    @Override
     public float getLineWidth() {
         return stroke1.getLineWidth() + 2 * stroke2.getLineWidth();
     }
index 698aab35eabdcdd243b6a6eba930176ea977b7d2..de1204e77d4d53d11699784e0e71681437488fd9 100644 (file)
@@ -31,6 +31,7 @@ import org.apache.poi.util.HexDump;
 public class DocumentDescriptorRenderer extends DefaultTreeCellRenderer
 {
 
+    @Override
     public Component getTreeCellRendererComponent(final JTree tree,
                                                   final Object value,
                                                   final boolean selectedCell,
index 917c0b0570c5f72992f61d272812e1b73132b691..dbb759c9c5e47e9406158d4cca55ff1a197a981f 100644 (file)
@@ -49,6 +49,7 @@ public class ExtendableTreeCellRenderer implements TreeCellRenderer
         renderers = new HashMap<Class<?>,TreeCellRenderer>();
         register(Object.class, new DefaultTreeCellRenderer()
             {
+                @Override
                 public Component getTreeCellRendererComponent
                     (JTree tree, Object value, boolean selectedCell,
                      boolean expanded, boolean leaf, int row, boolean hasCellFocus)
@@ -97,6 +98,7 @@ public class ExtendableTreeCellRenderer implements TreeCellRenderer
      *
      * @see TreeCellRenderer#getTreeCellRendererComponent
      */
+    @Override
     public Component getTreeCellRendererComponent
         (final JTree tree, final Object value, final boolean selected,
          final boolean expanded, final boolean leaf, final int row,
index d1fa1727caa75b64f4c3c440fff4515e729b126a..ec84847d684b19cc7dfaf50382847a8d1a36638d 100644 (file)
@@ -65,6 +65,7 @@ public class POIBrowser extends JFrame
     {
         addWindowListener(new WindowAdapter()
             {
+                @Override
                 public void windowClosing(WindowEvent e)
                 {
                         System.exit(0);
index 085f2db6d7f24675ae27c720ef0c82e40537b0ba..8ce336f24d72fc754355590326bfa0693eccf9ca 100644 (file)
@@ -41,6 +41,7 @@ import org.apache.poi.util.HexDump;
 public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer
 {
 
+    @Override
     public Component getTreeCellRendererComponent(final JTree tree,
                                                   final Object value,
                                                   final boolean selectedCell,
index 3174610cad6cff41329afcca45590b2562b579ae..d2427ce15b70db5fb82a59c121740bf9e3bc609d 100644 (file)
@@ -121,6 +121,7 @@ public class TreeReaderListener implements POIFSReaderListener
      * reading. This method retrieves properties of the document and
      * adds them to a tree model.</p>
      */
+    @Override
     public void processPOIFSReaderEvent(final POIFSReaderEvent event)
     {
         DocumentDescriptor d;
index e8bca901f8d944af904a81878f553cb86a707b49..532b89c0f7692363354c64db75647165d785d923 100644 (file)
@@ -764,6 +764,7 @@ public class ToCSV {
          *         file ends with either '.xls' or '.xlsx' and false will be
          *         returned in all other instances.
          */
+        @Override
         public boolean accept(File file, String name) {
             return(name.endsWith(".xls") || name.endsWith(".xlsx"));
         }
index 4b9a325cdf81a1eff07c31a2112c813ead3688fd..3d6b4423a179310bc7ed09a3fb06bb77568d7dae 100644 (file)
@@ -33,6 +33,7 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction ;
  */
 public class CalculateMortgage implements FreeRefFunction {
 
+    @Override
     public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) {
         
         // verify that we have enough data
index ae7079436876b00c7e9ef572f82ca710391f5605..bf4018f3d64c9ce16a208a0965e326f77fd42f68 100644 (file)
@@ -56,6 +56,7 @@ public class SettingExternalFunction {
             // don't care about the implementation, we are not interested in evaluation\r
             // and this method will never be called\r
             FreeRefFunction NA = new FreeRefFunction() {\r
+                @Override\r
                 public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {\r
                     return ErrorEval.NA;\r
                 }\r
@@ -66,6 +67,7 @@ public class SettingExternalFunction {
             _functionsByName.put("BDS", NA);\r
         }\r
 \r
+        @Override\r
         public FreeRefFunction findFunction(String name) {\r
             return _functionsByName.get(name.toUpperCase(Locale.ROOT));\r
         }\r
index 1e235f929e6a69d00c03944ddbbf9719616b1b37..677a38ab71c3a784c25915130d85b5fad0d5d425 100644 (file)
@@ -42,6 +42,7 @@ public class HSSFHtmlHelper implements HtmlHelper {
         colors = wb.getCustomPalette();
     }
 
+    @Override
     public void colorStyles(CellStyle style, Formatter out) {
         HSSFCellStyle cs = (HSSFCellStyle) style;
         out.format("  /* fill pattern = %d */%n", cs.getFillPattern());
index 9b22e1ed043bb5671de508a665b8bf5aec5e028f..20a30ed2ebef95de4097299d47641d64b5cf3a80 100644 (file)
@@ -28,6 +28,7 @@ import org.apache.poi.xssf.usermodel.XSSFColor;
  * @author Ken Arnold, Industrious Media LLC
  */
 public class XSSFHtmlHelper implements HtmlHelper {
+    @Override
     public void colorStyles(CellStyle style, Formatter out) {
         XSSFCellStyle cs = (XSSFCellStyle) style;
         styleColor(out, "background-color", cs.getFillForegroundXSSFColor());
index 11d14ae37675a063878dbb5fc98a9ddf007994de..0f84ce91fecd4afdbd056412afc532d3e9d66afd 100644 (file)
@@ -83,6 +83,7 @@ public class XLSX2CSV {
             }
         }
 
+        @Override
         public void startRow(int rowNum) {
             // If there were gaps, output the missing rows
             outputMissingRows(rowNum-currentRow-1);
@@ -92,6 +93,7 @@ public class XLSX2CSV {
             currentCol = -1;
         }
 
+        @Override
         public void endRow(int rowNum) {
             // Ensure the minimum number of columns
             for (int i=currentCol; i<minColumns; i++) {
@@ -100,6 +102,7 @@ public class XLSX2CSV {
             output.append('\n');
         }
 
+        @Override
         public void cell(String cellReference, String formattedValue,
                 XSSFComment comment) {
             if (firstCellOfRow) {
@@ -132,6 +135,7 @@ public class XLSX2CSV {
             }
         }
 
+        @Override
         public void headerFooter(String text, boolean isHeader, String tagName) {
             // Skip, no headers or footers in CSV
         }
index 1997e6776f224a018161e7c33d2e11ca3200bae6..6e35e8cdbdb5657aea8c77daf07a42e2cdcfcb90 100644 (file)
@@ -116,7 +116,8 @@ public class FromHowTo {
                        this.sst = sst;
                }
 
-               public void startElement(String uri, String localName, String name,
+               @Override
+        public void startElement(String uri, String localName, String name,
                                                                 Attributes attributes) throws SAXException {
                        // c => cell
                        if(name.equals("c")) {
@@ -131,7 +132,8 @@ public class FromHowTo {
                        lastContents = "";
                }
 
-               public void endElement(String uri, String localName, String name)
+               @Override
+        public void endElement(String uri, String localName, String name)
                                throws SAXException {
                        // Process the last contents as required.
                        // Do now, as characters() may be called more than once
@@ -152,7 +154,8 @@ public class FromHowTo {
                        }
                }
 
-               public void characters(char[] ch, int start, int length) throws SAXException { // NOSONAR
+               @Override
+        public void characters(char[] ch, int start, int length) throws SAXException { // NOSONAR
                        lastContents += new String(ch, start, length);
                }
        }
index 1e5515859dc6abfe2e571580356a836fa6dd86d2..31b5e859fda48f37d59c44f56b72479bb3f2f0e7 100644 (file)
@@ -42,6 +42,7 @@ public class HybridStreaming {
         InputStream sourceBytes = new FileInputStream("workbook.xlsx");
         XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) {
             /** Avoid DOM parse of large sheet */
+            @Override
             public void parseSheet(java.util.Map<String,XSSFSheet> shIdMap, CTSheet ctSheet) {
                 if (!SHEET_TO_STREAM.equals(ctSheet.getName())) {
                     super.parseSheet(shIdMap, ctSheet);
@@ -59,15 +60,19 @@ public class HybridStreaming {
     private static SheetContentsHandler createSheetContentsHandler() {
         return new SheetContentsHandler() {
             
+            @Override
             public void startRow(int rowNum) {
             }
             
+            @Override
             public void headerFooter(String text, boolean isHeader, String tagName) {
             }
             
+            @Override
             public void endRow(int rowNum) {
             }
             
+            @Override
             public void cell(String cellReference, String formattedValue, XSSFComment comment) {
             }
         };
index 55e51975fe23fcfb2935d3bdcae7386eec83c688..bf1334848562f3b0972e1eb98c5841522e8c2061 100644 (file)
@@ -102,7 +102,8 @@ public class ExcelAntEvaluateCell extends Task {
                return precisionToUse;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
                
                precisionToUse = 0 ;
                
index eaf04007ce4ad0de40b57370b3481286ee131f7f..35f5420f016f0c6d92f4b1308ba57f89cef70ad2 100644 (file)
@@ -58,6 +58,7 @@ public class ExcelAntHandlerTask extends Task {
         wbUtil = wkbkUtil ;\r
     }\r
     \r
+    @Override\r
     public void execute() throws BuildException {\r
         log( "handling the workbook with class " + className, Project.MSG_INFO ) ;\r
         try {\r
index 3e6c4cd607f516bef5f4d9fceafb619bc783bd91..2451a61e68b24c9746dc224d409b1430975cefe0 100644 (file)
@@ -50,7 +50,8 @@ public class ExcelAntSetDoubleCell extends ExcelAntSet {
                return cellValue;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
                wbUtil.setDoubleValue(cellStr, cellValue ) ;
                
                log( "set cell " + cellStr + " to value " + cellValue + " as double.", Project.MSG_DEBUG ) ;
index 1b9d5f0539c7c4e522c370d34308972f6a0165e3..8dc599b104227b9ffe12e278c805e795b1da37b6 100644 (file)
@@ -43,7 +43,8 @@ public class ExcelAntSetFormulaCell extends ExcelAntSet {
                return cellValue;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
                
                wbUtil.setFormulaValue( cellStr, cellValue ) ;
                
index 047e544ea52dc64a2b8be3248e23215f57e62fd9..e1ab047fbf8c83d2c317c4e1bfb50fa9dcb24871 100644 (file)
@@ -50,7 +50,8 @@ public class ExcelAntSetStringCell extends ExcelAntSet {
                return stringValue;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
                wbUtil.setStringValue(cellStr, stringValue ) ;
                
                log( "set cell " + cellStr + " to value " + stringValue + " as String.", Project.MSG_DEBUG ) ;
index 13271611b1cd0ce607071f1006340bc384f048ff..47ee3124a7cccc3f8870dd99a683d7b503f684a6 100644 (file)
@@ -78,7 +78,8 @@ public class ExcelAntTask extends Task {
                functions.add( def ) ;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
         checkClassPath();
 
                int totalCount = 0 ;
index 36b9b6d9e0cf8a3df5b1e1655657f6094e61034e..fd8f930919cbed4fc253c65a461ca8b6a72e7af0 100644 (file)
@@ -124,7 +124,8 @@ public class ExcelAntTest extends Task{
                return evaluators;
        }
        
-       public void execute() throws BuildException {
+       @Override
+    public void execute() throws BuildException {
            
            Iterator<Task> taskIt = testTasks.iterator();
 
index 83ac61e4c8a924a5dc19033595efff2c4b3d1149..f1c526bf9d5f4b7be88ed5bcdd4cee91cd7b1b20 100644 (file)
@@ -35,6 +35,7 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction ;
  */
 public class CalculateMortgageFunction implements FreeRefFunction {
 
+    @Override
     public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) {
         
         // verify that we have enough data
index 41b3b04fdcc46bbcc56b88c75349cedd0349426e..55ea7778718dccccf33e5eed4be0aab3828c1490 100644 (file)
@@ -500,6 +500,7 @@ public abstract class BuildFileTest extends TestCase {
             this.buffer = buffer;\r
         }\r
 \r
+        @Override\r
         public void write(int b) {\r
             buffer.append((char) b);\r
         }\r
@@ -522,6 +523,7 @@ public abstract class BuildFileTest extends TestCase {
         /**\r
          * Fired before any targets are started.\r
          */\r
+        @Override\r
         public void buildStarted(BuildEvent event) {\r
         }\r
 \r
@@ -531,6 +533,7 @@ public abstract class BuildFileTest extends TestCase {
          *\r
          * @see BuildEvent#getException()\r
          */\r
+        @Override\r
         public void buildFinished(BuildEvent event) {\r
         }\r
 \r
@@ -539,6 +542,7 @@ public abstract class BuildFileTest extends TestCase {
          *\r
          * @see BuildEvent#getTarget()\r
          */\r
+        @Override\r
         public void targetStarted(BuildEvent event) {\r
             //System.out.println("targetStarted " + event.getTarget().getName());\r
         }\r
@@ -549,6 +553,7 @@ public abstract class BuildFileTest extends TestCase {
          *\r
          * @see BuildEvent#getException()\r
          */\r
+        @Override\r
         public void targetFinished(BuildEvent event) {\r
             //System.out.println("targetFinished " + event.getTarget().getName());\r
         }\r
@@ -558,6 +563,7 @@ public abstract class BuildFileTest extends TestCase {
          *\r
          * @see BuildEvent#getTask()\r
          */\r
+        @Override\r
         public void taskStarted(BuildEvent event) {\r
             //System.out.println("taskStarted " + event.getTask().getTaskName());\r
         }\r
@@ -568,6 +574,7 @@ public abstract class BuildFileTest extends TestCase {
          *\r
          * @see BuildEvent#getException()\r
          */\r
+        @Override\r
         public void taskFinished(BuildEvent event) {\r
             //System.out.println("taskFinished " + event.getTask().getTaskName());\r
         }\r
@@ -578,6 +585,7 @@ public abstract class BuildFileTest extends TestCase {
          * @see BuildEvent#getMessage()\r
          * @see BuildEvent#getPriority()\r
          */\r
+        @Override\r
         public void messageLogged(BuildEvent event) {\r
             if (event.getPriority() > logLevel) {\r
                 // ignore event\r
index ffdb2f2fa7d1f1119343ce08314ff190e00d2a7a..6e52e1d4bf30d6c651207e6078894e96fcd9b83b 100644 (file)
@@ -26,10 +26,12 @@ public class MockExcelAntWorkbookHandler implements IExcelAntWorkbookHandler {
     public static Workbook workbook = null;
     
     
+    @Override
     public void setWorkbook(Workbook workbook) {
         MockExcelAntWorkbookHandler.workbook = workbook;
     }
 
+    @Override
     public void execute() {
         executed = true;
         assertNotNull(workbook);
index 65edbaae507f3a8ccbd87783e7599eefa1d7bfe6..6bfeee2e7172a108d42892749762db45dd5957a8 100644 (file)
@@ -53,6 +53,7 @@ public abstract class AbstractFileHandler implements FileHandler {
         EXPECTED_EXTRACTOR_FAILURES.add("poifs/Notes.ole2");\r
     }\r
 \r
+    @Override\r
     public void handleExtracting(File file) throws Exception {\r
         boolean before = ExtractorFactory.getThreadPrefersEventExtractors();\r
         try {\r
index 12313b78e465b1f845c2a16702c7cd70905bd800..eb0e1b6c06b4625ee11df65709330093ceaf0dd8 100644 (file)
@@ -51,7 +51,8 @@ public class HDGFFileHandler extends POIFSFileHandler {
        }
        
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                File file = new File("test-data/diagram/44501.vsd");
 
index a41b6ebadf44be02f285e5f25bc9a4241600b902..093ef0274b281d6af1e28b89c0b52a9344512159 100644 (file)
@@ -39,7 +39,8 @@ public class HPBFFileHandler extends POIFSFileHandler {
        }
        
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                File file = new File("test-data/publisher/SampleBrochure.pub");
 
index 6a84201b457973c1733e8959cf597f7d208eb9d4..1f3dc6905612900a9bb78215fde865848dd93d07 100644 (file)
@@ -37,7 +37,8 @@ public class HPSFFileHandler extends POIFSFileHandler {
        }
        
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                InputStream stream = new FileInputStream("test-data/hpsf/Test0313rur.adm");
                try {
index c0454e0d30517318d468d74053cc05b87929f495..db9548c41b9c0cdd2d2e447b702dc008e767e565 100644 (file)
@@ -49,7 +49,8 @@ public class HSLFFileHandler extends SlideShowHandler {
        }
        
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                InputStream stream = new FileInputStream("test-data/hpsf/Test_Humor-Generation.ppt");
                try {
index d68504a04caf82e7444f49fa67921ee1942120c7..c22edf2fc08a487903bd44fadb794f4bf5b0ddc5 100644 (file)
@@ -72,7 +72,8 @@ public class HSMFFileHandler extends POIFSFileHandler {
 //     }
 
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                InputStream stream = new FileInputStream("test-data/hsmf/example_received_regular.msg");
                try {
index ead35e47bbb7d789b3fca7eac5a0b7923c8cacdc..d762598a4c5aa3704d8d99bd28abfb0b02631879 100644 (file)
@@ -38,7 +38,8 @@ public class HWPFFileHandler extends POIFSFileHandler {
        }
 
        // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                File file = new File("test-data/document/52117.doc");
 
index 50a9577c04f4f703caa9a1deaf8cae2a2facaa2f..12493e24cad1983a25ffd220584585addf284645 100644 (file)
@@ -55,6 +55,7 @@ public class OPCFileHandler extends AbstractFileHandler {
         }
     }
        
+    @Override
     public void handleExtracting(File file) throws Exception {
         // text-extraction is not possible currenlty for these types of files
     }
index bbfdc661c7620af621ef9c7eb5909720f8a3e855..421f842e1bca4172ea9e68ed35284067ea7b6efd 100644 (file)
@@ -46,7 +46,8 @@ public class XSLFFileHandler extends SlideShowHandler {
                slide.close();
        }
 
-       public void handleExtracting(File file) throws Exception {
+       @Override
+    public void handleExtracting(File file) throws Exception {
         super.handleExtracting(file);
         
         
@@ -65,7 +66,8 @@ public class XSLFFileHandler extends SlideShowHandler {
     }
 
     // a test-case to test this locally without executing the full TestAllFiles
-       @Test
+       @Override
+    @Test
        public void test() throws Exception {
                InputStream stream = new FileInputStream("test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx");
                try {
index 0e24f048623706f0239f62f45dc53f24fa83667e..bfa31c7127692f041731c8e68364b5ea7d9f7f10 100644 (file)
@@ -203,39 +203,71 @@ public class XSSFFileHandler extends SpreadsheetHandler {
         @SuppressWarnings("resource")
         NullPrintStream() {
             super(new OutputStream() {
+                @Override
                 public void write(int b) {}
+                @Override
                 public void write(byte[] b) {}
+                @Override
                 public void write(byte[] b, int off, int len) {}
             });
         }
+        @Override
         public void write(int b) {}
+        @Override
         public void write(byte[] buf, int off, int len) {}
+        @Override
         public void print(boolean b) {}
+        @Override
         public void print(char c) {}
+        @Override
         public void print(int i) {}
+        @Override
         public void print(long l) {}
+        @Override
         public void print(float f) {}
+        @Override
         public void print(double d) {}
+        @Override
         public void print(char[] s) {}
+        @Override
         public void print(String s) {}
+        @Override
         public void print(Object obj) {}
+        @Override
         public void println() {}
+        @Override
         public void println(boolean x) {}
+        @Override
         public void println(char x) {}
+        @Override
         public void println(int x) {}
+        @Override
         public void println(long x) {}
+        @Override
         public void println(float x) {}
+        @Override
         public void println(double x) {}
+        @Override
         public void println(char[] x) {}
+        @Override
         public void println(String x) {}
+        @Override
         public void println(Object x) {}
+        @Override
         public PrintStream printf(String format, Object... args) { return this; }
+        @Override
         public PrintStream printf(Locale l, String format, Object... args) { return this; }
+        @Override
         public PrintStream format(String format, Object... args) { return this; }
+        @Override
         public PrintStream format(Locale l, String format, Object... args) { return this; }
+        @Override
         public PrintStream append(CharSequence csq) { return this; }
+        @Override
         public PrintStream append(CharSequence csq, int start, int end) { return this; }
+        @Override
         public PrintStream append(char c) { return this; }
+        @Override
         public void write(byte[] b) {}
     }
 }
index e93e820b33cf66efa417bb19649b499af983431b..be63e2bf7a5176e47c6bfe49f74ed0c6ad5c7813 100644 (file)
@@ -79,6 +79,7 @@ public final class TestPOIXMLDocument {
             //
         }
 
+        @Override
         protected POIXMLRelation getDescriptor(String relationshipType) {
             return null;
         }
index 96a46c45e92d1a9ce55454c5b477380f0fcfa9c3..4582c2ffdc6e1be87f3b2aa530b5c56f399b2fb5 100644 (file)
@@ -57,10 +57,12 @@ public class AesZipFileZipEntrySource implements ZipEntrySource {
      * Note: the file sizes are rounded up to the next cipher block size,
      * so don't rely on file sizes of these custom encrypted zip file entries!
      */
+    @Override
     public Enumeration<? extends ZipEntry> getEntries() {
         return zipFile.entries();
     }
 
+    @Override
     @SuppressWarnings("resource")
     public InputStream getInputStream(ZipEntry entry) throws IOException {
         InputStream is = zipFile.getInputStream(entry);
@@ -113,6 +115,7 @@ public class AesZipFileZipEntrySource implements ZipEntrySource {
             zos.putNextEntry(zeNew);
             FilterOutputStream fos2 = new FilterOutputStream(zos){
                 // don't close underlying ZipOutputStream
+                @Override
                 public void close() {}
             };
             CipherOutputStream cos = new CipherOutputStream(fos2, ciEnc);
index fe8747b5a1909241dc224c230db0d19a79e650e9..ea5192638954a2358394b4e7380f831c598dee0a 100644 (file)
@@ -57,6 +57,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
     @Test
     public void testGeneralFormat() throws Exception {
         runFormatTests("GeneralFormatTests.xlsx", new CellValue() {
+            @Override
             public Object getValue(Cell cell) {
                 switch (CellFormat.ultimateTypeEnum(cell)) {
                     case BOOLEAN:
@@ -72,6 +73,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
 
     public void testNumberFormat() throws Exception {
         runFormatTests("NumberFormatTests.xlsx", new CellValue() {
+            @Override
             public Object getValue(Cell cell) {
                 return cell.getNumericCellValue();
             }
@@ -81,6 +83,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
     @Test
     public void testNumberApproxFormat() throws Exception {
         runFormatTests("NumberFormatApproxTests.xlsx", new CellValue() {
+            @Override
             public Object getValue(Cell cell) {
                 return cell.getNumericCellValue();
             }
@@ -104,6 +107,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
         LocaleUtil.setUserTimeZone(TimeZone.getTimeZone("CET"));
         try {
             runFormatTests("DateFormatTests.xlsx", new CellValue() {
+                @Override
                 public Object getValue(Cell cell) {
                     return cell.getDateCellValue();
                 }
@@ -116,6 +120,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
     @Test
     public void testElapsedFormat() throws Exception {
         runFormatTests("ElapsedFormatTests.xlsx", new CellValue() {
+            @Override
             public Object getValue(Cell cell) {
                 return cell.getNumericCellValue();
             }
@@ -125,6 +130,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
     @Test
     public void testTextFormat() throws Exception {
         runFormatTests("TextFormatTests.xlsx", new CellValue() {
+            @Override
             public Object getValue(Cell cell) {
                 switch(CellFormat.ultimateTypeEnum(cell)) {
                     case BOOLEAN:
@@ -139,6 +145,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
     @Test
     public void testConditions() throws Exception {
         runFormatTests("FormatConditionTests.xlsx", new CellValue() {
+            @Override
             Object getValue(Cell cell) {
                 return cell.getNumericCellValue();
             }
index 57957fa2988edc1d748868143c3674d1a2956df5..43a6036ba22712accef932c19045359bed49e297 100644 (file)
@@ -30,6 +30,7 @@ public class TestXDGFVisioExtractor extends TestCase {
     private OPCPackage pkg;
     private XmlVisioDocument xml;
 
+    @Override
     protected void setUp() throws Exception {
         diagrams = POIDataSamples.getDiagramInstance();
         
index b72cd76082d892a9ae09b25066958bf65cf65373..9d710cd70e603b3a5410dc33baee0721187fd9d0 100644 (file)
@@ -48,10 +48,12 @@ public class TestXSLFTextParagraph {
             super(p);\r
         }\r
         \r
+        @Override\r
         public void breakText(Graphics2D graphics) {\r
             super.breakText(graphics);\r
         }\r
         \r
+        @Override\r
         public double getWrappingWidth(boolean firstLine, Graphics2D graphics) {\r
             return super.getWrappingWidth(firstLine, graphics);\r
         }\r
index dc0fc1c8c9955e863744115086bd8400ce524e06..d5be11e2f42d249f968204214c288d4f0278294a 100644 (file)
@@ -95,6 +95,7 @@ public final class TestSXSSFSheet extends BaseTestXSheet {
         super.bug35084();
     }
 
+    @Override
     @Test
     public void getCellComment() throws IOException {
         // TODO: reading cell comments via Sheet does not work currently as it tries 
index fec8b449e9b422773ad80ec1f99eb8ae6a6f65b0..a73a0cf7cf793efbda1ec59b7b26a67164ccf080 100644 (file)
@@ -36,6 +36,7 @@ public class TestXSSFConditionalFormatting extends BaseTestConditionalFormatting
         super(XSSFITestDataProvider.instance);\r
     }\r
 \r
+    @Override\r
     protected void assertColour(String hexExpected, Color actual) {\r
         assertNotNull("Colour must be given", actual);\r
         XSSFColor colour = (XSSFColor)actual;\r
index 36ce03406e4c6e8677a6480165921912b48a03e5..c7179531d89f7593f8290dae3ffa04c6b6fdf6a3 100644 (file)
@@ -42,7 +42,8 @@ public final class TestXSSFDataFormat extends BaseTestDataFormat {
     /**
      * [Bug 49928] formatCellValue returns incorrect value for \u00a3 formatted cells
      */
-       @Test
+       @Override
+    @Test
     public void test49928() throws IOException {
         XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("49928.xlsx");
         doTest49928Core(wb);
@@ -68,7 +69,8 @@ public final class TestXSSFDataFormat extends BaseTestDataFormat {
     /**
      * [Bug 58532] Handle formats that go numnum, numK, numM etc 
      */
-       @Test
+       @Override
+    @Test
     public void test58532() throws IOException {
         XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("FormatKM.xlsx");
         doTest58532Core(wb);
index 6de609a5edfa09a4c693d4ba120acf94a85aa841..4da863fafbf2b0f54ff8a5d59f76b144663988d4 100644 (file)
@@ -22,6 +22,7 @@ import org.apache.poi.ss.usermodel.Workbook;
 
 public class TestXSSFForkedEvaluator extends TestForkedEvaluator {
     
+    @Override
     protected Workbook newWorkbook() {
         return new XSSFWorkbook();
     }
index 5bf50459e1cf0ce03917b28fb82d9ccf4019f397..d12020b516785024fc9a8b9f69600221ec33597d 100644 (file)
@@ -33,6 +33,7 @@ public class TestXWPFDecorators extends TestCase {
     private XWPFDocument hyperlink;\r
     private XWPFDocument comments;\r
 \r
+    @Override
     protected void setUp() throws IOException {\r
         simple = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx");\r
         hyperlink = XWPFTestDataSamples.openSampleDocument("TestDocument.docx");\r
index bb7a7049e1d2ce50c142e14cf20e5e37fac3e1e2..0596a941f08692fdcc70d3422d3455581c3fffac 100644 (file)
@@ -37,6 +37,7 @@ public class TestXWPFHeaderFooterPolicy extends TestCase {
     private XWPFDocument oddEven;
     private XWPFDocument diffFirst;
 
+    @Override
     protected void setUp() throws IOException {
         noHeader = XWPFTestDataSamples.openSampleDocument("NoHeadFoot.docx");
         header = XWPFTestDataSamples.openSampleDocument("ThreeColHead.docx");
index b4687b36fbc7d694a6fef06e95a2cb3ca0e29229..449f6b6b84bf9bf727be6003790cac1795662c19 100644 (file)
@@ -37,6 +37,7 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder;
  * Tests for XWPF Tables
  */
 public class TestXWPFTable extends TestCase {
+    @Override
     protected void setUp() {
         /*
           XWPFDocument doc = new XWPFDocument();
index 30296cf8224a619118b53792e0a030d8056e634d..d19843a6f94683ebec963fedfd160bd2342bffd9 100644 (file)
@@ -47,7 +47,8 @@ public final class TestPOIDocumentScratchpad extends TestCase {
         * Set things up, using a PowerPoint document and
         *  a Word Document for our testing
         */
-       public void setUp() throws Exception {
+       @Override
+    public void setUp() throws Exception {
                doc = new HSLFSlideShowImpl(POIDataSamples.getSlideShowInstance().openResourceAsStream("basic_test_ppt_file.ppt"));
 
                doc2 = HWPFTestDataSamples.openSampleFile("test2.doc");
index c61734169861f1e49e16004345a15738896b3c36..5b7723aebe1145045468e1d6042b0b255abb1c2a 100644 (file)
@@ -30,7 +30,8 @@ public final class TestHDGFCore extends TestCase {
 
        private POIFSFileSystem fs;
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
                fs = new POIFSFileSystem(_dgTests.openResourceAsStream("Test_Visio-Some_Random_Text.vsd"));
        }
 
index d36c5ba54fd1425cbd976a3807f8722f294362fc..48cc8a91664f9cb7fb60b63d969bc85b8075e010 100644 (file)
@@ -31,7 +31,8 @@ public final class TestVisioExtractor extends TestCase {
 
        private String defFilename;
        private int defTextChunks;
-       protected void setUp() {
+       @Override
+    protected void setUp() {
                defFilename = "Test_Visio-Some_Random_Text.vsd";
                defTextChunks = 5;
        }
index 41d1132782020280d88b726e959bb193a5e4ac30..6693ce05dfc7046ccb7a6f217a73cf92ffc93ffe 100644 (file)
@@ -33,10 +33,15 @@ public abstract class StreamTest extends TestCase {
                        this.format = format;
                }
 
-               public boolean destinationCompressed() { return compressed; }
-               public boolean destinationHasChunks() { return false; }
-               public boolean destinationHasPointers() { return hasPointers; }
-               public boolean destinationHasStrings() { return false; }
-               public int getSizeInBytes() { return -1; }
+               @Override
+        public boolean destinationCompressed() { return compressed; }
+               @Override
+        public boolean destinationHasChunks() { return false; }
+               @Override
+        public boolean destinationHasPointers() { return hasPointers; }
+               @Override
+        public boolean destinationHasStrings() { return false; }
+               @Override
+        public int getSizeInBytes() { return -1; }
        }
 }
index 06f2dd86c945bf103a89539ed068ecf34cac69a1..431526e56d40f755a67ea2a88bbc4077e0673bfc 100644 (file)
@@ -36,7 +36,8 @@ public final class TestStreamBugs extends StreamTest {
        private PointerFactory ptrFactory;
        private POIFSFileSystem filesystem;
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
                ptrFactory = new PointerFactory(11);
                chunkFactory = new ChunkFactory(11);
 
index 8d4771b735d3cb35b2f05abbbf3c1f8ec346bafb..3af4c6b361ca96f66c0f7ccdb52409827be9d18c 100644 (file)
@@ -34,7 +34,8 @@ public final class TestStreamComplex extends StreamTest {
        private ChunkFactory chunkFactory;
        private PointerFactory ptrFactory;
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
                ptrFactory = new PointerFactory(11);
                chunkFactory = new ChunkFactory(11);
 
index 2178e6a760c0c72d5ee9fc6dd718f5f845e2c9bc..f8543948161df111d1853710f66070e61b542899 100644 (file)
@@ -44,7 +44,8 @@ public final class TestMAPIAttributes extends TestCase {
    }
 
 
-   protected void tearDown() throws Exception {
+   @Override
+protected void tearDown() throws Exception {
        stream.close();
 
        super.tearDown();
index 67bbd0317559475a8c2ab5685c0337d79b746df9..565d7fb9228785adae84c58b5ed5e469765c1c1d 100644 (file)
@@ -144,6 +144,7 @@ public final class TestRecordContainer extends TestCase {
         assertEquals(ch.length-1, recordContainer.getChildRecords().length);
     }
 
+    @Override
     protected void setUp() throws Exception {
                super.setUp();
 
index cd4b54d19cdf1a26a56ca7d567379b879f10de64..593289ff197ecce37e98fa4ba9c886df9e0d7d32 100644 (file)
@@ -38,6 +38,7 @@ import org.apache.poi.hslf.usermodel.HSLFSlideShow;
 public final class TestTxMasterStyleAtom extends TestCase {
     protected HSLFSlideShow _ppt;
 
+    @Override
     public void setUp() {
         _ppt = new HSLFSlideShow();
     }
index b89a5f6e2d5d05aff41513ee1c9685bd39a58855..2e2998c68b1473a022e9c500a8c5adddbd9649b4 100644 (file)
@@ -48,7 +48,8 @@ public final class TestAddingSlides extends TestCase {
        /**
         * Create/open the slideshows
         */
-       public void setUp() throws Exception {
+       @Override
+    public void setUp() throws Exception {
                hss_empty = HSLFSlideShowImpl.create();
                ss_empty = new HSLFSlideShow(hss_empty);
 
index e9a8236f66285c884c135d94fbb47e64a2206eba..720719271c881225ec20a738014a779f73bb394d 100644 (file)
@@ -863,11 +863,13 @@ public final class TestBugs {
         assertEquals(hlRun.getEndIndex(), hlShape.getEndIndex());
 
         OutputStream nullOutput = new OutputStream(){
+            @Override
             public void write(int b) throws IOException {}
         };
         
         final boolean found[] = { false }; 
         DummyGraphics2d dgfx = new DummyGraphics2d(new PrintStream(nullOutput)){
+            @Override
             public void drawString(AttributedCharacterIterator iterator, float x, float y) {
                 // For the test file, common sl draws textruns one by one and not mixed
                 // so we evaluate the whole iterator
index cdd803a7138e31308bdcf28a18ce88867b5ba93f..799a44c0797de4d1a2af8fa187a8f575af6183cd 100644 (file)
@@ -55,6 +55,7 @@ public class TestExcelConverterSuite
                 "../spreadsheet" );
         for ( final File child : directory.listFiles( new FilenameFilter()
         {
+            @Override
             public boolean accept( File dir, String name )
             {
                 return name.endsWith( ".xls" ) && !failingFiles.contains( name );
index 78e6534569397e327a3e870ea633028214107955..17226a654b34a04a801a1e445bdc5f77a5c36b73 100644 (file)
@@ -105,6 +105,7 @@ public class TestHwmfParsing {
         while ((ze = zis.getNextEntry()) != null) {\r
             String basename = ze.getName().replaceAll(".*?([^/]+)\\.wmf", "$1");\r
             FilterInputStream fis = new FilterInputStream(zis){\r
+                @Override\r
                 public void close() throws IOException {}\r
             };\r
             try {\r
@@ -138,6 +139,7 @@ public class TestHwmfParsing {
         final String startFile = "";\r
         File files[] = indir.listFiles(new FileFilter() {\r
             boolean foundStartFile = false;\r
+            @Override\r
             public boolean accept(File pathname) {\r
                 foundStartFile |= startFile.isEmpty() || pathname.getName().contains(startFile);\r
                 return foundStartFile && pathname.getName().matches("(?i).*\\.wmf?$");\r
index 76fab8a8cb176609bd8793daec76beae4b1e75a3..7ac08176dd2cc14a2d8e9c9c14dfbcfc13b6c30e 100644 (file)
@@ -29,7 +29,8 @@ public abstract class HWPFTestCase extends TestCase {
        protected HWPFTestCase() {
        }
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
                super.setUp();
                /** @todo verify the constructors */
                _hWPFDocFixture = new HWPFDocFixture(this, getTestFile());
@@ -42,7 +43,8 @@ public abstract class HWPFTestCase extends TestCase {
          return HWPFDocFixture.DEFAULT_TEST_FILE;
        }
 
-       protected void tearDown() throws Exception {
+       @Override
+    protected void tearDown() throws Exception {
                if (_hWPFDocFixture != null) {
                        _hWPFDocFixture.tearDown();
                }
index a0c71f81f518aca22711f200ef0392eb72a96e71..095d7765717c0c17b249f10c4e8ac42cc12292d2 100644 (file)
@@ -68,6 +68,7 @@ public class TestFieldsTables extends HWPFTestCase
     {
     }
 
+    @Override
     protected String getTestFile()
     {
         return "test-fields.doc";
index d8724eb0b9bf31771ab751ceb7a3ffe9893244f3..e065b0999b662035278383d348d374d17106a369 100644 (file)
@@ -44,7 +44,8 @@ public final class TestHWPFPictures extends TestCase {
        private String imgCFile;
        private String imgDFile;
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
 
                docAFile = "testPictures.doc";
                docBFile = "two_images.doc";
index 5ab3e889f152975a7cfd06ac92525800a0dc0eea..8fce4e5587dc8c26a00a6db1b02157f794095b5a 100644 (file)
@@ -93,7 +93,8 @@ public final class TestHWPFRangeParts extends TestCase {
         */
        private HWPFDocument docUnicode;
 
-       public void setUp() {
+       @Override
+    public void setUp() {
                docUnicode = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc");
                docAscii = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc");
        }
index f567978a1f26ac6a81610269708ee9dd96cb2bb1..f3194bf2f853ef3ff3842c2612e9e54733517874 100644 (file)
@@ -54,6 +54,7 @@ public class TestWordToConverterSuite
                 "../document" );
         for ( final File child : directory.listFiles( new FilenameFilter()
         {
+            @Override
             public boolean accept( File dir, String name )
             {
                 return name.endsWith( ".doc" ) && !failingFiles.contains( name );
index b1c3fa8b2420ca5aa438a28d93a8eb355b2e1365..1b18e5fd3a9415461b6722636d03486d21489d58 100644 (file)
@@ -59,6 +59,7 @@ public class TestWordToHtmlConverter
         {
             wordToHtmlConverter.setPicturesManager( new PicturesManager()
             {
+                @Override
                 public String savePicture( byte[] content,
                         PictureType pictureType, String suggestedName,
                         float widthInches, float heightInches )
index 2ecd482892f5394f0647dddd4ec24013468036b3..88ed7c3a0fcb5027380c2f22d6eac656b3ceca18 100644 (file)
@@ -49,7 +49,8 @@ public final class TestDifferentRoutes extends TestCase {
 
        private HWPFDocument doc;
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
                doc = HWPFTestDataSamples.openSampleFile("test2.doc");
        }
 
index af6aa652f5afcf7cf992f9b35636fce1fd917ae7..90856305511eff4409c4fdb436a0aad000b7093b 100644 (file)
@@ -80,7 +80,8 @@ public final class TestWordExtractor extends TestCase {
        // With footnote
        private String filename6;
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
 
                String filename = "test2.doc";
                String filename2 = "test.doc";
index d98390dacc71346e4dbfe58f8f76152354011457..3ee35eded0800839473aebfb5dc422aab3b877de 100644 (file)
@@ -73,7 +73,8 @@ public final class TestCHPBinTable
     }
 
   }
-  protected void setUp()
+  @Override
+protected void setUp()
     throws Exception
   {
     super.setUp();
@@ -82,7 +83,8 @@ public final class TestCHPBinTable
     _hWPFDocFixture.setUp();
   }
 
-  protected void tearDown()
+  @Override
+protected void tearDown()
     throws Exception
   {
     _cHPBinTable = null;
index 6a781851fc8d74ea3c4414dd59e6490b0c71062b..fa4dc3e129da9fa304977641e2431dac365fc9b4 100644 (file)
@@ -53,7 +53,8 @@ public final class TestFontTable
 
   }
 
-  protected void setUp()
+  @Override
+protected void setUp()
     throws Exception
   {
     super.setUp();
@@ -63,7 +64,8 @@ public final class TestFontTable
     _hWPFDocFixture.setUp();
   }
 
-  protected void tearDown()
+  @Override
+protected void tearDown()
     throws Exception
   {
     _hWPFDocFixture.tearDown();
index f5f316236377a5d2a7e716f02abcb19916c65ef9..07540541e3b0825bb6ab3ede75304885cc1fd06e 100644 (file)
@@ -56,7 +56,8 @@ public final class TestPlexOfCps
       assertEquals(node.getEnd()-node.getStart(), span);
     }
   }
-  protected void setUp()
+  @Override
+protected void setUp()
     throws Exception
   {
     super.setUp();
@@ -66,7 +67,8 @@ public final class TestPlexOfCps
     _hWPFDocFixture.setUp();
   }
 
-  protected void tearDown()
+  @Override
+protected void tearDown()
     throws Exception
   {
     _plexOfCps = null;
index 6fb92165cb9fb855184d2ddc73fe6c3e831c7f49..1ca57b098bb1426f824a3a1a6fbfb5796c3cf3c9 100644 (file)
@@ -85,7 +85,8 @@ public final class TestSectionTable
     }
   }
 
-  protected void setUp()
+  @Override
+protected void setUp()
     throws Exception
   {
     super.setUp();
@@ -95,7 +96,8 @@ public final class TestSectionTable
     _hWPFDocFixture.setUp();
   }
 
-  protected void tearDown()
+  @Override
+protected void tearDown()
     throws Exception
   {
     _hWPFDocFixture.tearDown();
index af9921a6f354caa8efaad8544307bff8b047ca81..41677ddfbacd53b2672fae28d282c190af5ee7bc 100644 (file)
@@ -61,7 +61,8 @@ public final class TestStyleSheet
     assertEquals(newStyleSheet, _styleSheet);
   }
 
-  protected void setUp()
+  @Override
+protected void setUp()
     throws Exception
   {
     super.setUp();
@@ -76,7 +77,8 @@ public final class TestStyleSheet
     _styleSheet = new StyleSheet(tableStream, fib.getFcStshf());
   }
 
-  protected void tearDown()
+  @Override
+protected void tearDown()
     throws Exception
   {
     _styleSheet = null;
index ec9e2f9440899feb9d9aad6e41915d619e811dda..0aa4b316264218ce67b471bb85c051be49adf508 100644 (file)
@@ -35,7 +35,8 @@ public final class TestHeaderStories extends TestCase {
        private HWPFDocument unicode;
        private HWPFDocument withFields;
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
 
                none = HWPFTestDataSamples.openSampleFile("NoHeadFoot.doc");
                header = HWPFTestDataSamples.openSampleFile("ThreeColHead.doc");
index 5e32812e8d53e3a017e267c97215244f28cacb6c..4d0648b39a631be892d80bdac3a17cd65ef78ca1 100644 (file)
@@ -46,7 +46,8 @@ public final class TestRangeDelete extends TestCase {
 
        private String illustrativeDocFile;
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
                illustrativeDocFile = "testRangeDelete.doc";
        }
 
index ededa327556977b85da62aeb24c664b47699d653..79c2af67f12418d5e06b67b05a92f5f67a0e8b11 100644 (file)
@@ -38,7 +38,8 @@ public final class TestRangeInsertion extends TestCase {
 
        private String illustrativeDocFile;
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
                illustrativeDocFile = "testRangeInsertion.doc";
        }
 
index e0db917ec63d2ba321ea3c16a983eaabd4149da5..0865189a22fcf15509ca2e750bcfac86b6431210 100644 (file)
@@ -64,6 +64,7 @@ public final class TestRangeProperties extends TestCase {
     private HWPFDocument u;
     private HWPFDocument a;
 
+    @Override
     protected void setUp() {
         u = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc");
         a = HWPFTestDataSamples.openSampleFile("SampleDoc.doc");
index c4282ecf602cbd8fb08a585f67936c59a2967128..026bc41def3b91ad9149e2a46ab0b1516ec6bcff 100644 (file)
@@ -138,10 +138,14 @@ public final class TestEscherContainerRecord extends TestCase {
 
        private static final class DummyEscherRecord extends EscherRecord {
                public DummyEscherRecord() { }
-               public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { return 0; }
-               public int serialize(int offset, byte[] data, EscherSerializationListener listener) { return 0; }
-               public int getRecordSize() { return 10; }
-               public String getRecordName() { return ""; }
+               @Override
+        public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { return 0; }
+               @Override
+        public int serialize(int offset, byte[] data, EscherSerializationListener listener) { return 0; }
+               @Override
+        public int getRecordSize() { return 10; }
+               @Override
+        public String getRecordName() { return ""; }
        }
 
        public void testGetRecordSize() {
index 2a7b89c4a0e5c75c06a01ce318a81682b9d63c05..155664b37ac791d860b0b28fb782f022495beb92 100644 (file)
@@ -57,6 +57,7 @@ public class AllDataFilesTester {
         final File dataDir = _samples.getFile("");
         final File[] docs = dataDir.listFiles(new FileFilter()
         {
+            @Override
             public boolean accept(final File file)
             {
                 return file.isFile() && file.getName().startsWith("Test");
index 7e356a4359deb03318810d3b49bbf8a9bd5e9883..48103b0c9cb122c0eaefb85c303593b0ca41f2e6 100644 (file)
@@ -64,6 +64,7 @@ public final class TestEmptyProperties extends TestCase {
      * does not exist
      * @exception IOException if an I/O exception occurs
      */
+    @Override
     public void setUp() throws FileNotFoundException, IOException
     {
         POIDataSamples samples = POIDataSamples.getHPSFInstance();
index 27758a4474854aa34e2ea94efbfccc0e046264f8..3cb277f5de06ef9726e923822579b6e1ba53f67e 100644 (file)
@@ -52,7 +52,8 @@ public final class TestMetaDataIPI extends TestCase{
         * Setup is used to get the document ready. Gets the DocumentSummaryInformation and the
         * SummaryInformation to reasonable values
         */
-       public void setUp() throws Exception {
+       @Override
+    public void setUp() throws Exception {
                bout = new ByteArrayOutputStream();
                poifs = new POIFSFileSystem();
                dir = poifs.getRoot();
index 7edf22ff651ce8ead6cbdaefb411700d4b721b34..6f7e6db1c5d9ac0bf29f6576d059077c1dc24a62 100644 (file)
@@ -54,6 +54,7 @@ public class TestUnicode extends TestCase {
      * @exception FileNotFoundException if the file to be read does not exist.
      * @exception IOException if any other I/O exception occurs
      */
+    @Override
     protected void setUp() {
         POIDataSamples samples = POIDataSamples.getHPSFInstance();
         data = samples.getFile(POI_FS);
index fc2c832b3d41d97b00e1891dffdbec0f2f576a60..7acede2fb76b28973859cf2e0c47442d10e6b587 100644 (file)
@@ -236,6 +236,7 @@ public class TestWrite
         final POIFSReader r = new POIFSReader();
         r.registerListener(new POIFSReaderListener()
             {
+                @Override
                 public void processPOIFSReaderEvent
                     (final POIFSReaderEvent event)
                 {
@@ -318,6 +319,7 @@ public class TestWrite
         final POIFSReader r = new POIFSReader();
         r.registerListener(new POIFSReaderListener()
             {
+                @Override
                 public void processPOIFSReaderEvent
                     (final POIFSReaderEvent event)
                 {
@@ -352,6 +354,7 @@ public class TestWrite
 
     static class MyPOIFSReaderListener implements POIFSReaderListener
     {
+        @Override
         public void processPOIFSReaderEvent(final POIFSReaderEvent event)
         {
             try
index c67bc5dbd46e5dc8c99853603295d393b9d97cad..14f1977b1ed336367cd86046f84001e1c13e904b 100644 (file)
@@ -133,6 +133,7 @@ final class Util {
         POIFSReader r = new POIFSReader();
         POIFSReaderListener pfl = new POIFSReaderListener()
         {
+            @Override
             public void processPOIFSReaderEvent(final POIFSReaderEvent event)
             {
                 try
@@ -201,6 +202,7 @@ final class Util {
         final POIFSReader r = new POIFSReader();
         POIFSReaderListener pfl = new POIFSReaderListener()
         {
+            @Override
             public void processPOIFSReaderEvent(final POIFSReaderEvent event)
             {
                 try
index 51454333f59448b7598e4574a9bc6c8ce17ea04c..fa59266c168f9dc302c87e1869c7ada854aa3272 100644 (file)
@@ -47,6 +47,7 @@ public final class TestEventRecordFactory extends TestCase {
         final boolean[] wascalled = { false, }; // hack to pass boolean by ref into inner class
 
         ERFListener listener = new ERFListener() {
+            @Override
             public boolean processRecord(Record rec) {
                 wascalled[0] = true;
                 assertTrue("must be BOFRecord got SID="+rec.getSid(),
@@ -154,7 +155,8 @@ public final class TestEventRecordFactory extends TestCase {
                   ContinueRecord.class.getName(),
                   ContinueRecord.class.getName()
               };
-              public boolean processRecord(Record rec)
+              @Override
+            public boolean processRecord(Record rec)
               {
                   // System.out.println(rec.toString());
                   assertEquals(
index 37b77423ba29fb4fbd9f26b45bb34976f29f40c0..72268832e2cafec0dc504808c1879128b828493c 100644 (file)
@@ -153,6 +153,7 @@ public final class TestEventWorkbookBuilder extends TestCase {
         private final List<Record> _records = new ArrayList<Record>();
         private final List<Record> _frecs = new ArrayList<Record>();
 
+        @Override
         public void processRecord(Record record) {
             _records.add(record);
             if(record instanceof FormulaRecord) {
index 1eb61509a638d30c0f60989668ffb8d0b5a63367..e9fa2a48bcbdbede16832a659942ce60e990af11 100644 (file)
@@ -108,7 +108,8 @@ public final class TestFormatTrackingHSSFListener {
                public MockHSSFListener() {}
                private final List<Record> _records = new ArrayList<Record>();
 
-               public void processRecord(Record record) {
+               @Override
+        public void processRecord(Record record) {
                        _records.add(record);
                }
        }
index 08c1babe04f6ce22278269446e2d5ef2e6350cbd..c87021b36d011ca20fcffe9d6e412f198abe1719 100644 (file)
@@ -130,6 +130,7 @@ public final class TestHSSFEventFactory extends TestCase {
             return result;
         }
 
+        @Override
         public void processRecord(Record record) {
             records.add(record);
         }
index 228071af2464049dac4c3ca929af7b996f2a9a6e..5ed44a0f4a035a0f3da96a2783155381b078f598 100644 (file)
@@ -367,7 +367,8 @@ public final class TestMissingRecordAwareHSSFListener extends TestCase {
                private final List<Record> _records = new ArrayList<Record>();
                private boolean logToStdOut = false;
 
-               public void processRecord(Record record) {
+               @Override
+        public void processRecord(Record record) {
                        _records.add(record);
                        
                        if(record instanceof MissingRowDummyRecord) {
index 75a5980cf6f90131de9dc8ab86361844c22487f4..0a0b7894081627c511b2bc8779f06123c8b6d80d 100644 (file)
@@ -25,6 +25,7 @@ public final class TestDrawingManager2 extends TestCase {
     private DrawingManager2 drawingManager2;
     private EscherDggRecord dgg;
 
+    @Override
     protected void setUp() {
         dgg = new EscherDggRecord();
         dgg.setFileIdClusters( new EscherDggRecord.FileIdCluster[0] );
index fca517d23e4aacb396d25c3995f746ecad6526a1..0e13039340ac156eb6a9613d950aed8ffcba561e 100644 (file)
@@ -120,7 +120,8 @@ public final class TestSheet {
                public MergedCellListener() {
                        _count = 0;
                }
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        if (r instanceof MergeCellsRecord) {
                                _count++;
                        }
@@ -457,7 +458,8 @@ public final class TestSheet {
                public SizeCheckingRecordVisitor() {
                        _totalSize = 0;
                }
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
 
                        int estimatedSize=r.getRecordSize();
                        byte[] buf = new byte[estimatedSize];
@@ -554,7 +556,8 @@ public final class TestSheet {
                public IndexRecord getIndexRecord() {
                        return _indexRecord;
                }
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        if (r instanceof IndexRecord) {
                                if (_indexRecord != null) {
                                        throw new RuntimeException("too many index records");
index 0d88e2111b82ea255fa8dc25b77ee3f543b91ebc..6147358bccbebb9cf9a1573dbf98999b589b0c5e 100644 (file)
@@ -109,6 +109,7 @@ public final class TestWorkbook {
         assertNotNull(wb.getNameXPtg("ISODD", AggregatingUDFFinder.DEFAULT));
 
         FreeRefFunction NotImplemented = new FreeRefFunction() {
+            @Override
             public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
                 throw new RuntimeException("not implemented");
             }
index 1063c0c20811a5ffcd0723fad8c2014787ea9f46..d7d05ab459d81a8b93828e1364fa58b7f0ab5543 100644 (file)
@@ -58,7 +58,8 @@ public final class TestMergeCellsRecord extends TestCase {
        }
    
        private static final RecordVisitor dummyRecordVisitor = new RecordVisitor() {
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        // do nothing
                }
        };
index 8bf893639b6f5d6ec946b85b481253df2823595b..98bcc6ba4e38cac4da7bedc720d5ea466861a1c4 100644 (file)
@@ -66,7 +66,8 @@ public final class TestColumnInfoRecordsAggregate {
 
                private List<Record> _list = new ArrayList<Record>();
 
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        _list.add(r);
                }
 
index 7403c0c1bfe54bc30b5bfc9f512f380899718b22..f31c49d4488475312a76eb68873171e0b1653e76 100644 (file)
@@ -171,7 +171,8 @@ public final class TestValueRecordsAggregate {
                        _writeIndex = 0;
 
                }
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        r.serialize(_writeIndex, _buf);
                        _writeIndex += r.getRecordSize();
                }
@@ -396,7 +397,8 @@ public final class TestValueRecordsAggregate {
                final BlankStats bs = new BlankStats();
                RecordVisitor rv = new RecordVisitor() {
 
-                       public void visitRecord(Record r) {
+                       @Override
+            public void visitRecord(Record r) {
                                if (r instanceof MulBlankRecord) {
                                        MulBlankRecord mbr = (MulBlankRecord) r;
                                        bs.countMulBlankRecords++;
index 6c0f05cacb98cba8550975660a291cf71a68a96f..d65c37e7028235016e2d0c7249c6d53fb82804d7 100644 (file)
@@ -70,7 +70,8 @@ public final class TestChartTitleFormatRecord {
                        chartTitleFormatRecords = new ArrayList<ChartTitleFormatRecord>();
                }
 
-               public void processRecord(Record record) {
+               @Override
+        public void processRecord(Record record) {
                        if(record instanceof ChartTitleFormatRecord) {
                                chartTitleFormatRecords.add((ChartTitleFormatRecord)record);
                        }
index 4abebc866a0f12d6de40c80bb8b8db54b85f820a..1016f6d25bb4bd3d4f77294dfa6b566ee8f862dc 100644 (file)
@@ -47,6 +47,7 @@ public class HSSFTestHelper {
             return 1025;
         }
 
+        @Override
         public EscherDgRecord createDgRecord()
         {
             EscherDgRecord dg = new EscherDgRecord();
index c47fca762946c45990b2d697088401218d446367..b1586f0f125684e37128bcb7628471d97aaa4a7b 100644 (file)
@@ -42,7 +42,8 @@ public final class RecordInspector {
                        _list = new ArrayList<Record>(128);
                }
 
-               public void visitRecord(Record r) {
+               @Override
+        public void visitRecord(Record r) {
                        _list.add(r);
                }
 
index 6dbd4bce872e62cf67fa0f7e6d825c769a17b843..724d26432aae62722e9fee54516cc75a7cd06539 100644 (file)
@@ -30,6 +30,7 @@ public final class TestFontDetails extends TestCase {
     private Properties properties;
     private FontDetails fontDetails;
 
+    @Override
     protected void setUp() {
         properties = new Properties();
         properties.setProperty("font.Arial.height", "13");
index 5dd80cbaf45786a27f7517567b479d193a1f71f6..9e8c4a3ef0c3a6235879011256980cd714bf1629 100644 (file)
@@ -375,9 +375,11 @@ public final class TestFormulaEvaluatorBugs {
             return _countCacheMisses;
         }
 
+        @Override
         public void onCacheHit(int sheetIndex, int srcRowNum, int srcColNum, ValueEval result) {
             _countCacheHits++;
         }
+        @Override
         public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
             _countCacheMisses++;
         }
index e594fdec9622e6df09f9f4f554483598283c1fec..48d07466cb1e066da5d36b5049ec54733266fb6d 100644 (file)
@@ -36,6 +36,7 @@ public final class TestHSSFConditionalFormatting extends BaseTestConditionalForm
     public TestHSSFConditionalFormatting(){
         super(HSSFITestDataProvider.instance);
     }
+    @Override
     protected void assertColour(String hexExpected, Color actual) {
         assertNotNull("Colour must be given", actual);
         if (actual instanceof HSSFColor) {
index 88caed993640ecf661302d62696796b13ab5153d..dd334b01834e54a927ffab882a6973513559c881 100644 (file)
@@ -47,6 +47,7 @@ public final class TestHSSFDataFormat extends BaseTestDataFormat {
     /**
      * [Bug 49928] formatCellValue returns incorrect value for \u00a3 formatted cells
      */
+    @Override
     @Test
     public void test49928() throws IOException {
         HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("49928.xls");
@@ -68,6 +69,7 @@ public final class TestHSSFDataFormat extends BaseTestDataFormat {
     /**
      * [Bug 58532] Handle formats that go numnum, numK, numM etc 
      */
+    @Override
     @Test
     public void test58532() throws IOException {
         HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("FormatKM.xls");
index bd7ad3d2e8232dcdd42bee07f048c2c21b5a9652..53d799e95396edc0ccf629e98ed9858550e055d9 100644 (file)
@@ -128,6 +128,7 @@ public final class TestHSSFRow extends BaseTestRow {
         workbook.close();
     }
 
+    @Override
     @Test
     public void testRowHeight() throws IOException{
         HSSFWorkbook workbook = new HSSFWorkbook();
index 658e781843a45372575752dce1c01d2569bf0a3d..3401872146ebc085205d22484aab17f2295b447b 100644 (file)
@@ -124,7 +124,8 @@ public final class TestSanityChecker {
                final List<Record> records = Arrays.asList(recs);
                try {
                        new Runnable() {
-                               public void run() {
+                               @Override
+                public void run() {
                                        c.checkRecordOrder(records, check);
                                }
                        }.run();
index b95c576a996ccea3ccfe993d3b2907ff2675e011..b310180b29c492272f5cdf502269af2b47c27660 100644 (file)
@@ -478,6 +478,7 @@ public final class TestWorkbook {
         public int getCount() {
             return _count;
         }
+        @Override
         public void visitRecord(Record r) {
             if (r instanceof LabelSSTRecord) {
                 _count++;
index 43ee42941771dd5660d2ef773cc4519e2c15b8bc..d8a78582f5b4e37f2e76249a1985bfb5e38f4d4d 100644 (file)
@@ -51,7 +51,8 @@ public final class TestBiff8DecryptingStream {
                        _initialValue = initialValue;
                }
 
-               public int read() {
+               @Override
+        public int read() {
                        return (_initialValue+_position++) & 0xFF;
                }
        }
index a4c1a661e65b056b5841c09217ed2f60f70f2c56..4b597c1719d745e828ac9b48ca02a25f2644e197 100644 (file)
@@ -37,6 +37,7 @@ class Listener
      * @param event the POIFSReaderEvent
      */
 
+    @Override
     public void processPOIFSReaderEvent(POIFSReaderEvent event)
     {
     }
index 717e6e9632d38e6de686f50d9db1ad619eb88773..f04efbe9c0181f4fffe9a5eb70eaae4a2c60a55a 100644 (file)
@@ -105,6 +105,7 @@ public class ReaderWriter
      * @param event the POIFSReaderEvent
      */
 
+    @Override
     public void processPOIFSReaderEvent(final POIFSReaderEvent event)
     {
         DocumentInputStream istream = event.getStream();
@@ -167,6 +168,7 @@ public class ReaderWriter
      * @param event the POIFSWriterEvent
      */
 
+    @Override
     public void processPOIFSWriterEvent(final POIFSWriterEvent event)
     {
         try
index 769ffa62f49d579fcef7bb14bf6c0adafdec682a..01f668c45dcf4e32dad6bd6d8e5a31f7511804d3 100644 (file)
@@ -34,6 +34,7 @@ public class SlowInputStream extends FilterInputStream
         super(in);
     }
 
+    @Override
     public int read(byte[] b, int off, int len) throws IOException {
         return super.read(b, off, r.nextInt(len) + 1);
     }
index 801935865c0b64a3e656c0e8d248c30d87bb01b0..6aebd7488de89e77048fe7c62d92b4ee2895417c 100644 (file)
@@ -42,7 +42,8 @@ public final class TestDocumentInputStream extends TestCase {
    // any block size
    private static final int _buffer_size   = 6;
 
-       protected void setUp() throws Exception {
+       @Override
+    protected void setUp() throws Exception {
         int blocks = (_workbook_size + 511) / 512;
 
         _workbook_data = new byte[ 512 * blocks ];
index d659f1654f72555f0ae453da8e253fc614fb6a10..22449e5c6ceb64d9144b9ef9e5c6e7125413a6a1 100644 (file)
@@ -49,7 +49,8 @@ public final class TestEmptyDocument extends TestCase {
                POIFSFileSystem fs = new POIFSFileSystem();
                DirectoryEntry dir = fs.getRoot();
                dir.createDocument("Foo", 0, new POIFSWriterListener() {
-                       public void processPOIFSWriterEvent(POIFSWriterEvent event) {
+                       @Override
+            public void processPOIFSWriterEvent(POIFSWriterEvent event) {
                                _logger.log(POILogger.WARN, "written");
                        }
                });
@@ -74,7 +75,8 @@ public final class TestEmptyDocument extends TestCase {
                POIFSFileSystem fs = new POIFSFileSystem();
                DirectoryEntry dir = fs.getRoot();
                dir.createDocument("Bar", 1, new POIFSWriterListener() {
-                       public void processPOIFSWriterEvent(POIFSWriterEvent event) {
+                       @Override
+            public void processPOIFSWriterEvent(POIFSWriterEvent event) {
                                try {
                                        event.getStream().write(0);
                                } catch (IOException exception) {
@@ -83,7 +85,8 @@ public final class TestEmptyDocument extends TestCase {
                        }
                });
                dir.createDocument("Foo", 0, new POIFSWriterListener() {
-                       public void processPOIFSWriterEvent(POIFSWriterEvent event) {
+                       @Override
+            public void processPOIFSWriterEvent(POIFSWriterEvent event) {
                        }
                });
 
index 2f7c67f37936445546fa09cd35bfd3d2fb5f1f02..2bdcb0052c767db0ccfa29faa1e51bc33bff3272 100644 (file)
@@ -38,6 +38,7 @@ public final class TestFileSystemBugs extends TestCase {
     protected static POIDataSamples _ssSamples = POIDataSamples.getSpreadSheetInstance();
     
     protected List<NPOIFSFileSystem> openedFSs;
+    @Override
     protected void tearDown() throws Exception {
         if (openedFSs != null && !openedFSs.isEmpty()) {
             for (NPOIFSFileSystem fs : openedFSs) {
index 2655b4414097454a2359756c60920e2dac4e5579..779218f5bdd25f9a853d081e9e954474d153b027 100644 (file)
@@ -66,14 +66,16 @@ public final class TestPOIFSFileSystem extends TestCase {
                        _isClosed = false;
                }
 
-               public int read() throws IOException {
+               @Override
+        public int read() throws IOException {
                        int result = _is.read();
                        if(result >=0) {
                                checkRead(1);
                        }
                        return result;
                }
-               public int read(byte[] b, int off, int len) throws IOException {
+               @Override
+        public int read(byte[] b, int off, int len) throws IOException {
                        int result = _is.read(b, off, len);
                        checkRead(result);
                        return result;
@@ -85,7 +87,8 @@ public final class TestPOIFSFileSystem extends TestCase {
                                throw new MyEx();
                        }
                }
-               public void close() throws IOException {
+               @Override
+        public void close() throws IOException {
                        _isClosed = true;
                        _is.close();
                }
index 2c30d1b12d47e7330f36209c6b55e98c2311accd..09388c233e35911bffdff0ff495f4329ba5f67dc 100644 (file)
@@ -136,6 +136,7 @@ public final class TestPropertySorter extends TestCase {
      */
     private static final Comparator<Property> OldCaseSensitivePropertyComparator = new Comparator<Property>() {
 
+        @Override
         public int compare(Property o1, Property o2) {
             String name1  = o1.getName();
             String name2  = o2.getName();
index e94a534ab3de8f949e6b5352e4017d1e0f459314..f578129b687a41f4586d5f6e1116c0da1a1f4a08 100644 (file)
@@ -40,6 +40,7 @@ class LocalProperty
      * Method preWrite
      */
 
+    @Override
     protected void preWrite()
     {
     }
@@ -50,6 +51,7 @@ class LocalProperty
      * @return false
      */
 
+    @Override
     public boolean isDirectory()
     {
         return false;
index 020a9d3cce145aa824b8223cb893f2efcf1f89d5..13a1c52306433c5a729a8a087592ca70b50d6a2e 100644 (file)
@@ -41,6 +41,7 @@ class LocalProperty
      * do nothing
      */
 
+    @Override
     protected void preWrite()
     {
     }
@@ -49,6 +50,7 @@ class LocalProperty
      * @return false
      */
 
+    @Override
     public boolean isDirectory()
     {
         return false;
index 42a9d2c5f5b211b99b2dc2370c4e854792132848..c9a849ba23a4321dd87b6d32cc3cece480f76529 100644 (file)
@@ -136,6 +136,7 @@ public final class LocalRawDataBlockList extends RawDataBlockList {
      *
      * @return desired block
      */
+    @Override
     public ListManagedBlock remove(final int index)
         throws IOException
     {
@@ -165,6 +166,7 @@ public final class LocalRawDataBlockList extends RawDataBlockList {
      * @param index the index of the specified block; if the index is
      *              out of range, that's ok
      */
+    @Override
     public void zap(final int index)
     {
         ensureArrayExists();
@@ -182,6 +184,7 @@ public final class LocalRawDataBlockList extends RawDataBlockList {
         }
     }
     
+    @Override
     public int blockCount() {
        return _list.size();
     }
index 349d62f091fac832e52059f096f7d80827027849..a7af8af8f8c47b6dc646a1b450c7480851f04c52 100644 (file)
@@ -210,7 +210,8 @@ public final class TestRawDataBlock extends TestCase {
                        return true;
                }
 
-               public int read() {
+               @Override
+        public int read() {
                        if(pos >= data.length) {
                                return -1;
                        }
@@ -226,7 +227,8 @@ public final class TestRawDataBlock extends TestCase {
                 *  size, whichever is lower.
                 * Quite often will simply claim to have no data
                 */
-               public int read(byte[] b, int off, int len) {
+               @Override
+        public int read(byte[] b, int off, int len) {
                        // Keep the length within the chunk size
                        if(len > chunkSize) {
                                len = chunkSize;
@@ -252,7 +254,8 @@ public final class TestRawDataBlock extends TestCase {
                        return len;
                }
 
-               public int read(byte[] b) {
+               @Override
+        public int read(byte[] b) {
                        return read(b, 0, b.length);
                }
        }
index 24c6f7f91b8b82838542826101acb480cb4199bb..43a408383054b0113fbb5311505d1bf85288b676 100644 (file)
@@ -39,6 +39,7 @@ public class TestPresetGeometries {
         for(String name : shapes.keySet()) {
             CustomGeometry geom = shapes.get(name);
             Context ctx = new Context(geom, new Rectangle2D.Double(0, 0, 100, 100), new IAdjustableShape() {
+                @Override
                 public Guide getAdjustValue(String presetName) {
                     return null;
                 }
index b0d4b27f8b52bcaa5128ec16c8feafdbe72301d4..764201594ff7e009a0cbec491a98d946221192db 100644 (file)
@@ -48,6 +48,7 @@ public abstract class BaseTestExternalFunctions {
             //
         }
 
+        @Override
         public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
             if (args.length != 1 || !(args[0] instanceof StringEval)) {
                 return ErrorEval.VALUE_INVALID;
@@ -62,6 +63,7 @@ public abstract class BaseTestExternalFunctions {
             //
         }
 
+        @Override
         public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
             if (args.length != 1 || !(args[0] instanceof StringEval)) {
                 return ErrorEval.VALUE_INVALID;
index f8217764aab7ae90031e9aca5b9179110921841a..babbbf62c6c1f5d7cb905c41866d54b6c074383c 100644 (file)
@@ -27,32 +27,41 @@ import org.apache.poi.ss.formula.eval.ValueEval;
  * @author Josh Micich
  */
 public abstract class EvaluationListener implements IEvaluationListener {
-       public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
+       @Override
+    public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
                // do nothing
        }
-       public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
+       @Override
+    public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
                // do nothing
        }
-       public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
+       @Override
+    public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
                // do nothing
        }
-       public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
+       @Override
+    public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
                // do nothing
        }
-       public void onClearWholeCache() {
+       @Override
+    public void onClearWholeCache() {
                // do nothing
        }
-       public void onClearCachedValue(ICacheEntry entry) {
+       @Override
+    public void onClearCachedValue(ICacheEntry entry) {
                // do nothing
        }
-       public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
+       @Override
+    public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
                        EvaluationCell cell, ICacheEntry entry) {
                // do nothing
        }
-       public void sortDependentCachedValues(ICacheEntry[] entries) {
+       @Override
+    public void sortDependentCachedValues(ICacheEntry[] entries) {
                // do nothing
        }
-       public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
+       @Override
+    public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
                // do nothing
        }
 }
index 14e9805770dbf8333e0cec64289c22a0add58dde..6d87012b2ca391bee5ab29731f1476d140780c11 100644 (file)
@@ -67,7 +67,8 @@ public class TestEvaluationCache extends TestCase {
                private EvaluationCell getCell(ICacheEntry a) {
                        return _formulaCellsByCacheEntry.get(a);
                }
-               public int compare(ICacheEntry oa, ICacheEntry ob) {
+               @Override
+        public int compare(ICacheEntry oa, ICacheEntry ob) {
                        EvaluationCell a = getCell(oa);
                        EvaluationCell b = getCell(ob);
                        int cmp;
@@ -99,24 +100,29 @@ public class TestEvaluationCache extends TestCase {
                        _formulaCellsByCacheEntry = new HashMap<ICacheEntry,EvaluationCell>();
                        _plainCellLocsByCacheEntry = new HashMap<ICacheEntry, Loc>();
                }
-               public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
+               @Override
+        public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
                        log("hit", rowIndex, columnIndex, result);
                }
-               public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
+               @Override
+        public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
                        Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
                        _plainCellLocsByCacheEntry.put(entry, loc);
                        log("value", rowIndex, columnIndex, entry.getValue());
                }
-               public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
+               @Override
+        public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
                        _formulaCellsByCacheEntry.put(entry, cell);
                        HSSFCell hc = _book.getSheetAt(0).getRow(cell.getRowIndex()).getCell(cell.getColumnIndex());
                        log("start", cell.getRowIndex(), cell.getColumnIndex(), FormulaExtractor.getPtgs(hc));
                }
-               public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
+               @Override
+        public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
                        EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
                        log("end", cell.getRowIndex(), cell.getColumnIndex(), result);
                }
-               public void onClearCachedValue(ICacheEntry entry) {
+               @Override
+        public void onClearCachedValue(ICacheEntry entry) {
                        int rowIndex;
                        int columnIndex;
                        EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
@@ -133,15 +139,18 @@ public class TestEvaluationCache extends TestCase {
                        }
                        log("clear", rowIndex, columnIndex, entry.getValue());
                }
-               public void sortDependentCachedValues(ICacheEntry[] entries) {
+               @Override
+        public void sortDependentCachedValues(ICacheEntry[] entries) {
                        Arrays.sort(entries, new FormulaCellCacheEntryComparer(_formulaCellsByCacheEntry));
                }
-               public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
+               @Override
+        public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
                        EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
                        log("clear" + depth, cell.getRowIndex(), cell.getColumnIndex(), entry.getValue());
                }
 
-               public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
+               @Override
+        public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
                                EvaluationCell cell, ICacheEntry entry) {
                        log("changeFromBlank", rowIndex, columnIndex, entry.getValue());
                        if (entry.getValue() == null) { // hack to tell the difference between formula and plain value
index b6d118e89b3c3cbfbd93c128aba2650831dbb8ff..f816b6b413105a53e62cc4ea50c48b43caecd7ff 100644 (file)
@@ -52,6 +52,7 @@ public class TestFunctionRegistry extends TestCase {
         }
 
         FunctionEval.registerFunction("FISHER", new Function() {
+            @Override
             public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {
                 return ErrorEval.NA;
             }
@@ -69,6 +70,7 @@ public class TestFunctionRegistry extends TestCase {
         }
 
         AnalysisToolPak.registerFunction("CUBEMEMBERPROPERTY", new FreeRefFunction() {
+            @Override
             public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
                 return ErrorEval.NUM_ERROR;
             }
@@ -80,6 +82,7 @@ public class TestFunctionRegistry extends TestCase {
 
     public void testExceptions() {
         Function func = new Function() {
+            @Override
             public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {
                 return ErrorEval.NA;
             }
@@ -106,6 +109,7 @@ public class TestFunctionRegistry extends TestCase {
         }
 
         FreeRefFunction atpFunc = new FreeRefFunction() {
+            @Override
             public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
                 return ErrorEval.NUM_ERROR;
             }
index 9df80a9d7a4b7461ab960fb694cf39528f8f95d3..f92204d872a1ed893b6d7bb970dade1f2a9e0f41 100644 (file)
@@ -107,14 +107,17 @@ public class TestNetworkdaysFunction extends TestCase {
             return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
         }
 
+        @Override
         public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
             return null;
         }
 
+        @Override
         public TwoDEval getColumn(int columnIndex) {
             return null;
         }
 
+        @Override
         public TwoDEval getRow(int rowIndex) {
             return null;
         }
index 02af969a2b0b28182ea634bf5beb50e717eae115..bbd6e56aad78e3442af22a8eb396e271536a6282 100644 (file)
@@ -196,14 +196,17 @@ public class TestWorkdayFunction {
             return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
         }
 
+        @Override
         public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
             return null;
         }
 
+        @Override
         public TwoDEval getColumn(int columnIndex) {
             return null;
         }
 
+        @Override
         public TwoDEval getRow(int rowIndex) {
             return null;
         }
index 30500b19a9081bddc3d85b4818be536c776798ea..7a153e597db3c9ddfbb58f9ffe50b65025324bf2 100644 (file)
@@ -42,7 +42,8 @@ public final class TestExternalFunction extends TestCase {
                        //
                }
 
-               public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
+               @Override
+        public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
                        if (args.length != 1 || !(args[0] instanceof StringEval)) {
                                return ErrorEval.VALUE_INVALID;
                        }
@@ -56,7 +57,8 @@ public final class TestExternalFunction extends TestCase {
                        //
                }
 
-               public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
+               @Override
+        public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
                        if (args.length != 1 || !(args[0] instanceof StringEval)) {
                                return ErrorEval.VALUE_INVALID;
                        }
index b1b66c00da060d3316a4f375390a3eb8a9b13539..9db99b1e56eeae51cd9033908bbaefacb7905061 100644 (file)
@@ -136,7 +136,8 @@ public final class TestMultiSheetEval extends TestCase {
        }
 
 
-       protected void setUp() {
+       @Override
+    protected void setUp() {
                if (workbook == null) {
                        workbook = HSSFTestDataSamples.openSampleWorkbook(SS.FILENAME);
                        sheet = workbook.getSheet( SS.TEST_SHEET_NAME );
index 7493ffd087dec43995d4d90dc6908d27cb94db2f..6a644366049d51d11f5cdc86c95e169ea847b2b7 100644 (file)
@@ -75,10 +75,12 @@ public final class TestRangeEval extends TestCase {
                public MockRefEval(int rowIndex, int columnIndex) {
                        super(-1, -1, rowIndex, columnIndex);
                }
-               public ValueEval getInnerValueEval(int sheetIndex) {
+               @Override
+        public ValueEval getInnerValueEval(int sheetIndex) {
                        throw new RuntimeException("not expected to be called during this test");
                }
-               public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
+               @Override
+        public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
                                int relLastColIx) {
                        AreaI area = new OffsetArea(getRow(), getColumn(),
                                        relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);
@@ -94,27 +96,32 @@ public final class TestRangeEval extends TestCase {
                private MockAreaEval(int firstRow, int firstColumn, int lastRow, int lastColumn) {
                        super(firstRow, firstColumn, lastRow, lastColumn);
                }
-               public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
+               @Override
+        public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
                        throw new RuntimeException("not expected to be called during this test");
                }
+        @Override
         public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {
             throw new RuntimeException("not expected to be called during this test");
         }
-               public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
+               @Override
+        public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
                                int relLastColIx) {
                        AreaI area = new OffsetArea(getFirstRow(), getFirstColumn(),
                                        relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);
 
                        return new MockAreaEval(area);
                }
-               public TwoDEval getRow(int rowIndex) {
+               @Override
+        public TwoDEval getRow(int rowIndex) {
                        if (rowIndex >= getHeight()) {
                                throw new IllegalArgumentException("Invalid rowIndex " + rowIndex
                                                + ".  Allowable range is (0.." + getHeight() + ").");
                        }
                        return new MockAreaEval(rowIndex, getFirstColumn(), rowIndex, getLastColumn());
                }
-               public TwoDEval getColumn(int columnIndex) {
+               @Override
+        public TwoDEval getColumn(int columnIndex) {
                        if (columnIndex >= getWidth()) {
                                throw new IllegalArgumentException("Invalid columnIndex " + columnIndex
                                                + ".  Allowable range is (0.." + getWidth() + ").");
index ea1f97b7296b498c4b0a187910882354b94f78cd..e00dbafd32c4afa00e0b86fc4f579dfee9cadb37 100644 (file)
@@ -69,7 +69,8 @@ public class TestForkedEvaluator {
 
                // The stability classifier is useful to reduce memory consumption of caching logic
                IStabilityClassifier stabilityClassifier = new IStabilityClassifier() {
-                       public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
+                       @Override
+            public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
                                return sheetIndex == 1;
                        }
                };
index c5453ea39adbd2adb599911279ad59d908d6ab6e..cc8b5c52d3e9e48794616678ea583b47487a3ad6 100644 (file)
@@ -31,9 +31,11 @@ public abstract class AbstractNumericTestCase extends TestCase {
     public static final double POS_ZERO = 1E-4;
     public static final double DIFF_TOLERANCE_FACTOR = 1E-8;
 
+    @Override
     public void setUp() {
     }
 
+    @Override
     public void tearDown() {
     }
 
index 4d755ebabd949a27bf052e9151830d83a9921364..dfe8e53e9af34d3976afa9f03161b4d87b9edf65 100644 (file)
@@ -88,9 +88,11 @@ public final class EvalFactory {
                        super(firstRow, firstColumn, lastRow, lastColumn);
                        _values = values;
                }
-               public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
+               @Override
+        public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
                    return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
                }
+        @Override
         public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {
                        if (relativeRowIndex < 0 || relativeRowIndex >=getHeight()) {
                                throw new IllegalArgumentException("row index out of range");
@@ -102,7 +104,8 @@ public final class EvalFactory {
                        int oneDimensionalIndex = relativeRowIndex * width + relativeColumnIndex;
                        return _values[oneDimensionalIndex];
                }
-               public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
+               @Override
+        public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
                        if (relFirstRowIx < 0 || relFirstColIx < 0
                                        || relLastRowIx >= getHeight() || relLastColIx >= getWidth()) {
                                throw new RuntimeException("Operation not implemented on this mock object");
@@ -133,7 +136,8 @@ public final class EvalFactory {
                        }
                        return result;
                }
-               public TwoDEval getRow(int rowIndex) {
+               @Override
+        public TwoDEval getRow(int rowIndex) {
                        if (rowIndex >= getHeight()) {
                                throw new IllegalArgumentException("Invalid rowIndex " + rowIndex
                                                + ".  Allowable range is (0.." + getHeight() + ").");
@@ -144,7 +148,8 @@ public final class EvalFactory {
                        }
                        return new MockAreaEval(rowIndex, getFirstColumn(), rowIndex, getLastColumn(), values);
                }
-               public TwoDEval getColumn(int columnIndex) {
+               @Override
+        public TwoDEval getColumn(int columnIndex) {
                        if (columnIndex >= getWidth()) {
                                throw new IllegalArgumentException("Invalid columnIndex " + columnIndex
                                                + ".  Allowable range is (0.." + getWidth() + ").");
@@ -167,10 +172,12 @@ public final class EvalFactory {
                        super(-1, -1, ptg.getRow(), ptg.getColumn());
                        _value = value;
                }
-               public ValueEval getInnerValueEval(int sheetIndex) {
+               @Override
+        public ValueEval getInnerValueEval(int sheetIndex) {
                        return _value;
                }
-               public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
+               @Override
+        public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
                        throw new RuntimeException("Operation not implemented on this mock object");
                }
        }
index 0f3fff9a9885d904e3b25b7c9ec4656e50f4e529..134975e209e2fb01d28ac689e60be48a3abb9ae4 100644 (file)
@@ -92,6 +92,7 @@ public final class TestBin2Dec extends TestCase {
         HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
         WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
             
+            @Override
             public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
                 return true;
             }
index 337ad8518f8129b5b05d7ccfc69ae327eff3d600..c7c33ad9b21f6f1f208bf1a2b9f3e36d9252e499 100644 (file)
@@ -35,6 +35,7 @@ public final class TestCalendarFieldFunction extends TestCase {
     private HSSFCell cell11;
     private HSSFFormulaEvaluator evaluator;
 
+    @Override
     public void setUp() {
         HSSFWorkbook wb = new HSSFWorkbook();
         HSSFSheet sheet = wb.createSheet("new sheet");
index 0051f72e7c25de508b676dc881890b2e7c6b2a4a..45241f6afccd0890865c1f92b37815f9859f7412 100644 (file)
@@ -35,6 +35,7 @@ public final class TestDate extends TestCase {
     private HSSFCell cell11;
     private HSSFFormulaEvaluator evaluator;
 
+    @Override
     public void setUp() {
         HSSFWorkbook wb = new HSSFWorkbook();
         HSSFSheet sheet = wb.createSheet("new sheet");
index 0000b64b288eb0572206be4a7db4bc6694eb502b..c12dbe9e02f4269fa6accef891d9ec386ad055c2 100644 (file)
@@ -112,6 +112,7 @@ public final class TestDec2Bin extends TestCase {
         HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
         WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
             
+            @Override
             public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
                 return true;
             }
index e9b6c44e6a58b5a554e8856ca7ddc66b6fc830ce..6084d652d8b6dae0bce9ecc7d53190d85c2f2c9d 100644 (file)
@@ -137,6 +137,7 @@ public final class TestDec2Hex extends TestCase {
         HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
         WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
             
+            @Override
             public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
                 return true;
             }
index a3b971a357e167313e8654cff4cc004c5c9671ea..b1bcb2f85796b8b4f6ed4cbda865eb7e0270fe15 100644 (file)
@@ -90,6 +90,7 @@ public final class TestHex2Dec extends TestCase {
         HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
         WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
             
+            @Override
             public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
                 return true;
             }
index 32d7202d94b6f3cc69a32efcdf6a60c4107351c9..ab3aa987c7f8d8d63b2c176051fdf62e3a092ebe 100644 (file)
@@ -26,6 +26,7 @@ public class BaseTestUDFFinder {
 
     protected UDFFinder _instance;
     protected static final FreeRefFunction NotImplemented = new FreeRefFunction() {
+        @Override
         public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
             throw new RuntimeException("not implemented");
         }
index 91c204da3285f0f4ca1d00d57d165e93f8b1d3c4..29bc3cd8a79877d8e52042fc2e9112842a242d02 100644 (file)
@@ -217,6 +217,7 @@ public class BaseTestCellUtil {
      * @throws IOException\r
      * \r
      */\r
+    @Deprecated\r
     @SuppressWarnings("deprecated")\r
     @Test\r
     public void setAlignment() throws IOException {\r
@@ -369,6 +370,7 @@ public class BaseTestCellUtil {
      * @deprecated Replaced by {@link #setFillForegroundColorBeforeFillBackgroundColorEnum()}\r
      * @since POI 3.15 beta 3\r
      */\r
+    @Deprecated\r
     // bug 55555\r
     @Test\r
     public void setFillForegroundColorBeforeFillBackgroundColor() throws IOException {\r
index 471f36e7ec019a665c47aa8f19829c9dbd7d683c..3664aec712aa5a28fd9e87091246347dd08b5046 100644 (file)
@@ -57,7 +57,8 @@ public class TestCellWalk extends TestCase {
        private int cellsVisited = 0;
        private long ordinalNumberSum = 0L;
 
-       public void onCell(Cell cell, CellWalkContext ctx) {
+       @Override
+    public void onCell(Cell cell, CellWalkContext ctx) {
            ++cellsVisited;
            ordinalNumberSum += ctx.getOrdinalNumber();
        }
index 6eaaed59015f51f6f191cb0225ec8b499bf7d90e..fd56c143cddfcc3fcfc87d5990be939981c64f01 100644 (file)
@@ -78,6 +78,7 @@ class LocalTestNode
      * @param o
      */
 
+    @Override
     public int compareTo(Object o)
     {
         LocalTestNode other = ( LocalTestNode ) o;
@@ -98,6 +99,7 @@ class LocalTestNode
      * @return true if equal
      */
 
+    @Override
     public boolean equals(Object o)
     {
         if (o == null)
@@ -117,6 +119,7 @@ class LocalTestNode
     /**
      * @return hash code
      */
+    @Override
     public int hashCode()
     {
         return getKey().hashCode() ^ getValue().hashCode();