]> source.dussan.org Git - poi.git/commitdiff
use 'an'
authorPJ Fanning <fanningpj@apache.org>
Sat, 18 Mar 2023 11:35:26 +0000 (11:35 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 18 Mar 2023 11:35:26 +0000 (11:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908483 13f79535-47bb-0310-9956-ffa450edef68

45 files changed:
poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/EventExample.java
poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java
poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java
poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java
poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java
poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java
poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java
poi-scratchpad/src/main/java/org/apache/poi/hdgf/HDGFLZWCompressor.java
poi-scratchpad/src/main/java/org/apache/poi/hslf/record/FontCollection.java
poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java
poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextRun.java
poi-scratchpad/src/main/java/org/apache/poi/hwpf/HWPFDocument.java
poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java
poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java
poi/src/main/java/org/apache/poi/hpsf/Section.java
poi/src/main/java/org/apache/poi/hssf/record/ExternalNameRecord.java
poi/src/main/java/org/apache/poi/hssf/record/RecordInputStream.java
poi/src/main/java/org/apache/poi/hssf/record/chart/AreaRecord.java
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCell.java
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPicture.java
poi/src/main/java/org/apache/poi/poifs/crypt/Encryptor.java
poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java
poi/src/main/java/org/apache/poi/sl/draw/geom/IAdjustableShape.java
poi/src/main/java/org/apache/poi/ss/format/CellElapsedFormatter.java
poi/src/main/java/org/apache/poi/ss/formula/atp/NetworkdaysFunction.java
poi/src/main/java/org/apache/poi/ss/formula/ptg/DeletedArea3DPtg.java
poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java
poi/src/main/java/org/apache/poi/util/GenericRecordJsonWriter.java
poi/src/main/java/org/apache/poi/util/GenericRecordXmlWriter.java
poi/src/test/java/org/apache/poi/hssf/model/TestDrawingShapes.java
poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embedding.java [new file with mode: 0644]
poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embeding.java [deleted file]
poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestFormulaEvaluator.java
poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetShiftRows.java

index 0e71406b5884d9c4dca461f5e8eee9d4e8872dd7..88c3f020f47b9fc54a20c2b22afbc73ee7090206 100644 (file)
@@ -75,7 +75,7 @@ public class EventExample implements HSSFListener {
                 System.out.println("Cell found with value " + numrec.getValue()
                         + " at row " + numrec.getRow() + " and column " + numrec.getColumn());
                 break;
-                // SSTRecords store a array of unique strings used in Excel.
+                // SSTRecords store an array of unique strings used in Excel.
             case SSTRecord.sid:
                 sstrec = (SSTRecord) record;
                 for (int k = 0; k < sstrec.getNumUniqueStrings(); k++)
index 77282d980d5736e3dad10c068916c3027fb6b004..28c03a9bc4ad10160f0b8118d437fe39efad75eb 100644 (file)
@@ -190,7 +190,7 @@ public class InCellLists {
         String formatString = InCellLists.BULLET_CHARACTER + " @";
         int formatIndex = format.getFormat(formatString);
 
-        // Construct an HSSFCellStyle and set it's data formt to use the
+        // Construct an HSSFCellStyle and set its data format to use the
         // object created above.
         HSSFCellStyle bulletStyle = workbook.createCellStyle();
         bulletStyle.setDataFormat((short)formatIndex);
@@ -248,8 +248,8 @@ public class InCellLists {
                                    int increment) {
         StringBuilder buffer = new StringBuilder();
         int itemNumber = startingValue;
-        // Note that again, an HSSFCellStye object is required and that
-        // it's wrap text property should be set to 'true'
+        // Note that again, an HSSFCellStyle object is required and that
+        // its wrap text property should be set to 'true'
         HSSFCellStyle wrapStyle = workbook.createCellStyle();
         wrapStyle.setWrapText(true);
         // Note that the basic method is identical to the listInCell() method
@@ -282,7 +282,7 @@ public class InCellLists {
                                    HSSFCell cell) {
         StringBuilder buffer = new StringBuilder();
         // Note that again, an HSSFCellStye object is required and that
-        // it's wrap text property should be set to 'true'
+        // its wrap text property should be set to 'true'
         HSSFCellStyle wrapStyle = workbook.createCellStyle();
         wrapStyle.setWrapText(true);
         // Note that the basic method is identical to the listInCell() method
@@ -318,7 +318,7 @@ public class InCellLists {
                                      HSSFCell cell) {
         StringBuilder buffer = new StringBuilder();
         // Note that again, an HSSFCellStye object is required and that
-        // it's wrap text property should be set to 'true'
+        // its wrap text property should be set to 'true'
         HSSFCellStyle wrapStyle = workbook.createCellStyle();
         wrapStyle.setWrapText(true);
         // Step through the ArrayList of MultilLevelListItem instances.
@@ -381,7 +381,7 @@ public class InCellLists {
         StringBuilder buffer = new StringBuilder();
         int highLevelItemNumber = highLevelStartingValue;
         // Note that again, an HSSFCellStye object is required and that
-        // it's wrap text property should be set to 'true'
+        // its wrap text property should be set to 'true'
         HSSFCellStyle wrapStyle = workbook.createCellStyle();
         wrapStyle.setWrapText(true);
         // Step through the ArrayList of MultilLevelListItem instances.
@@ -436,7 +436,7 @@ public class InCellLists {
                                              HSSFCell cell) {
         StringBuilder buffer = new StringBuilder();
         // Note that again, an HSSFCellStye object is required and that
-        // it's wrap text property should be set to 'true'
+        // its wrap text property should be set to 'true'
         HSSFCellStyle wrapStyle = workbook.createCellStyle();
         wrapStyle.setWrapText(true);
         // Step through the ArrayList of MultilLevelListItem instances.
index 3b51afe1e1b1005a82de8b2117fb13ce0d1e6170..fcba54a263d4b8913eed481dc4ba5abd23fcf317 100644 (file)
@@ -49,12 +49,12 @@ import org.opentest4j.AssertionFailedError;
  *  to reveal problems which are introduced, but not covered (yet) by unit tests.
  *
  *  This test looks for any file under the test-data directory and tries to do some useful
- *  processing with it based on it's type.
+ *  processing with it based on its type.
  *
  *  The test is implemented as a junit {@link ParameterizedTest} test, which leads
  *  to one test-method call for each file (currently around 950 files are handled).
  *
- *  There is a mapping of extension to implementations of the interface
+ *  There is a mapping of extension to implementations of the interface
  *  {@link FileHandler} which defines how the file is loaded and which actions are
  *  tried with the file.
  *
index d418a2dc610cb789b955d8b15f092e40148a20b8..f95aad6a30b94527ad4fbe0ef2d24efdc3e9e314 100644 (file)
@@ -28,7 +28,7 @@ import java.util.regex.Pattern;
 import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
 
 /**
- * Represents a immutable MIME ContentType value (RFC 2616 &#167;3.7)
+ * Represents an immutable MIME ContentType value (RFC 2616 &#167;3.7)
  * <p>
  * media-type = type "/" subtype *( ";" parameter ) type = token<br>
  * subtype = token<br>
index 0941621d61b7a1efb0541d05529bc1e9b67bdf43..cfb9c6c83dc91d2f460ec0fd60f065908b0745c5 100644 (file)
@@ -93,7 +93,7 @@ import org.w3c.dom.events.MutationEvent;
 
 /**
  * <p>This class is the default entry point for XML signatures and can be used for
- * validating an existing signed office document and signing a office document.</p>
+ * validating an existing signed office document and signing an office document.</p>
  *
  * <p><b>Validating a signed office document</b></p>
  *
index 67397d6c50848c1c9be04a72c1ca5f7df554b695..934633827548a3a217f2013f58bb517c7ce79b5e 100644 (file)
@@ -47,7 +47,7 @@ public class XSLFBackground extends XSLFSimpleShape
     }
 
     /**
-     * background does not have a associated transform, therefore we return null
+     * background does not have an associated transform, therefore we return null
      *
      * @param create ignored
      *
index ef88000e8d0870335ec8c777075820496ff7b067..6c468f3c8ae72dd48ef09a68f3916d462be48c8a 100644 (file)
@@ -481,7 +481,7 @@ public class SXSSFCell extends CellBase {
     }
 
     /**
-     * Set a error value for the cell
+     * Set an error value for the cell
      *
      * @param value the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
index d454fc108290ac028babc994eda71abbcb974079..7d0964126f88b67861778904edcb3bfec5d6ee0b 100644 (file)
@@ -142,7 +142,7 @@ public class SXSSFSheet implements Sheet, OoxmlSheetExtensions {
                             "in the range [0," + _writer.getLastFlushedRow() + "] that is already written to disk.");
         }
 
-        // attempt to overwrite a existing row in the input template
+        // attempt to overwrite an existing row in the input template
         if(_sh.getPhysicalNumberOfRows() > 0 && rownum <= _sh.getLastRowNum() ) {
             throw new IllegalArgumentException(
                     "Attempting to write a row["+rownum+"] " +
index 4493c55962418d83dbc17317e356fb920cb66bf9..07f4d6d3146fbf689879b76d1accbd04986f2ec1 100644 (file)
@@ -817,7 +817,7 @@ public final class XSSFCell extends CellBase {
     }
 
     /**
-     * Set a error value for the cell
+     * Set an error value for the cell
      *
      * @param errorCode the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
@@ -832,7 +832,7 @@ public final class XSSFCell extends CellBase {
     }
 
     /**
-     * Set a error value for the cell
+     * Set an error value for the cell
      *
      * @param error the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
index 9fea94baffe4607820a6cfc1727c1d7193269df6..02bb6bc66adc932ff39ae321c9f7f90099c0f03a 100644 (file)
@@ -846,7 +846,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
     }
     
     /**
-     * Set the background fill color represented as a indexed color value.
+     * Set the background fill color represented as an indexed color value.
      * <p>
      * For example:
      * <pre>
@@ -916,7 +916,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
     }
 
     /**
-     * Set the foreground fill color as a indexed color value
+     * Set the foreground fill color as an indexed color value
      * <br>
      * <i>Note: Ensure Foreground color is set prior to background color.</i>
      * @param fg the color to use
@@ -1044,7 +1044,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
     }
 
     /**
-     * Set the color to use for the left border as a indexed color value
+     * Set the color to use for the left border as an indexed color value
      *
      * @param color the index of the color definition
      * @see org.apache.poi.ss.usermodel.IndexedColors
index ad65465671638d05ee6bcff379a1f8a1b60437b9..d7324431ba98d414d6190bc459cf8a640251ab0b 100644 (file)
@@ -145,7 +145,7 @@ public class XSSFColor extends ExtendedColor {
     }
 
     /**
-     * @return true if the ctColor has a alpha
+     * @return true if the ctColor has an alpha
      */
     public boolean hasAlpha() {
         return ctColor.isSetRgb() && ctColor.getRgb().length == 4;
index a31f669b263266c6d28f357a7b12c27449f855ad..c15b21ebf66f433a046554091dae129cfd064c5d 100644 (file)
@@ -1823,7 +1823,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su
     }
 
     /**
-     * Return a object representing a collection of shared objects used for styling content,
+     * Return an object representing a collection of shared objects used for styling content,
      * e.g. fonts, cell styles, colors, etc.
      */
     public StylesTable getStylesSource() {
index dd9dca7d162b2bf5acf04665ba88b64cade2e158..dc93a429b074842829f447a43391ca77305a1888 100644 (file)
@@ -67,7 +67,7 @@ public final class XSSFCellFill {
     }
 
     /**
-     * Set the background fill color represented as a indexed color value.
+     * Set the background fill color represented as an indexed color value.
      *
      * @param index - the color to use
      */
@@ -105,7 +105,7 @@ public final class XSSFCellFill {
     }
 
     /**
-     * Set the foreground fill color as a indexed color value
+     * Set the foreground fill color as an indexed color value
      *
      * @param index - the color to use
      */
index 6ab0ae99070a615999ed029e6693201b02ae2f3e..0e2d09dc918d338045d3c83c3d09365b8bad7760 100644 (file)
@@ -1123,7 +1123,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
     }
 
     /**
-     * copies content of a paragraph to a existing paragraph in the list paragraphs at position pos
+     * copies content of a paragraph to an existing paragraph in the list paragraphs at position pos
      */
     public void setParagraph(XWPFParagraph paragraph, int pos) {
         paragraphs.set(pos, paragraph);
index 9b21bb7db00590842a5d06585ce1e7c31cb86538..a22ad42d197a37083f96b4b049da2a11b4cc71b6 100644 (file)
@@ -105,7 +105,7 @@ public final class ZipFileAssert {
             ArchiveEntry entree;
             while ((entree = zis.getNextEntry()) != null) {
 
-                /* Create a array for the current entry */
+                /* Create an array for the current entry */
                 UnsynchronizedByteArrayOutputStream byteArray = new UnsynchronizedByteArrayOutputStream();
                 IOUtils.copy(zis, byteArray);
                 zipContent.put(entree.getName(), byteArray);
index 6ba6751052db952c25d431a93c1074adf6df6f63..44de570a8869213e07803fbac9bb8acd873135e5 100644 (file)
@@ -142,7 +142,7 @@ class TestXSLFSlide {
 
         XSLFTextShape sh2 = (XSLFTextShape)shapes1.get(1);
         assertEquals(
-                "Text in a autoshape is white\n" +
+                "Text in an autoshape is white\n" +
                 "Fill: RGB(148, 198,0)", sh2.getText());
         XSLFTextRun r2 = sh2.getTextParagraphs().get(0).getTextRuns().get(0);
         assertEquals("Century Gothic", r2.getFontFamily());
index a97ca36e949b44f764c87d07536e2639f1cc0d88..8e4bec3b61e28a6105784822d8a396e939a63625 100644 (file)
@@ -50,7 +50,7 @@ public final class TestXSSFChartSheet {
 
             assertFalse(sheet.iterator().hasNext(), "Row iterator for charts sheets should return zero rows");
 
-            //access to a arbitrary row
+            //access to an arbitrary row
             assertNull(sheet.getRow(1));
 
             //some basic get* accessors
index 9a8a7559a14a8dd4da0c6c60ca7302b4aae0117d..f299b6d94d5e4d4f3603e185ff61ea47acf86709 100644 (file)
@@ -177,7 +177,7 @@ import java.io.OutputStream;
             if (dataI > -1) {
                 // copy the last read byte into the dictionary.
                 // the example data compressor used self references, so we don't wait for filling the dictionary
-                // until we know if it's a un-/compressed token.
+                // until we know if it's an un-/compressed token.
                 dict[(posInp++) & DICT_MASK] = (byte)dataI;
             }
             // This is an unsigned byte read from the stream
index 70dcfca0feda4f1962bd637a605037eb98e08bbd..c400ac9c56c26847c8e1be46a2c1d9595b7150f1 100644 (file)
@@ -89,7 +89,7 @@ public final class FontCollection extends RecordContainer {
      * uniquely contains fonts based on their typeface, i.e. calling the method with FontInfo
      * objects having the same name results in the same HSLFFontInfo reference.
      *
-     * @param fontInfo the FontInfo configuration, can be a instance of {@link HSLFFontInfo},
+     * @param fontInfo the FontInfo configuration, can be an instance of {@link HSLFFontInfo},
      *      {@link HSLFFontInfoPredefined} or a custom implementation
      * @return the register HSLFFontInfo object
      */
index 1447eab4b17efec58571ebbb453bd9b861be797b..1239fe686fd0ca94a9c47b0f1ff575c62fb2f1a8 100644 (file)
@@ -1034,7 +1034,7 @@ public final class HSLFSlideShow extends POIDocument implements SlideShow<HSLFSh
     }
 
     /**
-     * Add a embedded object to this presentation
+     * Add an embedded object to this presentation
      *
      * @return 0-based index of the embedded object
      */
index a30281eeeb0ab8edc1ff33aa203e0edc4ac1eb01..5947765e3c747e0421e22684d722b6e7ae7ddd54 100644 (file)
@@ -413,7 +413,7 @@ public final class HSLFTextRun implements TextRun {
     }
 
     /**
-     * Sets color of the text, as a int bgr.
+     * Sets color of the text, as an int bgr.
      * (PowerPoint stores as BlueGreenRed, not the more
      *  usual RedGreenBlue)
      * @see Color
index 5a4296f8e1cf9a8fc129dc72ed20488506248c56..53c37ffe8fba88b2a003ef2ec0116724df748cf2 100644 (file)
@@ -104,7 +104,7 @@ public final class HWPFDocument extends HWPFDocumentCore {
     private DocumentProperties _dop;
 
     /**
-     * Contains text of the document wrapped in a obfuscated Word data
+     * Contains text of the document wrapped in an obfuscated Word data
      * structure
      */
     private ComplexFileTable _cft;
@@ -688,7 +688,7 @@ public final class HWPFDocument extends HWPFDocumentCore {
 
         /*
          * clx (encoding of the sprm lists for a complex file and piece table
-         * for a any file) Written immediately after the end of the previously
+         * for an any file) Written immediately after the end of the previously
          * recorded structure. This is recorded in all Word documents
          *
          * Microsoft Office Word 97-2007 Binary File Format (.doc)
index b47b02e53b5bad456b2d69e5f407da1b904bcc9d..984e86eb86059d14b36604ee32e550b715f62053 100644 (file)
@@ -29,7 +29,7 @@ import org.apache.poi.util.Beta;
  * If an implementation doesn't provide a property, the getter will return {@code null} -
  * if the value is unset, a default value will be returned.<p>
  *
- * Setting a unsupported property results in an {@link UnsupportedOperationException}.
+ * Setting an unsupported property results in an {@link UnsupportedOperationException}.
  *
  * @since POI 3.17-beta2
  *
index aff4e213f97b5cd08cca4e988fb97a15ea0b17a3..c6e71ea0990b2552bca2a81b48e5a4abdfb9a03b 100644 (file)
@@ -28,7 +28,7 @@ import org.apache.poi.util.IOUtils;
 import org.apache.poi.util.LittleEndian;
 
 /**
- * This record is used whenever a escher record is encountered that
+ * This record is used whenever an escher record is encountered that
  * we do not explicitly support.
  */
 public final class UnknownEscherRecord extends EscherRecord {
index 5ebaf43ad336a3543c9f36859cb12da02bc0dbd6..09ce055d34c289811c19abaf704cc768a3896a2b 100644 (file)
@@ -131,7 +131,7 @@ public class Section {
          */
         int offFix = (int)LittleEndian.getUInt(src, offset + ClassID.LENGTH);
 
-        // some input files have a invalid (padded?) offset, which need to be fixed
+        // some input files have an invalid (padded?) offset, which need to be fixed
         // search for beginning of size field
         if (src[offFix] == 0) {
             for (int i=0; i<3 && src[offFix] == 0; i++,offFix++);
index 195b0593f6e4b3b4fd9cb641dd80ef278f3d8ce2..3b58817cecce5228ece6891f9186b705b3f7db0c 100644 (file)
@@ -127,7 +127,7 @@ public final class ExternalNameRecord extends StandardRecord {
     /**
      * For OLE and DDE, links can be either 'automatic' or 'manual'
      *
-     * @return {@code true} if this is a automatic link
+     * @return {@code true} if this is an automatic link
      */
     public boolean isAutomaticLink() {
         return (field_1_option_flag & OPT_AUTOMATIC_LINK) != 0;
index a64d86b9d0a44e205f6ca672145b4f3e411322b8..b41c2b91461bde5dec2262142892f00cc5cc3552 100644 (file)
@@ -447,7 +447,7 @@ public final class RecordInputStream implements LittleEndianInput {
      *
      * @return all byte data for the current record
      *
-     * @deprecated POI 2.0 Best to write a input stream that wraps this one
+     * @deprecated POI 2.0 Best to write an input stream that wraps this one
      *             where there is special sub record that may overlap continue
      *             records.
      */
index 93462b4878b50a7d1da83d477d14874a1103b914..6babe30755600c1dcdc3961aad5e4080c2ff1af5 100644 (file)
@@ -29,7 +29,7 @@ import org.apache.poi.util.GenericRecordUtil;
 import org.apache.poi.util.LittleEndianOutput;
 
 /**
- * The area record is used to define a area chart.
+ * The area record is used to define an area chart.
  */
 public final class AreaRecord extends StandardRecord {
     public static final short sid = 0x101A;
index 7e5f7f5fb7075bb7e2f154e7995053ec3f284782..76eadaabe48a7bfce62601d2a1790c721a910121 100644 (file)
@@ -786,7 +786,7 @@ public class HSSFCell extends CellBase {
     }
 
     /**
-     * set a error value for the cell
+     * set an error value for the cell
      *
      * @param errorCode the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
@@ -802,7 +802,7 @@ public class HSSFCell extends CellBase {
         setCellErrorValue(error);
     }
     /**
-     * set a error value for the cell
+     * set an error value for the cell
      *
      * @param error the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
index 876b6f245a4017e642615453c534404850b03544..716e215bbc2a0c161938e359d7b9a2cfe836c417 100644 (file)
@@ -370,7 +370,7 @@ public final class HSSFPatriarch implements HSSFShapeContainer, Drawing<HSSFShap
     }
 
     /**
-     * Returns a unmodifiable list of all shapes contained by the patriarch.
+     * Returns an unmodifiable list of all shapes contained by the patriarch.
      */
     @Override
     public List<HSSFShape> getChildren() {
index 29b163ce67b4eb347c5e6f09275171b854bb4bec..42fa643a36cdddcb854ca26416b0af4a3c1f1484 100644 (file)
@@ -40,7 +40,7 @@ import org.apache.poi.ss.util.ImageUtils;
 import org.apache.poi.util.StringUtil;
 
 /**
- * Represents a escher picture.  Eg. A GIF, JPEG etc...
+ * Represents an escher picture.  Eg. A GIF, JPEG etc...
  */
 public class HSSFPicture extends HSSFSimpleShape implements Picture {
 
index 0e2581a64e431ec78d8139a6aa26f45ce48082fe..746d8fa5fd011b95ba32607854a636c874bf42e4 100644 (file)
@@ -45,7 +45,7 @@ public abstract class Encryptor implements GenericRecord {
     }
 
     /**
-     * Return a output stream for encrypted data.
+     * Return an output stream for encrypted data.
      *
      * @param dir the node to write to
      * @return encrypted stream
index fe7afec9eb4941d86ecc2a437f015ab17d2380f7..a570b9f892cfd6eda7119d53089c5daf9ba6714a 100644 (file)
@@ -925,9 +925,9 @@ public class SLGraphics extends Graphics2D implements Cloneable {
      * <p>
      * The area inside the polygon is defined using an
      * even-odd fill rule, also known as the alternating rule.
-     * @param        xPoints   a an array of <code>x</code> coordinates.
-     * @param        yPoints   a an array of <code>y</code> coordinates.
-     * @param        nPoints   the total number of points.
+     * @param        xPoints   an array of <code>x</code> coordinates.
+     * @param        yPoints   an array of <code>y</code> coordinates.
+     * @param        nPoints   the total number of points.
      * @see          Graphics#drawPolygon(int[], int[], int)
      */
     public void fillPolygon(int[] xPoints, int[] yPoints,
@@ -994,9 +994,9 @@ public class SLGraphics extends Graphics2D implements Cloneable {
      * 1&nbsp;&le;&nbsp;<i>i</i>&nbsp;&le;&nbsp;<code>nPoints</code>.
      * The figure is automatically closed by drawing a line connecting
      * the final point to the first point, if those points are different.
-     * @param        xPoints   a an array of <code>x</code> coordinates.
-     * @param        yPoints   a an array of <code>y</code> coordinates.
-     * @param        nPoints   the total number of points.
+     * @param        xPoints   an array of <code>x</code> coordinates.
+     * @param        yPoints   an array of <code>y</code> coordinates.
+     * @param        nPoints   the total number of points.
      * @see          Graphics#fillPolygon(int[],int[],int)
      * @see          Graphics#drawPolyline
      */
index 7d6a2d110248e98c07fd44bde66150f1c2b834a5..ea4768c5417b0f01447d13867a7943f9a68b4ff1 100644 (file)
@@ -28,7 +28,7 @@ package org.apache.poi.sl.draw.geom;
 public interface IAdjustableShape {
     /**
      *
-     * @param  name name of a adjust value, e.g. adj1
+     * @param  name name of an adjust value, e.g. adj1
      * @return adjust guide defined in the shape or null
      */
     GuideIf getAdjustValue(String name);
index 1505ba6f28ad75eafa7cac7c71dd57273ad7434c..43069d2eabe61c0d0c959928879a1181beff31fd 100644 (file)
@@ -124,7 +124,7 @@ public class CellElapsedFormatter extends CellFormatter {
     }
 
     /**
-     * Creates a elapsed time formatter.
+     * Creates an elapsed time formatter.
      *
      * @param pattern The pattern to parse.
      */
index da57eef5e1ab6bb7b9f5b8ab994087079eaa1451..bdcf7901bdb9dca048560d89e5575f163e13d6f7 100644 (file)
@@ -51,7 +51,7 @@ final class NetworkdaysFunction implements FreeRefFunction {
     }
 
     /**
-     * Evaluate for NETWORKDAYS. Given two dates and a optional date or interval of holidays, determines how many working days are there
+     * Evaluate for NETWORKDAYS. Given two dates and an optional date or interval of holidays, determines how many working days are there
      * between those dates.
      *
      * @return {@link ValueEval} for the number of days between two dates.
index fb3aed7c919187da49049ba87a3460a448705f09..629db662a37a0e35dc1d645e9af288abb0398fdc 100644 (file)
@@ -29,7 +29,7 @@ import org.apache.poi.util.LittleEndianOutput;
 
 /**
  * Deleted Area 3D Ptg - 3D referecnce (Sheet + Area)<p>
- * Defined a area in Extern Sheet.
+ * Defined an area in Extern Sheet.
  *
  * @version 1.0-pre
  */
index d458027bc7a3fbe4d5835be81549c14445127a64..bca585690369b3636bb10126f20a31b9e3436380 100644 (file)
@@ -330,7 +330,7 @@ public interface Cell {
      void setCellValue(boolean value);
 
     /**
-     * Set a error value for the cell
+     * Set an error value for the cell
      *
      * @param value the error value to set this cell to.  For formulas, we'll set the
      *        precalculated value , for errors we'll set
index f282907c94b06264f5d14a62504c109d50e2a0d5..370a02f672320e2de710277461823d6d4fc8c837 100644 (file)
@@ -76,7 +76,7 @@ public class GenericRecordJsonWriter implements Closeable {
          * @param name the name of the property
          * @param object the value of the property
          * @return {@code true}, if the element was handled and output produced,
-         *   The provided methods can be overridden and a implementation can return {@code false},
+         *   The provided methods can be overridden and an implementation can return {@code false},
          *   if the element hasn't been written to the stream
          */
         boolean print(GenericRecordJsonWriter record, String name, Object object);
index 793c1e845fc96cbec5fddea2c23ff71a2358f29b..b812a3d31c4bb791571fcab12392e575ffadf19b 100644 (file)
@@ -68,7 +68,7 @@ public class GenericRecordXmlWriter implements Closeable {
          * @param name the name of the property
          * @param object the value of the property
          * @return {@code true}, if the element was handled and output produced,
-         *   The provided methods can be overridden and a implementation can return {@code false},
+         *   The provided methods can be overridden and an implementation can return {@code false},
          *   if the element hasn't been written to the stream
          */
         boolean print(GenericRecordXmlWriter record, String name, Object object);
index 1ca797067ffa7c65d3ee922cd893045d27bdbe8f..070ee2516124868e132a41b31ad78141018a5fda 100644 (file)
@@ -274,7 +274,7 @@ class TestDrawingShapes {
     }
 
 
-    /* assert shape properties when reading shapes from a existing workbook */
+    /* assert shape properties when reading shapes from an existing workbook */
     @Test
     void testReadExistingRectangle() throws IOException {
         try (HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("drawings.xls")) {
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embedding.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embedding.java
new file mode 100644 (file)
index 0000000..ca892b9
--- /dev/null
@@ -0,0 +1,152 @@
+/* ====================================================================
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+==================================================================== */
+
+package org.apache.poi.hssf.usermodel;
+
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.List;
+
+import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
+import org.apache.poi.POIDataSamples;
+import org.apache.poi.hssf.HSSFTestDataSamples;
+import org.apache.poi.poifs.filesystem.DirectoryNode;
+import org.apache.poi.poifs.filesystem.Ole10Native;
+import org.apache.poi.poifs.filesystem.POIFSFileSystem;
+import org.apache.poi.ss.usermodel.ClientAnchor.AnchorType;
+import org.apache.poi.ss.usermodel.CreationHelper;
+import org.apache.poi.util.LocaleUtil;
+import org.junit.jupiter.api.Test;
+
+final class TestOLE2Embedding {
+
+    @Test
+    void testEmbedding() throws Exception {
+        // This used to break, until bug #43116 was fixed
+        try (HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook("ole2-embedding.xls")) {
+            // Check we can get at the Escher layer still
+            assertDoesNotThrow(workbook::getAllPictures);
+        }
+    }
+
+    @Test
+    void testEmbeddedObjects() throws Exception {
+        try (HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook("ole2-embedding.xls")) {
+            List<HSSFObjectData> objects = workbook.getAllEmbeddedObjects();
+            assertEquals(2, objects.size(), "Wrong number of objects");
+            assertEquals("MBD06CAB431", objects.get(0).getDirectory().getName(), "Wrong name for first object");
+            assertEquals("MBD06CAC85A", objects.get(1).getDirectory().getName(), "Wrong name for second object");
+        }
+    }
+
+    @Test
+    void testReallyEmbedSomething() throws Exception {
+        try (HSSFWorkbook wb1 = new HSSFWorkbook();
+             POIFSFileSystem pptPoifs = getSamplePPT();
+             POIFSFileSystem xlsPoifs = getSampleXLS()) {
+            HSSFSheet sheet = wb1.createSheet();
+            HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
+
+            byte[] pictureData = HSSFTestDataSamples.getTestDataFileContent("logoKarmokar4.png");
+            byte[] picturePPT = POIDataSamples.getSlideShowInstance().readFile("clock.jpg");
+            int imgIdx = wb1.addPicture(pictureData, HSSFWorkbook.PICTURE_TYPE_PNG);
+
+            int pptIdx = wb1.addOlePackage(pptPoifs, "Sample-PPT", "sample.ppt", "sample.ppt");
+            int imgPPT = wb1.addPicture(picturePPT, HSSFWorkbook.PICTURE_TYPE_JPEG);
+            int xlsIdx = wb1.addOlePackage(xlsPoifs, "Sample-XLS", "sample.xls", "sample.xls");
+            int txtIdx = wb1.addOlePackage(getSampleTXT(), "Sample-TXT", "sample.txt", "sample.txt");
+
+            int rowoffset = 5;
+            int coloffset = 5;
+
+            CreationHelper ch = wb1.getCreationHelper();
+            HSSFClientAnchor anchor = (HSSFClientAnchor) ch.createClientAnchor();
+            anchor.setAnchor((short) (2 + coloffset), 1 + rowoffset, 0, 0, (short) (3 + coloffset), 5 + rowoffset, 0, 0);
+            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
+
+            patriarch.createObjectData(anchor, pptIdx, imgPPT);
+
+            anchor = (HSSFClientAnchor) ch.createClientAnchor();
+            anchor.setAnchor((short) (5 + coloffset), 1 + rowoffset, 0, 0, (short) (6 + coloffset), 5 + rowoffset, 0, 0);
+            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
+
+            patriarch.createObjectData(anchor, xlsIdx, imgIdx);
+
+            anchor = (HSSFClientAnchor) ch.createClientAnchor();
+            anchor.setAnchor((short) (3 + coloffset), 10 + rowoffset, 0, 0, (short) (5 + coloffset), 11 + rowoffset, 0, 0);
+            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
+
+            patriarch.createObjectData(anchor, txtIdx, imgIdx);
+
+            anchor = (HSSFClientAnchor) ch.createClientAnchor();
+            anchor.setAnchor((short) (1 + coloffset), -2 + rowoffset, 0, 0, (short) (7 + coloffset), 14 + rowoffset, 0, 0);
+            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
+
+            HSSFSimpleShape circle = patriarch.createSimpleShape(anchor);
+            circle.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);
+            circle.setNoFill(true);
+
+            try (HSSFWorkbook wb2 = HSSFTestDataSamples.writeOutAndReadBack(wb1)) {
+                UnsynchronizedByteArrayOutputStream bos = new UnsynchronizedByteArrayOutputStream();
+                HSSFObjectData od = wb2.getAllEmbeddedObjects().get(0);
+                Ole10Native ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
+                bos.reset();
+                pptPoifs.writeFilesystem(bos);
+                assertArrayEquals(ole10.getDataBuffer(), bos.toByteArray());
+
+                od = wb2.getAllEmbeddedObjects().get(1);
+                ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
+                bos.reset();
+                xlsPoifs.writeFilesystem(bos);
+                assertArrayEquals(ole10.getDataBuffer(), bos.toByteArray());
+
+                od = wb2.getAllEmbeddedObjects().get(2);
+                ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
+                assertArrayEquals(ole10.getDataBuffer(), getSampleTXT());
+            }
+        }
+    }
+
+    static POIFSFileSystem getSamplePPT() throws IOException {
+        // scratchpad classes are not available, so we use something pre-cooked
+        InputStream is = POIDataSamples.getSlideShowInstance().openResourceAsStream("with_textbox.ppt");
+        POIFSFileSystem poifs = new POIFSFileSystem(is);
+        is.close();
+
+        return poifs;
+    }
+
+    static POIFSFileSystem getSampleXLS() throws IOException {
+        UnsynchronizedByteArrayOutputStream bos = new UnsynchronizedByteArrayOutputStream();
+        try (HSSFWorkbook wb = new HSSFWorkbook()) {
+            HSSFSheet sheet = wb.createSheet();
+            sheet.createRow(5).createCell(2).setCellValue("yo dawg i herd you like embeddet objekts, so we put an ole in your ole so you can save a file while you save a file");
+
+            wb.write(bos);
+        }
+
+        return new POIFSFileSystem(bos.toInputStream());
+    }
+
+    static byte[] getSampleTXT() {
+        return "All your base are belong to us".getBytes(LocaleUtil.CHARSET_1252);
+    }
+}
\ No newline at end of file
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embeding.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestOLE2Embeding.java
deleted file mode 100644 (file)
index 21007ce..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-/* ====================================================================
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-==================================================================== */
-
-package org.apache.poi.hssf.usermodel;
-
-import static org.junit.jupiter.api.Assertions.assertArrayEquals;
-import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-
-import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
-import org.apache.poi.POIDataSamples;
-import org.apache.poi.hssf.HSSFTestDataSamples;
-import org.apache.poi.poifs.filesystem.DirectoryNode;
-import org.apache.poi.poifs.filesystem.Ole10Native;
-import org.apache.poi.poifs.filesystem.POIFSFileSystem;
-import org.apache.poi.ss.usermodel.ClientAnchor.AnchorType;
-import org.apache.poi.ss.usermodel.CreationHelper;
-import org.apache.poi.util.LocaleUtil;
-import org.junit.jupiter.api.Test;
-
-final class TestOLE2Embeding {
-
-    @Test
-    void testEmbeding() throws Exception {
-        // This used to break, until bug #43116 was fixed
-        try (HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook("ole2-embedding.xls")) {
-            // Check we can get at the Escher layer still
-            assertDoesNotThrow(workbook::getAllPictures);
-        }
-    }
-
-    @Test
-    void testEmbeddedObjects() throws Exception {
-        try (HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook("ole2-embedding.xls")) {
-            List<HSSFObjectData> objects = workbook.getAllEmbeddedObjects();
-            assertEquals(2, objects.size(), "Wrong number of objects");
-            assertEquals("MBD06CAB431", objects.get(0).getDirectory().getName(), "Wrong name for first object");
-            assertEquals("MBD06CAC85A", objects.get(1).getDirectory().getName(), "Wrong name for second object");
-        }
-    }
-
-    @Test
-    void testReallyEmbedSomething() throws Exception {
-        try (HSSFWorkbook wb1 = new HSSFWorkbook();
-             POIFSFileSystem pptPoifs = getSamplePPT();
-             POIFSFileSystem xlsPoifs = getSampleXLS()) {
-            HSSFSheet sheet = wb1.createSheet();
-            HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
-
-            byte[] pictureData = HSSFTestDataSamples.getTestDataFileContent("logoKarmokar4.png");
-            byte[] picturePPT = POIDataSamples.getSlideShowInstance().readFile("clock.jpg");
-            int imgIdx = wb1.addPicture(pictureData, HSSFWorkbook.PICTURE_TYPE_PNG);
-
-            int pptIdx = wb1.addOlePackage(pptPoifs, "Sample-PPT", "sample.ppt", "sample.ppt");
-            int imgPPT = wb1.addPicture(picturePPT, HSSFWorkbook.PICTURE_TYPE_JPEG);
-            int xlsIdx = wb1.addOlePackage(xlsPoifs, "Sample-XLS", "sample.xls", "sample.xls");
-            int txtIdx = wb1.addOlePackage(getSampleTXT(), "Sample-TXT", "sample.txt", "sample.txt");
-
-            int rowoffset = 5;
-            int coloffset = 5;
-
-            CreationHelper ch = wb1.getCreationHelper();
-            HSSFClientAnchor anchor = (HSSFClientAnchor) ch.createClientAnchor();
-            anchor.setAnchor((short) (2 + coloffset), 1 + rowoffset, 0, 0, (short) (3 + coloffset), 5 + rowoffset, 0, 0);
-            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
-
-            patriarch.createObjectData(anchor, pptIdx, imgPPT);
-
-            anchor = (HSSFClientAnchor) ch.createClientAnchor();
-            anchor.setAnchor((short) (5 + coloffset), 1 + rowoffset, 0, 0, (short) (6 + coloffset), 5 + rowoffset, 0, 0);
-            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
-
-            patriarch.createObjectData(anchor, xlsIdx, imgIdx);
-
-            anchor = (HSSFClientAnchor) ch.createClientAnchor();
-            anchor.setAnchor((short) (3 + coloffset), 10 + rowoffset, 0, 0, (short) (5 + coloffset), 11 + rowoffset, 0, 0);
-            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
-
-            patriarch.createObjectData(anchor, txtIdx, imgIdx);
-
-            anchor = (HSSFClientAnchor) ch.createClientAnchor();
-            anchor.setAnchor((short) (1 + coloffset), -2 + rowoffset, 0, 0, (short) (7 + coloffset), 14 + rowoffset, 0, 0);
-            anchor.setAnchorType(AnchorType.DONT_MOVE_AND_RESIZE);
-
-            HSSFSimpleShape circle = patriarch.createSimpleShape(anchor);
-            circle.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);
-            circle.setNoFill(true);
-
-            try (HSSFWorkbook wb2 = HSSFTestDataSamples.writeOutAndReadBack(wb1)) {
-                UnsynchronizedByteArrayOutputStream bos = new UnsynchronizedByteArrayOutputStream();
-                HSSFObjectData od = wb2.getAllEmbeddedObjects().get(0);
-                Ole10Native ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
-                bos.reset();
-                pptPoifs.writeFilesystem(bos);
-                assertArrayEquals(ole10.getDataBuffer(), bos.toByteArray());
-
-                od = wb2.getAllEmbeddedObjects().get(1);
-                ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
-                bos.reset();
-                xlsPoifs.writeFilesystem(bos);
-                assertArrayEquals(ole10.getDataBuffer(), bos.toByteArray());
-
-                od = wb2.getAllEmbeddedObjects().get(2);
-                ole10 = Ole10Native.createFromEmbeddedOleObject((DirectoryNode) od.getDirectory());
-                assertArrayEquals(ole10.getDataBuffer(), getSampleTXT());
-            }
-        }
-    }
-
-    static POIFSFileSystem getSamplePPT() throws IOException {
-        // scratchpad classes are not available, so we use something pre-cooked
-        InputStream is = POIDataSamples.getSlideShowInstance().openResourceAsStream("with_textbox.ppt");
-        POIFSFileSystem poifs = new POIFSFileSystem(is);
-        is.close();
-
-        return poifs;
-    }
-
-    static POIFSFileSystem getSampleXLS() throws IOException {
-        UnsynchronizedByteArrayOutputStream bos = new UnsynchronizedByteArrayOutputStream();
-        try (HSSFWorkbook wb = new HSSFWorkbook()) {
-            HSSFSheet sheet = wb.createSheet();
-            sheet.createRow(5).createCell(2).setCellValue("yo dawg i herd you like embeddet objekts, so we put a ole in your ole so you can save a file while you save a file");
-
-            wb.write(bos);
-        }
-
-        return new POIFSFileSystem(bos.toInputStream());
-    }
-
-    static byte[] getSampleTXT() {
-        return "All your base are belong to us".getBytes(LocaleUtil.CHARSET_1252);
-    }
-}
\ No newline at end of file
index 28be1eaa1c8719f54a1d0182eaabc7f2f71b0261..8f621a14280eb9b8ef8a7e5ca055bd54e34df27c 100644 (file)
@@ -303,7 +303,7 @@ public abstract class BaseTestFormulaEvaluator {
             try {
                 fe.evaluateInCell(cellB1);
             } catch (IllegalStateException e) {
-                if (e.getMessage().equalsIgnoreCase("Cannot get a numeric value from a error formula cell")) {
+                if (e.getMessage().equalsIgnoreCase("Cannot get a numeric value from an error formula cell")) {
                     fail("Identified bug 46479a");
                 }
             }
index 60ceb9b3cc58436152ab8bd0883a73d9579b28f7..b6c6330a31b57ae820b5280f6cf428364b271677 100644 (file)
@@ -77,7 +77,7 @@ public abstract class BaseTestSheetShiftRows {
                 assertEquals(5, s.getRow(4).getPhysicalNumberOfCells());
 
                 // Shift rows 1-3 down 3 in the current one.  This tests when
-                // 1 row is blank.  Write to a another temp file
+                // 1 row is blank.  Write to another temp file
                 s.shiftRows(0, 2, 3);
                 try (Workbook wb3 = _testDataProvider.writeOutAndReadBack(wb2)) {
                     // Read and ensure things are where they should be