diff options
27 files changed, 28 insertions, 28 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/RepeatingRowsAndColumns.java b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/RepeatingRowsAndColumns.java index db737cd5bb..a48c8ed14b 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/RepeatingRowsAndColumns.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/RepeatingRowsAndColumns.java @@ -51,7 +51,7 @@ public class RepeatingRowsAndColumns { sheet1.setRepeatingColumns(CellRangeAddress.valueOf("A:C")); // Set the rows to repeat from row 0 to 2 on the second sheet. sheet2.setRepeatingRows(CellRangeAddress.valueOf("1:3")); - // Set the the repeating rows and columns on the third sheet. + // Set the repeating rows and columns on the third sheet. CellRangeAddress cra = CellRangeAddress.valueOf("D1:E2"); sheet3.setRepeatingColumns(cra); sheet3.setRepeatingRows(cra); diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java index 6a764d6e32..c41e4c0007 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/AddDimensionedImage.java @@ -116,7 +116,7 @@ import java.util.Locale; * <p> * The following example demonstrates a slightly different way to insert an * image into cell A1 and to ensure that it occupies the whole of the cell. This - * is accomplished by specifying the the images bottom right hand corner should be + * is accomplished by specifying the images bottom right hand corner should be * aligned with the bottom right hand corner of the cell. It is also a case * where the image will not increase in size if the user increases the size of * the enclosing cell - irrespective of the anchors type - but it will reduce in @@ -182,7 +182,7 @@ import java.util.Locale; * * @version 1.00 5th August 2009. * 2.00 26th February 2010. - * Ported to make use of the the SS usermodel classes. + * Ported to make use of the SS usermodel classes. * Ability to reuse the Drawing Patriarch so that multiple images * can be inserted without unintentionally erasing earlier images. * Check on image type added; i.e. jpg, jpeg or png. diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPageSetup.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPageSetup.java index f05f6ff8d1..2fe5e9c826 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPageSetup.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPageSetup.java @@ -65,7 +65,7 @@ public class WorkingWithPageSetup { // Set the columns to repeat from column 0 to 2 on the first sheet sheet1.setRepeatingColumns(CellRangeAddress.valueOf("A:C")); - // Set the the repeating rows and columns on the second sheet. + // Set the repeating rows and columns on the second sheet. CellRangeAddress cra = CellRangeAddress.valueOf("E2:F3"); sheet2.setRepeatingColumns(cra); sheet2.setRepeatingRows(cra); diff --git a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java index 1035459f82..843e4d7e9b 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java +++ b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java @@ -1469,7 +1469,7 @@ public abstract class OPCPackage implements RelationshipSource, Closeable { this.throwExceptionIfReadOnly(); - // You shouldn't save the the same file, do a close instead + // You shouldn't save the same file, do a close instead if(targetFile.exists() && targetFile.getAbsolutePath().equals(this.originalPackagePath)) { throw new InvalidOperationException( diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/Styles.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/Styles.java index 135581c7d0..7f2460f323 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/Styles.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/Styles.java @@ -34,7 +34,7 @@ public interface Styles { /** * Puts <code>fmt</code> in the numberFormats map if the format is not - * already in the the number format style table. + * already in the number format style table. * Does nothing if <code>fmt</code> is already in number format style table. * * @param fmt the number format to add to number format style table diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/StylesTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/StylesTable.java index 3345eac4eb..c56cece348 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/StylesTable.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/StylesTable.java @@ -308,7 +308,7 @@ public class StylesTable extends POIXMLDocumentPart implements Styles { /** * Puts {@code fmt} in the numberFormats map if the format is not - * already in the the number format style table. + * already in the number format style table. * Does nothing if {@code fmt} is already in number format style table. * * @param fmt the number format to add to number format style table diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java index 37ea1519be..c6982ca3ce 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java @@ -338,7 +338,7 @@ public class SXSSFWorkbook implements Workbook { * If the "compress" flag is set to <code>true</code> then the temporary XML is gzipped. * </p> * <p> - * Please note the the "compress" option may cause performance penalty. + * Please note the "compress" option may cause performance penalty. * </p> * <p> * Setting this option only affects compression for subsequent <code>createSheet()</code> diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java index 8d37d10709..ec50f0d5d7 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java @@ -51,7 +51,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.STPatternType; /** * - * High level representation of the the possible formatting information for the contents of the cells on a sheet in a + * High level representation of the possible formatting information for the contents of the cells on a sheet in a * SpreadsheetML document. * * @see org.apache.poi.xssf.usermodel.XSSFWorkbook#createCellStyle() diff --git a/poi-ooxml/src/test/java/org/apache/poi/ss/tests/formula/TestFormulaParser.java b/poi-ooxml/src/test/java/org/apache/poi/ss/tests/formula/TestFormulaParser.java index 18e189b03c..213686f62f 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/ss/tests/formula/TestFormulaParser.java +++ b/poi-ooxml/src/test/java/org/apache/poi/ss/tests/formula/TestFormulaParser.java @@ -108,7 +108,7 @@ class TestFormulaParser { assertEquals("arg", arg.getValue()); // The external FunctionPtg is the last Ptg added to the stack - // During formula evaluation, this Ptg pops off the the appropriate number of + // During formula evaluation, this Ptg pops off the appropriate number of // arguments (getNumberOfOperands()) and pushes the result on the stack AbstractFunctionPtg tfunc = (AbstractFunctionPtg) ptg[2]; assertTrue(tfunc.isExternalFunction()); diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherSpRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherSpRecord.java index acec08ed32..208e22bcbc 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherSpRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherSpRecord.java @@ -26,7 +26,7 @@ import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.LittleEndian; /** - * Together the the EscherOptRecord this record defines some of the basic + * Together the EscherOptRecord this record defines some of the basic * properties of a shape. */ public class EscherSpRecord extends EscherRecord { diff --git a/poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java b/poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java index 28fbfb28c4..aff4e213f9 100644 --- a/poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java @@ -39,7 +39,7 @@ public final class UnknownEscherRecord extends EscherRecord { private static final byte[] NO_BYTES = new byte[0]; - /** The data for this record not including the the 8 byte header */ + /** The data for this record not including the 8 byte header */ private byte[] thedata = NO_BYTES; private final List<EscherRecord> _childRecords = new ArrayList<>(); diff --git a/poi/src/main/java/org/apache/poi/hpsf/Section.java b/poi/src/main/java/org/apache/poi/hpsf/Section.java index e7c5245da9..5ebaf43ad3 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/Section.java +++ b/poi/src/main/java/org/apache/poi/hpsf/Section.java @@ -634,7 +634,7 @@ public class Section { /** * Checks whether this section is equal to another object. The result is - * {@code false} if one of the the following conditions holds: + * {@code false} if one of the following conditions holds: * * <ul> * diff --git a/poi/src/main/java/org/apache/poi/hssf/record/DVALRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/DVALRecord.java index 9589315aa3..9c37e5c4df 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/DVALRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/DVALRecord.java @@ -118,7 +118,7 @@ public final class DVALRecord extends StandardRecord { } /** - * @return the the Vertical position of the dialog + * @return the Vertical position of the dialog */ public int getVerticalPos() { return field_3_vert_pos; diff --git a/poi/src/main/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java index 67256f11ac..e15e05a92f 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java @@ -43,7 +43,7 @@ public final class NoteStructureSubRecord extends SubRecord { * fill its data with the default values */ public NoteStructureSubRecord() { - //all we know is that the the length of <code>NoteStructureSubRecord</code> is always 22 bytes + //all we know is that the length of <code>NoteStructureSubRecord</code> is always 22 bytes reserved = new byte[ENCODED_SIZE]; } diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/FormulaRecordAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/FormulaRecordAggregate.java index 76d88a28d2..5ce1f62f68 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/FormulaRecordAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/FormulaRecordAggregate.java @@ -82,7 +82,7 @@ public final class FormulaRecordAggregate extends RecordAggregate implements Cel * {@link SharedFormulaRecord} does not exist). Normally this would leave no way of determining * the {@link Ptg} tokens for the formula. However as it turns out in these * cases, Excel encodes the unshared {@link Ptg} tokens in the right place (inside the {@link - * FormulaRecord}). So the the only thing that needs to be done is to ignore the erroneous + * FormulaRecord}). So the only thing that needs to be done is to ignore the erroneous * shared formula flag.<br> * * This method may also be used for setting breakpoints to help diagnose issues regarding the diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/SharedValueManager.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/SharedValueManager.java index 20d73d80a3..45e3c12c44 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/SharedValueManager.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/SharedValueManager.java @@ -184,7 +184,7 @@ public final class SharedValueManager { * * @return the SHRFMLA, TABLE or ARRAY record for the formula cell, if it is the first cell of * a table or array region. {@code null} if the formula cell is not shared/array/table, - * or if the specified formula is not the the first in the group. + * or if the specified formula is not the first in the group. */ public SharedValueRecordBase getRecordForFirstCell(FormulaRecordAggregate agg) { CellReference firstCell = agg.getFormulaRecord().getFormula().getExpReference(); diff --git a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java index ea0298a829..d48c58f1f1 100644 --- a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java +++ b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java @@ -161,7 +161,7 @@ public final class CryptoFunctions { * {@code blockKey: IV = H(KeySalt + blockKey)}</li> * <li>If a blockKey is not provided, let IV be equal to the following value:<br> * {@code KeySalt:IV = KeySalt}</li> - * <li>If the number of bytes in the value of IV is less than the the value of the blockSize attribute + * <li>If the number of bytes in the value of IV is less than the value of the blockSize attribute * corresponding to the cipherAlgorithm attribute, pad the array of bytes by appending 0x36 until * the array is blockSize bytes. If the array of bytes is larger than blockSize bytes, truncate the * array to blockSize bytes.</li> diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/BATManaged.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/BATManaged.java index dd0a6d679a..3f6631e1ea 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/BATManaged.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/BATManaged.java @@ -39,7 +39,7 @@ public interface BATManaged * Set the start block for this instance * * @param index index into the array of BigBlock instances making - * up the the filesystem + * up the filesystem */ void setStartBlock(final int index); diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java index 2179ecdfdc..61797ad2f8 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java @@ -52,7 +52,7 @@ public class POIFSDocumentPath { * constructor for the path of a document that is not in the root of the POIFSFileSystem * * @param components the Strings making up the path to a document. - * The Strings must be ordered as they appear in the directory hierarchy of the the document. + * The Strings must be ordered as they appear in the directory hierarchy of the document. * The first string must be the name of a directory in the root of the POIFSFileSystem, and * every Nth (for N > 1) string thereafter must be the name of a directory in the directory * identified by the (N-1)th string.<p> diff --git a/poi/src/main/java/org/apache/poi/poifs/macros/VBAMacroReader.java b/poi/src/main/java/org/apache/poi/poifs/macros/VBAMacroReader.java index 789bfbb702..23b2936af3 100644 --- a/poi/src/main/java/org/apache/poi/poifs/macros/VBAMacroReader.java +++ b/poi/src/main/java/org/apache/poi/poifs/macros/VBAMacroReader.java @@ -785,7 +785,7 @@ public class VBAMacroReader implements Closeable { /** * Sometimes the offset record in the dirstream is incorrect, but the macro can still be found. - * This will try to find the the first RLEDecompressing stream that starts with "Attribute". + * This will try to find the first RLEDecompressing stream that starts with "Attribute". * This relies on some, er, heuristics, admittedly. * * @param is full module inputstream to read diff --git a/poi/src/main/java/org/apache/poi/poifs/property/PropertyTable.java b/poi/src/main/java/org/apache/poi/poifs/property/PropertyTable.java index c595c71a99..bd597607e4 100644 --- a/poi/src/main/java/org/apache/poi/poifs/property/PropertyTable.java +++ b/poi/src/main/java/org/apache/poi/poifs/property/PropertyTable.java @@ -152,7 +152,7 @@ public final class PropertyTable implements BATManaged { * Set the start block for this instance * * @param index index into the array of BigBlock instances making - * up the the filesystem + * up the filesystem */ public void setStartBlock(final int index) { _header_block.setPropertyStart(index); diff --git a/poi/src/main/java/org/apache/poi/sl/usermodel/PresetColor.java b/poi/src/main/java/org/apache/poi/sl/usermodel/PresetColor.java index 2538d1b828..6ba3a4c514 100644 --- a/poi/src/main/java/org/apache/poi/sl/usermodel/PresetColor.java +++ b/poi/src/main/java/org/apache/poi/sl/usermodel/PresetColor.java @@ -31,7 +31,7 @@ import java.util.Map; */ public enum PresetColor { // the order of this enum can be found in the definition of .net System.Drawing.KnownColor enumeration - // or by running the the program in the linked documentation + // or by running the program in the linked documentation // default colors for theme-depending colors taken from ... (last post): // https://social.technet.microsoft.com/Forums/windows/en-US/ac76cc56-6ff2-4778-b260-8141d7170a3b/windows-7-highlight-text-color-or-selected-text-color-in-aero diff --git a/poi/src/main/java/org/apache/poi/ss/util/ImageUtils.java b/poi/src/main/java/org/apache/poi/ss/util/ImageUtils.java index b156ba0607..adb426d358 100644 --- a/poi/src/main/java/org/apache/poi/ss/util/ImageUtils.java +++ b/poi/src/main/java/org/apache/poi/ss/util/ImageUtils.java @@ -111,7 +111,7 @@ public final class ImageUtils { /** * The metadata of PNG and JPEG can contain the width of a pixel in millimeters. - * Return the the "effective" dpi calculated as <code>25.4/HorizontalPixelSize</code> + * Return the "effective" dpi calculated as <code>25.4/HorizontalPixelSize</code> * and <code>25.4/VerticalPixelSize</code>. Where 25.4 is the number of mm in inch. * * @return array of two elements: <code>{horizontalDpi, verticalDpi}</code>. diff --git a/poi/src/main/java/org/apache/poi/ss/util/MutableFPNumber.java b/poi/src/main/java/org/apache/poi/ss/util/MutableFPNumber.java index 0eb27696d0..335446e7ae 100644 --- a/poi/src/main/java/org/apache/poi/ss/util/MutableFPNumber.java +++ b/poi/src/main/java/org/apache/poi/ss/util/MutableFPNumber.java @@ -25,7 +25,7 @@ final class MutableFPNumber { // TODO - what about values between (10<sup>14</sup>-0.5) and (10<sup>14</sup>-0.05) ? /** * The minimum value in 'Base-10 normalised form'.<br> - * When {@link #_binaryExponent} == 46 this is the the minimum {@link #_frac} value + * When {@link #_binaryExponent} == 46 this is the minimum {@link #_frac} value * (10<sup>14</sup>-0.05) * 2^17 * <br> * Values between (10<sup>14</sup>-0.05) and 10<sup>14</sup> will be represented as '1' diff --git a/poi/src/test/java/org/apache/poi/hssf/model/TestFormulaParser.java b/poi/src/test/java/org/apache/poi/hssf/model/TestFormulaParser.java index f10d035d6c..ca3d312f83 100644 --- a/poi/src/test/java/org/apache/poi/hssf/model/TestFormulaParser.java +++ b/poi/src/test/java/org/apache/poi/hssf/model/TestFormulaParser.java @@ -139,7 +139,7 @@ final class TestFormulaParser { assertEquals("arg", arg.getValue()); // The external FunctionPtg is the last Ptg added to the stack - // During formula evaluation, this Ptg pops off the the appropriate number of + // During formula evaluation, this Ptg pops off the appropriate number of // arguments (getNumberOfOperands()) and pushes the result on the stack AbstractFunctionPtg tfunc = (AbstractFunctionPtg) ptg[2]; //FuncVarPtg assertTrue(tfunc.isExternalFunction()); diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java index 9e9846e1ef..576fa6e279 100644 --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java @@ -298,7 +298,7 @@ public final class TestHSSFDataFormatter { while (it.hasNext()) { HSSFCell cell = (HSSFCell) it.next(); log(formatter.formatCellValue(cell)); - // in some locales the the decimal delimiter is a comma, not a dot + // in some locales the decimal delimiter is a comma, not a dot char decimalSeparator = DecimalFormatSymbols.getInstance(LocaleUtil.getUserLocale()).getDecimalSeparator(); assertEquals("12345678" + decimalSeparator + "9", formatter.formatCellValue(cell)); } diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java index 60a676fc7b..cdc514f3ab 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java @@ -524,7 +524,7 @@ public abstract class BaseTestNamedRange { * </pre> * * This caused trouble for anything that requires {@link Name#getRefersToFormula()} - * It is easy enough to re-create the the same data (by not setting the formula). Excel + * It is easy enough to re-create the same data (by not setting the formula). Excel * seems to gracefully remove this uninitialized name record. It would be nice if POI * could do the same, but that would involve adjusting subsequent name indexes across * all formulas. <p> |