From 764b430f8c566f75a3ec41ed8106e80d6217a4a0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:52:09 -0400 Subject: [PATCH 001/323] Consistently use uppercase in LocaleID hex defs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/util/LocaleID.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/util/LocaleID.java b/poi/src/main/java/org/apache/poi/util/LocaleID.java index 6438adf535d..ff071ed2a4b 100644 --- a/poi/src/main/java/org/apache/poi/util/LocaleID.java +++ b/poi/src/main/java/org/apache/poi/util/LocaleID.java @@ -374,7 +374,7 @@ public enum LocaleID { MN_MONG_MN(0x0C50, "mn_mong_mn", "mn-Mong-MN", "Mongolian (Traditional Mongolian, Mongolia)", 0, -1), DZ_BT(0x0C51, "dz_bt", "dz-BT", "Dzongkha (Bhutan)", 0, SUNDAY), TMZ_MA(0x0C5F, "tmz_ma", "tmz-MA", "tmz (Morocco)", 32759, -1), - QUZ_PE(0x0C6b, "quz_pe", "quz-PE", "Quechua (Peru)", 1252, -1), + QUZ_PE(0x0C6B, "quz_pe", "quz-PE", "Quechua (Peru)", 1252, -1), AR_LY(0x1001, "ar_ly", "ar-LY", "Arabic (Libya)", 1256, SATURDAY), ZH_SG(0x1004, "zh_sg", "zh-SG", "Chinese (Simplified, Singapore)", 936, SUNDAY), DE_LU(0x1007, "de_lu", "de-LU", "German (Luxembourg)", 1252, -1), @@ -440,10 +440,10 @@ public enum LocaleID { EN_ID(0x3809, "en_id", "en-ID", "English (Indonesia)", 32759, SUNDAY), ES_UY(0x380A, "es_uy", "es-UY", "Spanish (Uruguay)", 1252, -1), FR_MA(0x380C, "fr_ma", "fr-MA", "French (Morocco)", 0, SATURDAY), - AR_BH(0x3c01, "ar_bh", "ar-BH", "Arabic (Bahrain)", 1256, SATURDAY), - EN_HK(0x3c09, "en_hk", "en-HK", "English (Hong Kong SAR)", 0, SUNDAY), - ES_PY(0x3c0A, "es_py", "es-PY", "Spanish (Paraguay)", 1252, SUNDAY), - FR_HT(0x3c0C, "fr_ht", "fr-HT", "French (Haiti)", 0, -1), + AR_BH(0x3C01, "ar_bh", "ar-BH", "Arabic (Bahrain)", 1256, SATURDAY), + EN_HK(0x3C09, "en_hk", "en-HK", "English (Hong Kong SAR)", 0, SUNDAY), + ES_PY(0x3C0A, "es_py", "es-PY", "Spanish (Paraguay)", 1252, SUNDAY), + FR_HT(0x3C0C, "fr_ht", "fr-HT", "French (Haiti)", 0, -1), AR_QA(0x4001, "ar_qa", "ar-QA", "Arabic (Qatar)", 1256, SATURDAY), EN_IN(0x4009, "en_in", "en-IN", "English (India)", 1252, -1), ES_BO(0x400A, "es_bo", "es-BO", "Spanish (Bolivia)", 1252, -1), From 09f1645b16fa067b969976252daed5675f3d3c1b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:49:56 -0400 Subject: [PATCH 002/323] spelling: accessor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java index 6f205c9e578..729b21db0aa 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -205,7 +205,7 @@ public HSLFTextBox addTitle() { } - // Complex Accesser methods follow + // Complex Accessor methods follow /** *

From b4fd1f556cb9b976c0e37f6386c65fda32c5150a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:49:57 -0400 Subject: [PATCH 003/323] spelling: accessors Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 11467117054..a194009c56e 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 @@ -1432,7 +1432,7 @@ public void removeUnmarshaller(String contentType) { } - /* Accesseurs */ + /* Accessors */ /** * Get the package access mode. From 03bc53c3d6ed077774d2a00df14f1001776b7a21 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:49:58 -0400 Subject: [PATCH 004/323] spelling: accommodate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 56ee62d271c..c00fe368f3a 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 @@ -211,7 +211,7 @@ public class AddDimensionedImage { // increased to accommodate the image if it is not already larger. The image // will be layed across one or many rows. // Passing EXPAND_ROW_AND_COLUMN will result in the height of the row - // bing increased along with the width of the column to accomdate the + // bing increased along with the width of the column to accommodate the // image if either is not already larger. // Passing OVERLAY_ROW_AND_COLUMN will result in the image being layed // over one or more rows and columns. No row or column will be resized, From c8e464e0d054642847c20de12bfb147d860f9244 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:00 -0400 Subject: [PATCH 005/323] spelling: accumulated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/ss/formula/functions/LinearRegressionFunction.java | 6 +++--- .../apache/poi/ss/formula/functions/XYNumericFunction.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/LinearRegressionFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/LinearRegressionFunction.java index 317643c50fd..014f73f8e4c 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/LinearRegressionFunction.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/LinearRegressionFunction.java @@ -136,7 +136,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) // error handling is as if the x is fully evaluated before y ErrorEval firstYerr = null; - boolean accumlatedSome = false; + boolean accumulatedSome = false; // first pass: read in data, compute xbar and ybar double sumx = 0.0, sumy = 0.0; @@ -155,7 +155,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) // only count pairs if both elements are numbers // all other combinations of value types are silently ignored if (vx instanceof NumberEval && vy instanceof NumberEval) { - accumlatedSome = true; + accumulatedSome = true; NumberEval nx = (NumberEval) vx; NumberEval ny = (NumberEval) vy; sumx += nx.getNumberValue(); @@ -167,7 +167,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) throw new EvaluationException(firstYerr); } - if (!accumlatedSome) { + if (!accumulatedSome) { throw new EvaluationException(ErrorEval.DIV_ZERO); } diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/XYNumericFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/XYNumericFunction.java index 0d7b447fa89..9bc6c40c684 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/XYNumericFunction.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/XYNumericFunction.java @@ -129,7 +129,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) // error handling is as if the x is fully evaluated before y ErrorEval firstXerr = null; ErrorEval firstYerr = null; - boolean accumlatedSome = false; + boolean accumulatedSome = false; double result = 0.0; for (int i = 0; i < size; i++) { @@ -149,7 +149,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) } // only count pairs if both elements are numbers if (vx instanceof NumberEval && vy instanceof NumberEval) { - accumlatedSome = true; + accumulatedSome = true; NumberEval nx = (NumberEval) vx; NumberEval ny = (NumberEval) vy; result += acc.accumulate(nx.getNumberValue(), ny.getNumberValue()); @@ -163,7 +163,7 @@ private double evaluateInternal(ValueVector x, ValueVector y, int size) if (firstYerr != null) { throw new EvaluationException(firstYerr); } - if (!accumlatedSome) { + if (!accumulatedSome) { throw new EvaluationException(ErrorEval.DIV_ZERO); } return result; From c0c1dc6c393a925c3277cbe0db77fe1ebd5590a1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:43:57 -0400 Subject: [PATCH 006/323] spelling: added Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/model/SharedStringsTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/SharedStringsTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/SharedStringsTable.java index b83f5f297ed..0935843788f 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/SharedStringsTable.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/SharedStringsTable.java @@ -180,7 +180,7 @@ public int getUniqueCount() { * *

* If the Shared String table already contains this CTRst bean, its index is returned. - * Otherwise a new entry is aded. + * Otherwise a new entry is added. *

* * @param st the entry to add From 83981cff2ae516d3a217a0630754be2c00b82856 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:43:31 -0400 Subject: [PATCH 007/323] spelling: address-with Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../apache/poi/ss/usermodel/BaseTestConditionalFormatting.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java index 49f944635b8..6c86fc08a10 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java @@ -1231,7 +1231,7 @@ void testBug55380() throws IOException { } @Test - void testSetCellRangeAddresswithSingleRange() throws IOException { + void testSetCellRangeAddressWithSingleRange() throws IOException { try (Workbook wb = _testDataProvider.createWorkbook()) { final Sheet sheet = wb.createSheet("S1"); final SheetConditionalFormatting cf = sheet.getSheetConditionalFormatting(); From 19e7131d786bfbfd799c41bb6e25c45dc57724cd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:03:10 -0400 Subject: [PATCH 008/323] spelling: after Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFSheet.java | 2 +- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSheet.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSheet.java index 543ed418285..9ce908e8e85 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSheet.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSheet.java @@ -241,7 +241,7 @@ public boolean removeShape(HSLFShape shape) { } /** - * Called by SlideShow ater a new sheet is created + * Called by SlideShow after a new sheet is created */ public void onCreate(){ diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java index 729b21db0aa..2dfb485af27 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -148,7 +148,7 @@ public void setSlideNumber(int newSlideNumber) { } /** - * Called by SlideShow ater a new slide is created. + * Called by SlideShow after a new slide is created. *

* For Slide we need to do the following: *

*
  • If this line is not broken into multiple regions, then treat this * break as a text wrapping break of type none.
  • - *
  • If the parent paragraph is right to left, then these beha viors are + *
  • If the parent paragraph is right to left, then these behaviors are * also reversed.
  • * */ From 9847bfc99acd2e9f5af93d707949abc08f1537f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:25 -0400 Subject: [PATCH 032/323] spelling: between Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/poifs/property/DirectoryProperty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/poifs/property/DirectoryProperty.java b/poi/src/main/java/org/apache/poi/poifs/property/DirectoryProperty.java index bfa87966346..a21194cae9c 100644 --- a/poi/src/main/java/org/apache/poi/poifs/property/DirectoryProperty.java +++ b/poi/src/main/java/org/apache/poi/poifs/property/DirectoryProperty.java @@ -152,7 +152,7 @@ else if (name2.compareTo(VBA_PROJECT) == 0) { if (name1.startsWith("__") && name2.startsWith("__")) { - // Betweeen __SRP_0 and __SRP_1 just sort as normal + // Between __SRP_0 and __SRP_1 just sort as normal result = name1.compareToIgnoreCase(name2); } else if (name1.startsWith("__")) From cac2ecc86bb9bb44cb6b79a8c80862e63fe39058 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:10:55 -0400 Subject: [PATCH 033/323] spelling: bigger Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/poifs/storage/TestBATBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/poifs/storage/TestBATBlock.java b/poi/src/test/java/org/apache/poi/poifs/storage/TestBATBlock.java index 8190b151b6c..4da60cd540a 100644 --- a/poi/src/test/java/org/apache/poi/poifs/storage/TestBATBlock.java +++ b/poi/src/test/java/org/apache/poi/poifs/storage/TestBATBlock.java @@ -329,7 +329,7 @@ void testGetBATBlockAndIndex() { assertEquals(0, BATBlock.getBATBlockAndIndex(offset, header, blocks).getIndex()); assertEquals(1, blocks.indexOf(BATBlock.getBATBlockAndIndex(offset, header, blocks).getBlock())); - // Biggr block size, back to real BATs + // Bigger block size, back to real BATs header.setBATCount(2); offset = 0; From ead3e6c90a8376f27d8c5493c23daeb5e536d9fc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:26 -0400 Subject: [PATCH 034/323] spelling: bizarre Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/record/EscherAggregate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java index 63aad5c2b86..b66367ac624 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java @@ -48,7 +48,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * This class is used to aggregate the MSODRAWING and OBJ record - * combinations. This is necessary due to the bizare way in which + * combinations. This is necessary due to the bizarre way in which * these records are serialized. What happens is that you get a * combination of MSODRAWING -> OBJ -> MSODRAWING -> OBJ records * but the escher records are serialized _across_ the MSODRAWING From 4b0e839593761e8e5bdeacb74e2e6596496ac2cc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:14:11 -0400 Subject: [PATCH 035/323] spelling: block Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java index fcc1e4bcf1e..ef0935e42b8 100644 --- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java +++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java @@ -307,7 +307,7 @@ void testCreateBlockIfNeeded() throws Exception { } assertEquals(24, count); - // The mini block block counts now run to 191 + // The mini block counts now run to 191 for (int i = 0; i <= 191; i++) { ministore.getBlockAt(i); } From d4470620c522c52876acb69bb932ac55cf2dae98 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:28 -0400 Subject: [PATCH 036/323] spelling: bottom Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hslf/usermodel/HSLFTextShape.java | 4 ++-- .../java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java index 8d99617e7b0..036ff006614 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java @@ -466,14 +466,14 @@ public void setVerticalAlignment(VerticalAlignment vAlign) { * and the bottom of the inscribed rectangle of the shape that contains the text. * Default value is 1/20 inch. * - * @return the botom margin + * @return the bottom margin */ public double getBottomInset(){ return getInset(EscherPropertyTypes.TEXT__TEXTBOTTOM, .05); } /** - * Sets the botom margin. + * Sets the bottom margin. * @see #getBottomInset() * * @param margin the bottom margin diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java index a9ffbea4960..74e31afdf50 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java @@ -24,7 +24,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * A client anchor is attached to an excel worksheet. It anchors against a - * top-left and buttom-right cell. + * top-left and bottom-right cell. */ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor { From 006497d737a17be7a3d240880f5d7bdb1fa4ca64 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:29 -0400 Subject: [PATCH 037/323] spelling: bugzilla Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hwpf/usermodel/TestBorderCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBorderCode.java b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBorderCode.java index 8c998ebd62a..c5ad74e54d5 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBorderCode.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBorderCode.java @@ -26,7 +26,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more import org.junit.jupiter.api.Test; /** - * API for BorderCode, see Bugzill 49919 + * API for BorderCode, see Bugzilla 49919 */ public final class TestBorderCode { From dc67dff5d6ef7f89dd03e15e47086a58fef29bdc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:13:31 -0400 Subject: [PATCH 038/323] spelling: bulleted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hslf/model/TestSlideMaster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java index ab5c3832555..9a72671aff7 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java @@ -253,7 +253,7 @@ void testChangeSlideMaster() throws IOException { /** * Varify we can read attributes for different identtation levels. - * (typical for the "bullted body" placeholder) + * (typical for the "bulleted body" placeholder) */ @Test void testIndentation() throws IOException { From eca3b2169d2210128f1c1a0ef3ca8c877c9cdea6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:14:37 -0400 Subject: [PATCH 039/323] spelling: but Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java b/poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java index 85a7679c30a..4e183ecaf3b 100644 --- a/poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java +++ b/poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java @@ -53,7 +53,7 @@ enum FieldType { /** * Returns the font color. - * This usually returns a {@link SolidPaint}, but but also other classes are possible + * This usually returns a {@link SolidPaint}, but also other classes are possible * * @return the font color/paint * From 49ac7bc8bc59afe75f3d7267bb9f96412d5ff899 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:14:14 -0400 Subject: [PATCH 040/323] spelling: byte Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/poifs/filesystem/TestDocument.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestDocument.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestDocument.java index 94bc700be31..7c4e1be887c 100644 --- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestDocument.java +++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestDocument.java @@ -89,8 +89,8 @@ private static POIFSDocument checkDocument(final POIFSFileSystem poifs, final in final int blockSize = (size >= 4096) ? 512 : 64; final int blockCount = (size + (blockSize-1)) / blockSize; - final byte[] bytCpy = checkValues(blockCount, document, input); - final POIFSDocument copied = makeCopy(document,bytCpy); + final byte[] byteCpy = checkValues(blockCount, document, input); + final POIFSDocument copied = makeCopy(document,byteCpy); checkValues(blockCount, copied, input); From e77962b74f0c289067c1ee50ec7d1233d45b0688 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:30 -0400 Subject: [PATCH 041/323] spelling: cacheable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/ss/usermodel/DataFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java b/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java index fe14527066d..8920ec431cd 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java @@ -1422,7 +1422,7 @@ public Object parseObject(String source, ParsePosition pos) { } /** * Workaround until we merge {@link DataFormatter} with {@link CellFormat}. - * Constant, non-cachable wrapper around a {@link CellFormatResult} + * Constant, non-cacheable wrapper around a {@link CellFormatResult} */ @SuppressWarnings("serial") private final class CellFormatResultWrapper extends Format { From e9ebf53a7c9c3ed2dc07b3d8e3f086f4a5287451 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:31 -0400 Subject: [PATCH 042/323] spelling: calculate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a1ff55222bb..1a29748fb13 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 @@ -663,7 +663,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet, // necessary to calculate just how much - this will become the inset // for the ClientAnchorDetail object. else { - // Firstly, claculate how much of the image should overlap into + // Firstly, calculate how much of the image should overlap into // the next column. overlapMM = reqImageWidthMM - (totalWidthMM - colWidthMM); From 8b4473224356db433a1c57ef47ee4e856ef06846 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:32 -0400 Subject: [PATCH 043/323] spelling: calculation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 4 ++-- .../main/java/org/apache/poi/hssf/model/InternalSheet.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 1a29748fb13..00d9418a945 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 @@ -668,8 +668,8 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet, overlapMM = reqImageWidthMM - (totalWidthMM - colWidthMM); // When the required size is very close indded to the column size, - // the calcaulation above can produce a negative value. To prevent - // problems occuring in later caculations, this is simply removed + // the calculation above can produce a negative value. To prevent + // problems occuring in later calculations, this is simply removed // be setting the overlapMM value to zero. if (overlapMM < 0) { overlapMM = 0.0D; diff --git a/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java b/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java index 4bba3cea618..0e05569dd0c 100644 --- a/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java @@ -800,7 +800,7 @@ public RowRecord getRow(int rownum) { } /** - * creates the CalcMode record and sets it to 1 (automatic formula caculation) + * creates the CalcMode record and sets it to 1 (automatic formula calculation) */ private static CalcModeRecord createCalcMode() { CalcModeRecord retval = new CalcModeRecord(); From a5d481796a5a28130260fce120278b333d050de7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:36 -0400 Subject: [PATCH 044/323] spelling: carriage Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/sl/extractor/SlideShowExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java b/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java index c1243b3804b..bb18c730035 100644 --- a/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java +++ b/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java @@ -354,7 +354,7 @@ private static String replaceTextCap(TextRun tr) { final TextShape sh = (tp != null) ? tp.getParentShape() : null; final Placeholder ph = (sh != null) ? sh.getPlaceholder() : null; - // 0xB acts like cariage return in page titles and like blank in the others + // 0xB acts like carriage return in page titles and like blank in the others final char sep = ( ph == Placeholder.TITLE || ph == Placeholder.CENTERED_TITLE || From e2d109724eeadd467fd699051e05b6603b027ae1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:18:08 -0400 Subject: [PATCH 045/323] spelling: cells Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 00d9418a945..a9728255fed 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 @@ -939,7 +939,7 @@ public static class ConvertImageUnits { // positioned to exactly cover one cell are different by almost exactly // 2mm - give or take rounding errors. This constant allows that // additional amount to be accounted for when calculating how many - // celles the image ought to overlie. + // cells the image ought to overlie. public static final double CELL_BORDER_WIDTH_MILLIMETRES = 2.0D; public static final short EXCEL_COLUMN_WIDTH_FACTOR = 256; public static final int UNIT_OFFSET_LENGTH = 7; From 3095b8c4bfc085e5bd42e9ed8f4305392918a36f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:37 -0400 Subject: [PATCH 046/323] spelling: character Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hssf/record/common/UnicodeString.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/common/UnicodeString.java b/poi/src/main/java/org/apache/poi/hssf/record/common/UnicodeString.java index e681492ef4c..ae9c04990b9 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/common/UnicodeString.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/common/UnicodeString.java @@ -296,7 +296,7 @@ private int findFormatRunAt(int characterPos) { /** Adds a font run to the formatted string. * - * If a font run exists at the current charcter location, then it is + * If a font run exists at the current character location, then it is * replaced with the font run to be added. */ public void addFormatRun(FormatRun r) { From 94cc6ac59a2a5cf7e9433d0d2305f83d2fb86e0a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:38 -0400 Subject: [PATCH 047/323] spelling: children's Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java index ab7df1d733f..0d75f2357af 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java @@ -328,7 +328,7 @@ public int getY2() { } /** - * Count of all children and their childrens children. + * Count of all children and their children's children. */ @Override public int countOfAllChildren() { From f6601ebb378d71c9b980454ad9b48113f9a5defe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:19:16 -0400 Subject: [PATCH 048/323] spelling: chunks Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java index ef0935e42b8..5a643eeb22d 100644 --- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java +++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java @@ -137,7 +137,7 @@ void testGetBlock() throws Exception { POIFSMiniStore ministore = fs.getMiniStore(); ByteBuffer b; - // Runs from the start of the data section in 64 byte chungs + // Runs from the start of the data section in 64 byte chunks b = ministore.getBlockAt(0); assertEquals((byte) 0x9e, b.get()); assertEquals((byte) 0x75, b.get()); From 5868221191f752e2895d86c9c0c955050a5667a6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:14:47 -0400 Subject: [PATCH 049/323] spelling: class Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java index 1cd5be3cf60..0b418ca6422 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestBugs.java @@ -531,7 +531,7 @@ void bug49541() throws IOException { "41246-1.ppt, 36", "41246-2.ppt, 16", // Bug 44770: java.lang.RuntimeException: Couldn't instantiate the class for - // type with id 1036 on class class org.apache.poi.hslf.record.PPDrawing + // type with id 1036 on class org.apache.poi.hslf.record.PPDrawing "44770.ppt, 19", // Bug 42486: Failure parsing a seemingly valid PPT "42486.ppt, 33" From 7196adf1aeca1ba7985badf3e5bb1db263f9909a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:01:48 -0400 Subject: [PATCH 050/323] spelling: co-ordinate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a9728255fed..fa0722128fd 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 @@ -680,7 +680,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet, // positons there are per millimetre coordinatePositionsPerMM = (colWidthMM == 0) ? 0 : ConvertImageUnits.TOTAL_COLUMN_COORDINATE_POSITIONS / colWidthMM; - // From this figure, determine how many co-ordinat positions to + // From this figure, determine how many co-ordinate positions to // inset the left hand or bottom edge of the image. inset = (int) (coordinatePositionsPerMM * overlapMM); } else { From ed6ae7c369a1c516a23e4a52c76cb6aa96fddc47 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:39 -0400 Subject: [PATCH 051/323] spelling: collapse Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hssf/record/RowRecord.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/RowRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/RowRecord.java index 2096c37c1b9..f6dcfe8185f 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/RowRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/RowRecord.java @@ -301,8 +301,8 @@ public short getOutlineLevel() { } /** - * get whether or not to colapse this row - * @return c - colapse or not + * get whether or not to collapse this row + * @return c - collapse or not * @see #getOptionFlags() */ public boolean getColapsed() { From dfdc3e318c0f6dca3c6a72dba11a88b938912836 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:42 -0400 Subject: [PATCH 052/323] spelling: column Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- poi/src/main/java/org/apache/poi/ss/util/SSCellRange.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 fa0722128fd..78d6363b97e 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 @@ -434,7 +434,7 @@ private ClientAnchorDetail fitImageToColumns(Sheet sheet, int colNumber, int pictureWidthCoordinates; ClientAnchorDetail colClientAnchorDetail = null; - // Get the colum's width in millimetres + // Get the column's width in millimetres colWidthMM = ConvertImageUnits.widthUnits2Millimetres( (short) sheet.getColumnWidth(colNumber)); diff --git a/poi/src/main/java/org/apache/poi/ss/util/SSCellRange.java b/poi/src/main/java/org/apache/poi/ss/util/SSCellRange.java index 20757c092fa..5c262e91493 100644 --- a/poi/src/main/java/org/apache/poi/ss/util/SSCellRange.java +++ b/poi/src/main/java/org/apache/poi/ss/util/SSCellRange.java @@ -90,7 +90,7 @@ public K getCell(int relativeRowIndex, int relativeColumnIndex) { + " is outside the allowable range (0.." + (_height-1) + ")."); } if (relativeColumnIndex < 0 || relativeColumnIndex >= _width) { - throw new ArrayIndexOutOfBoundsException("Specified colummn " + relativeColumnIndex + throw new ArrayIndexOutOfBoundsException("Specified column " + relativeColumnIndex + " is outside the allowable range (0.." + (_width-1) + ")."); } int flatIndex = _width * relativeRowIndex + relativeColumnIndex; From 12609f1241af5294d9e92f0a9839add07e4b29a2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:45 -0400 Subject: [PATCH 053/323] spelling: columns Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java index e31332027a8..9f9b812e1fa 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftRowsAndColumns.java @@ -56,7 +56,7 @@ public TestXSSFSheetShiftRowsAndColumns() { } /** - * This creates a workbook with one worksheet. It then puts data in rows 0 to numRows-1 and colulmns + * This creates a workbook with one worksheet. It then puts data in rows 0 to numRows-1 and columns * 0 to numCols-1. */ @BeforeEach From dacf809051d191cf78c299c27a9bde73e8e33250 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:46 -0400 Subject: [PATCH 054/323] spelling: complex Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/xslf/usermodel/TestXSLFFreeformShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFFreeformShape.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFFreeformShape.java index 6f57d117908..7f6a6613c8e 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFFreeformShape.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFFreeformShape.java @@ -43,7 +43,7 @@ void testSetPath() throws IOException { XMLSlideShow ppt = new XMLSlideShow(); XSLFSlide slide = ppt.createSlide(); XSLFFreeformShape shape1 = slide.createFreeform(); - // comples path consisting of a rectangle and an ellipse inside it + // complex path consisting of a rectangle and an ellipse inside it Path2D.Double path1 = new Path2D.Double(new Rectangle2D.Double(150, 150, 300, 300)); path1.append(new Ellipse2D.Double(200, 200, 100, 50), false); shape1.setPath(path1); From 9861b7139947942b765c56a8b0cefa17373e35ef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:47 -0400 Subject: [PATCH 055/323] spelling: conditional Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/hssf/record/aggregates/CFRecordsAggregate.java | 10 +++++----- .../poi/ss/formula/ConditionalFormattingEvaluator.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java index bbfe3538730..01c19465090 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java @@ -53,7 +53,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more */ public final class CFRecordsAggregate extends RecordAggregate implements GenericRecord { /** Excel 97-2003 allows up to 3 conditional formating rules */ - private static final int MAX_97_2003_CONDTIONAL_FORMAT_RULES = 3; + private static final int MAX_97_2003_CONDITIONAL_FORMAT_RULES = 3; private static final Logger LOG = LogManager.getLogger(CFRecordsAggregate.class); private final CFHeaderBase header; @@ -73,9 +73,9 @@ private CFRecordsAggregate(CFHeaderBase pHeader, CFRuleBase[] pRules) { if(pRules == null) { throw new IllegalArgumentException("rules must not be null"); } - if(pRules.length > MAX_97_2003_CONDTIONAL_FORMAT_RULES) { + if(pRules.length > MAX_97_2003_CONDITIONAL_FORMAT_RULES) { LOG.atWarn().log("Excel versions before 2007 require that No more than " + - MAX_97_2003_CONDTIONAL_FORMAT_RULES + " rules may be specified, {} were found, this file will " + + MAX_97_2003_CONDITIONAL_FORMAT_RULES + " rules may be specified, {} were found, this file will " + "cause problems with old Excel versions", box(pRules.length)); } if (pRules.length != pHeader.getNumberOfConditionalFormats()) { @@ -185,9 +185,9 @@ public void addRule(CFRuleBase r) { if (r == null) { throw new IllegalArgumentException("r must not be null"); } - if(rules.size() >= MAX_97_2003_CONDTIONAL_FORMAT_RULES) { + if(rules.size() >= MAX_97_2003_CONDITIONAL_FORMAT_RULES) { LOG.atWarn().log("Excel versions before 2007 cannot cope with" - + " any more than " + MAX_97_2003_CONDTIONAL_FORMAT_RULES + + " any more than " + MAX_97_2003_CONDITIONAL_FORMAT_RULES + " - this file will cause problems with old Excel versions"); } checkRuleType(r); diff --git a/poi/src/main/java/org/apache/poi/ss/formula/ConditionalFormattingEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/ConditionalFormattingEvaluator.java index 61136863364..39ac96f4831 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/ConditionalFormattingEvaluator.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/ConditionalFormattingEvaluator.java @@ -88,7 +88,7 @@ public void clearAllCachedFormats() { } /** - * Call this whenever cell values change in the workbook, so condional formats are re-evaluated + * Call this whenever cell values change in the workbook, so conditional formats are re-evaluated * for all cells. *

    * TODO: eventually this should work like {@link EvaluationCache#notifyUpdateCell(int, int, EvaluationCell)} From 6568631a60e9cb6c735d8a562c6b1aab7f5d20d6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:49 -0400 Subject: [PATCH 056/323] spelling: conform Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/examples/ss/ToCSV.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index 8c1058341d7..ba5b3afb4e4 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -573,7 +573,7 @@ private void rowToCSV(Row row) { private String escapeEmbeddedCharacters(String field) { StringBuilder buffer; - // If the fields contents should be formatted to confrom with Excel's + // If the fields contents should be formatted to conform with Excel's // convention.... if(this.formattingConvention == ToCSV.EXCEL_STYLE_ESCAPING) { From f8c4deffd5fd966b1686f11e39bf4bfd166dd7eb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:50 -0400 Subject: [PATCH 057/323] spelling: conjunction Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index 3514b263f99..028ea9e4498 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -1076,7 +1076,7 @@ public void setRowSumsBelow(boolean b) { (WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid); record.setRowSumsBelow(b); - //setAlternateExpression must be set in conjuction with setRowSumsBelow + //setAlternateExpression must be set in conjunction with setRowSumsBelow record.setAlternateExpression(b); } From d061abdff9dc0dd42272ed7d1a9747bc434c0af0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:43:53 -0400 Subject: [PATCH 058/323] spelling: consisting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java b/poi/src/main/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java index 3b2af081be1..11d9dd6b1f1 100644 --- a/poi/src/main/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java +++ b/poi/src/main/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java @@ -36,7 +36,7 @@ class POIFSReaderRegistry private Set omnivorousListeners; // Each mapping in this Map has a key consisting of a - // POIFSReaderListener and a value cosisting of a Set of + // POIFSReaderListener and a value consisting of a Set of // DocumentDescriptors for the documents that POIFSReaderListener // is interested in; used to efficiently manage the registry private Map> selectiveListeners; From ce7bfba1c0c4a58d1a746a9a8ef3d9750f63a110 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:51 -0400 Subject: [PATCH 059/323] spelling: constants Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 78d6363b97e..65691fecb3c 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 @@ -931,7 +931,7 @@ public static class ConvertImageUnits { // of pixels per inch. Displays and printers differ but 96 pixels per // inch is an acceptable standard to begin with. public static final int PIXELS_PER_INCH = 96; - // Cnstants that defines how many pixels and points there are in a + // Constants that defines how many pixels and points there are in a // millimetre. These values are required for the conversion algorithm. public static final double PIXELS_PER_MILLIMETRES = 3.78; public static final double POINTS_PER_MILLIMETRE = 2.83; From 04c667d72fa224fc795519876f8199ff21845d1b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:53 -0400 Subject: [PATCH 060/323] spelling: construction Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/test/java/org/apache/poi/hslf/model/TestTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestTable.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestTable.java index b97dcef4135..bf9bf40ea5c 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestTable.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestTable.java @@ -105,7 +105,7 @@ void test45889() throws IOException { // Table(rownum, colnum) must throw IllegalArgumentException if any of the arguments is less than 1 @Test - void testIllegalRowCnstruction() throws IOException { + void testIllegalRowConstruction() throws IOException { try (HSLFSlideShow ppt = new HSLFSlideShow()) { HSLFSlide slide = ppt.createSlide(); assertThrows(IllegalArgumentException.class, () -> slide.createTable(0, 5)); From ba0ce18cb47cd830d77a2178fc4ebb1331b4f26a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:43:36 -0400 Subject: [PATCH 061/323] spelling: consts Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hpsf/VariantSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hpsf/VariantSupport.java b/poi/src/main/java/org/apache/poi/hpsf/VariantSupport.java index f6da239c8b8..aac14506c71 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/VariantSupport.java +++ b/poi/src/main/java/org/apache/poi/hpsf/VariantSupport.java @@ -231,7 +231,7 @@ public static Object read( LittleEndianByteArrayInputStream lei, * * August 20, 2009 */ - // l1 = LittleEndian.getInt(src, o1); o1 += LittleEndianConts.INT_SIZE; + // l1 = LittleEndian.getInt(src, o1); o1 += LittleEndianConsts.INT_SIZE; // } // final byte[] v = new byte[l1]; // System.arraycopy(src, o1, v, 0, v.length); From a068734a24ee2e58cf9009037f733c87ac3040cb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:54 -0400 Subject: [PATCH 062/323] spelling: consumed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hwmf/usermodel/HwmfPicture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/usermodel/HwmfPicture.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/usermodel/HwmfPicture.java index da220c941e1..f821461734b 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/usermodel/HwmfPicture.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/usermodel/HwmfPicture.java @@ -128,7 +128,7 @@ public HwmfPicture(InputStream inputStream) throws IOException { consumedSize += wr.init(leis, recordSize, recordFunction); int remainingSize = (int)(recordSize - consumedSize); if (remainingSize < 0) { - throw new RecordFormatException("read too many bytes. record size: "+recordSize + "; comsumed size: "+consumedSize); + throw new RecordFormatException("read too many bytes. record size: "+recordSize + "; consumed size: "+consumedSize); } else if(remainingSize > 0) { long skipped = IOUtils.skipFully(leis, remainingSize); if (skipped != (long)remainingSize) { From 9c5616485f7041042d87e61d9c4fe913b0530f72 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:55 -0400 Subject: [PATCH 063/323] spelling: contain Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 65691fecb3c..041e4bfd930 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 @@ -922,7 +922,7 @@ public int getInset() { */ public static class ConvertImageUnits { - // Each cell conatins a fixed number of co-ordinate points; this number + // Each cell contains a fixed number of co-ordinate points; this number // does not vary with row height or column width or with font. These two // constants are defined below. public static final int TOTAL_COLUMN_COORDINATE_POSITIONS = 1023; diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java b/poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java index bca58569036..8e03994bf0f 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/Cell.java @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more * High level representation of a cell in a row of a spreadsheet. *

    * Cells can be numeric, formula-based or string-based (text). The cell type - * specifies this. String cells cannot conatin numbers and numeric cells cannot + * specifies this. String cells cannot contain numbers and numeric cells cannot * contain strings (at least according to our model). Client apps should do the * conversions themselves. Formula cells have the formula string, as well as * the formula result, which can be numeric or string. From 7faf92f3c2d8bc82b4f5816bf82c7b8706a11127 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:02:16 -0400 Subject: [PATCH 064/323] spelling: contained Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hslf/record/PPDrawingGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PPDrawingGroup.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PPDrawingGroup.java index 08ab371e63c..3bc08502aea 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PPDrawingGroup.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PPDrawingGroup.java @@ -36,7 +36,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more * Container records which always exists inside Document. * It always acts as a holder for escher DGG container * which may contain which Escher BStore container information - * about pictures containes in the presentation (if any). + * about pictures contained in the presentation (if any). */ public final class PPDrawingGroup extends RecordAtom { From a40fb74deac242bf20bff1f68c0eed91dc9f209c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:50:56 -0400 Subject: [PATCH 065/323] spelling: container Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/hslf/record/HeadersFootersContainer.java | 4 ++-- .../java/org/apache/poi/hslf/record/OutlineTextRefAtom.java | 2 +- poi/src/main/java/org/apache/poi/ddf/EscherRecord.java | 2 +- .../main/java/org/apache/poi/hssf/record/EscherAggregate.java | 2 +- .../java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java | 4 ++-- .../main/java/org/apache/poi/ss/formula/CacheAreaEval.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/HeadersFootersContainer.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/HeadersFootersContainer.java index 6c1d9c3b56f..6f504a21e88 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/HeadersFootersContainer.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/HeadersFootersContainer.java @@ -40,12 +40,12 @@ Licensed to the Apache Software Foundation (ASF) under one or more public final class HeadersFootersContainer extends RecordContainer { /** - * "instance" field in the record header indicating that this HeadersFootersContaine + * "instance" field in the record header indicating that this HeadersFootersContainer * is applied for slides */ public static final short SlideHeadersFootersContainer = 0x3F; /** - * "instance" field in the record header indicating that this HeadersFootersContaine + * "instance" field in the record header indicating that this HeadersFootersContainer * is applied for notes and handouts */ public static final short NotesHeadersFootersContainer = 0x4F; diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OutlineTextRefAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OutlineTextRefAtom.java index e56a9aec161..624f5b50d99 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OutlineTextRefAtom.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OutlineTextRefAtom.java @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more * What MSDN says about OutlineTextRefAtom: *

    * Appears in a slide to indicate a text that is already contained in the document, - * in a SlideListWithText containter. Sometimes slide texts are not contained + * in a SlideListWithText container. Sometimes slide texts are not contained * within the slide container to be able to delay loading a slide and still display * the title and body text in outline view. */ diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java index eec8d490462..93c27b07d20 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java @@ -218,7 +218,7 @@ public void setRecordId( short recordId ) { /** * @return Returns the children of this record. By default this will - * be an empty list. EscherCotainerRecord is the only record + * be an empty list. EscherContainerRecord is the only record * that may contain children. * * @see EscherContainerRecord diff --git a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java index b66367ac624..d5288ba2d5b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java @@ -1334,7 +1334,7 @@ public void setDgId(short dgId) { * ---*** * --*** * -EscherDgRecord - * set id for the sp record of the first spContainer in main spgrConatiner + * set id for the sp record of the first spContainer in main spgrContainer * @param shapeId - id which must be set */ public void setMainSpRecordId(int shapeId) { diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java index 716e215bbc2..a993c852cca 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPatriarch.java @@ -545,8 +545,8 @@ void buildShapeTree() { if (dgContainer == null) { return; } - EscherContainerRecord spgrConrainer = dgContainer.getChildContainers().get(0); - List spgrChildren = spgrConrainer.getChildContainers(); + EscherContainerRecord spgrContainer = dgContainer.getChildContainers().get(0); + List spgrChildren = spgrContainer.getChildContainers(); for (int i = 0; i < spgrChildren.size(); i++) { EscherContainerRecord spContainer = spgrChildren.get(i); diff --git a/poi/src/main/java/org/apache/poi/ss/formula/CacheAreaEval.java b/poi/src/main/java/org/apache/poi/ss/formula/CacheAreaEval.java index a26edcaf81b..8ac88e91592 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/CacheAreaEval.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/CacheAreaEval.java @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more public final class CacheAreaEval extends AreaEvalBase { - /* Value Containter */ + /* Value Container */ private final ValueEval[] _values; public CacheAreaEval(AreaI ptg, ValueEval[] values) { From aa326a53db76ce884d66a57e13e2b2112b4cbce4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:02 -0400 Subject: [PATCH 066/323] spelling: contains Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/streaming/SXSSFPicture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFPicture.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFPicture.java index 329125fc287..6125c9ccde1 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFPicture.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFPicture.java @@ -201,7 +201,7 @@ private float getColumnWidthInPixels(int columnIndex){ private float getRowHeightInPixels(int rowIndex) { // THE FOLLOWING THREE LINES ARE THE MAIN CHANGE compared to the non-streaming version: use the SXSSF sheet, - // not the XSSF sheet (which never contais rows when using SXSSF) + // not the XSSF sheet (which never contains rows when using SXSSF) XSSFSheet xssfSheet = getSheet(); SXSSFSheet sxSheet = _wb.getSXSSFSheet(xssfSheet); Sheet sheet = sxSheet == null ? xssfSheet : sxSheet; From 50e947fb7719b8bce65ac0b32ce636d7858f4702 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:03 -0400 Subject: [PATCH 067/323] spelling: context Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ss/formula/FormulaParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/FormulaParser.java b/poi/src/main/java/org/apache/poi/ss/formula/FormulaParser.java index 83fe1051af0..1dae192be59 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/FormulaParser.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/FormulaParser.java @@ -1282,7 +1282,7 @@ private boolean isValidCellReference(String str) { if(result){ /* * Check if the argument is a function. Certain names can be either a cell reference or a function name - * depending on the contenxt. Compare the following examples in Excel 2007: + * depending on the context. Compare the following examples in Excel 2007: * (a) LOG10(100) + 1 * (b) LOG10 + 1 * In (a) LOG10 is a name of a built-in function. In (b) LOG10 is a cell reference From 7cb7ef1a5ec682d680e35e40597f7fc8d7e41196 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:04 -0400 Subject: [PATCH 068/323] spelling: continuous Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/util/StringUtil.java | 2 +- .../test/java/org/apache/poi/hssf/util/TestAreaReference.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/util/StringUtil.java b/poi/src/main/java/org/apache/poi/util/StringUtil.java index b1debf5f5f9..6c37cf6681a 100644 --- a/poi/src/main/java/org/apache/poi/util/StringUtil.java +++ b/poi/src/main/java/org/apache/poi/util/StringUtil.java @@ -649,7 +649,7 @@ public static int countMatches(CharSequence haystack, char needle) { * format (most important byte last), return a Java String representation * of it. * - * Scans the byte array for two continous 0 bytes and returns the string before. + * Scans the byte array for two continuous 0 bytes and returns the string before. *

    * * #61881: there seem to be programs out there, which write the 0-termination also diff --git a/poi/src/test/java/org/apache/poi/hssf/util/TestAreaReference.java b/poi/src/test/java/org/apache/poi/hssf/util/TestAreaReference.java index 28170dbf12e..2208682fd63 100644 --- a/poi/src/test/java/org/apache/poi/hssf/util/TestAreaReference.java +++ b/poi/src/test/java/org/apache/poi/hssf/util/TestAreaReference.java @@ -200,7 +200,7 @@ void testContiguousReferences() { } @Test - void testDiscontinousReference() throws Exception { + void testDiscontinuousReference() throws Exception { try (InputStream is = HSSFTestDataSamples.openSampleFileStream("44167.xls"); HSSFWorkbook wb = new HSSFWorkbook(is)) { InternalWorkbook workbook = TestHSSFWorkbook.getInternalWorkbook(wb); From 712c29559252cfaf9122177cdab7a616794c81ae Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:05 -0400 Subject: [PATCH 069/323] spelling: convenience Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwmf/record/HwmfPenStyle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPenStyle.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPenStyle.java index fced0a24a5c..8f918af9d26 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPenStyle.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPenStyle.java @@ -176,7 +176,7 @@ public HwmfLineDash getLineDash() { } /** - * Convienence method which should be used instead of accessing {@link HwmfLineDash#dashes} + * Convenience method which should be used instead of accessing {@link HwmfLineDash#dashes} * directly, so an subclass can provide user-style dashes * * @return the dash pattern From 8570240addab48d28f6aa509cf25542698d9c1be Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:08 -0400 Subject: [PATCH 070/323] spelling: conventions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/examples/ss/ToCSV.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index ba5b3afb4e4..156e1454f07 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -630,7 +630,7 @@ public static void main(String[] args) { // that should be used to separate individual items (fields) on the // lines (records) of the CSV file and - again optionally - an integer // that idicates whether the CSV file ought to obey Excel's or UNIX - // convnetions with regard to formatting fields that contain embedded + // conventions with regard to formatting fields that contain embedded // separator, Speech mark or EOL character(s). // // Note that the names of the CSV files will be derived from those From 9895eec54698b9b4086c444abbf5b635055a1c61 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:09 -0400 Subject: [PATCH 071/323] spelling: convert Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java index 94d807fb5f0..af4ef9d564d 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java @@ -184,7 +184,7 @@ void dateCells() throws Exception { assertEquals(sheet.getColumnWidth(6), sheet.getColumnWidth(5)); // date formatted as 'mmm/dd/yyyy' // YK: width of not-evaluated formulas that return data is not determined - // POI seems to conevert '0' to Excel date which is the beginning of the Excel's date system + // POI seems to convert '0' to Excel date which is the beginning of the Excel's date system // evaluate formulas and re-autosize evaluateWorkbook(workbook); From d31b804b6be753cd59b84125ffc4de0a61301294 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:11 -0400 Subject: [PATCH 072/323] spelling: corresponding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/openxml4j/opc/TestRelationships.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestRelationships.java b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestRelationships.java index ce63f811a80..64e81d237fa 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestRelationships.java +++ b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestRelationships.java @@ -48,7 +48,7 @@ class TestRelationships { /** * Test relationships are correctly loaded. This at the moment fails (as of r499) - * whenever a document is loaded before its correspondig .rels file has been found. + * whenever a document is loaded before its corresponding .rels file has been found. * The code in this case assumes there are no relationships defined, but it should * really look also for not yet loaded parts. */ From dabbae7bced483f6dc76e6c299a7ab8faa748dd2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:12 -0400 Subject: [PATCH 073/323] spelling: currently Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/Ffn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/Ffn.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/Ffn.java index 3f925f86265..dfa31460843 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/Ffn.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/Ffn.java @@ -47,7 +47,7 @@ public final class Ffn { private byte[] _panose = new byte[10];//???? private byte[] _fontSig = new byte[24];//???? - // zero terminated string that records name of font, cuurently not + // zero terminated string that records name of font, currently not // supporting Extended chars private char[] _xszFfn; From b4e36d37994e3bc32b5b8a52ea05370680a98136 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:14:51 -0400 Subject: [PATCH 074/323] spelling: data Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java index 137d3901faf..8bea979e33d 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java @@ -67,7 +67,7 @@ void setup() { final XDDFValueAxis bottomAxis = chart.createValueAxis(AxisPosition.BOTTOM); final XDDFValueAxis leftAxis = chart.createValueAxis(AxisPosition.LEFT); - // Initialize data data sources + // Initialize data sources final Double dX[] = new Double[5]; final Double dY1[] = new Double[5]; From fa952d71c4a674c6eb60c54ef13c4dffe71608ce Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:13 -0400 Subject: [PATCH 075/323] spelling: decoration Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java index 269a0df884c..16c32e1c6d2 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java @@ -764,7 +764,7 @@ void copy(XSLFShape sh){ /** * Specifies the line end decoration, such as a triangle or arrowhead. * - * @param style the line end docoration style + * @param style the line end decoration style */ @SuppressWarnings("WeakerAccess") public void setLineHeadDecoration(DecorationShape style) { From b426480315a7f16ee7b64bf831bf6de359a5515b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:44:28 -0400 Subject: [PATCH 076/323] spelling: decrement Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 041e4bfd930..492f8797a54 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 @@ -632,7 +632,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet, totalWidthMM += (colWidthMM + ConvertImageUnits.CELL_BORDER_WIDTH_MILLIMETRES); toColumn++; } - // De-crement by one the last column value. + // Decrement by one the last column value. toColumn--; // Highly unlikely that this will be true but, if the width of a series // of columns is exactly equal to the required width of the image, then From d0b6852d33da30250bd22aa03835c423b3384da2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:14 -0400 Subject: [PATCH 077/323] spelling: decrypted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 60db08e5467..30d4bc35b47 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -3809,7 +3809,7 @@ void testBug66436() throws IOException, InvalidFormatException, GeneralSecurityE } } - // for the decrytped bytes + // for the decrypted bytes UnsynchronizedByteArrayOutputStream bosDec = UnsynchronizedByteArrayOutputStream.builder().get(); /* decrypt excel by poi */ From ffb9ffdc13c7ddddc94f3f1157b2608a801aaadd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:15:21 -0400 Subject: [PATCH 078/323] spelling: default Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/xwpf/usermodel/XWPFDocument.java | 8 ++++---- .../java/org/apache/poi/xwpf/usermodel/XWPFSettings.java | 2 +- .../java/org/apache/poi/hemf/record/emf/HemfText.java | 2 +- .../org/apache/poi/hssf/usermodel/TestHSSFTextbox.java | 2 +- .../poi/ss/usermodel/BaseTestSheetAutosizeColumn.java | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index ee285455f45..09d6a6eefe8 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -1309,7 +1309,7 @@ public void enforceReadonlyProtection() { * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. - * if null, it will default default to sha1 + * if null, it will default to sha1 */ public void enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.READ_ONLY, password, hashAlgo); @@ -1345,7 +1345,7 @@ public void enforceFillingFormsProtection() { * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. - * if null, it will default default to sha1 + * if null, it will default to sha1 */ public void enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.FORMS, password, hashAlgo); @@ -1381,7 +1381,7 @@ public void enforceCommentsProtection() { * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. - * if null, it will default default to sha1 + * if null, it will default to sha1 */ public void enforceCommentsProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.COMMENTS, password, hashAlgo); @@ -1417,7 +1417,7 @@ public void enforceTrackedChangesProtection() { * * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. - * if null, it will default default to sha1 + * if null, it will default to sha1 */ public void enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) { settings.setEnforcementEditValue(STDocProtect.TRACKED_CHANGES, password, hashAlgo); diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSettings.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSettings.java index 90753d3b92e..696935db164 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSettings.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSettings.java @@ -192,7 +192,7 @@ public void setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml. * @param editValue the protection type * @param password the plaintext password, if null no password will be applied * @param hashAlgo the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported. - * if null, it will default default to sha1 + * if null, it will default to sha1 */ public void setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect.Enum editValue, String password, HashAlgorithm hashAlgo) { diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfText.java b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfText.java index 3b6aaddd753..8dddf89dab1 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfText.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfText.java @@ -110,7 +110,7 @@ public long init(LittleEndianInputStream leis, long recordSize, long recordId) t // A WMF PointL object that specifies the coordinates of the reference point used to position the string. // The reference point is defined by the last EMR_SETTEXTALIGN record. - // If no such record has been set, the defaulint alignment is TA_LEFT,TA_TOP. + // If no such record has been set, the default alignment is TA_LEFT,TA_TOP. size += readPointL(leis, reference); // A 32-bit unsigned integer that specifies the number of characters in the string. stringLength = (int)leis.readUInt(); diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFTextbox.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFTextbox.java index 5d08d77e4c0..a6c4726d928 100644 --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFTextbox.java +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFTextbox.java @@ -53,7 +53,7 @@ void testAlignment() throws IOException { * When inserting text make sure that if font is not set we must set the default one. */ @Test - void testSetDeafultTextFormat() throws IOException { + void testSetDefaultTextFormat() throws IOException { try (HSSFWorkbook wb = new HSSFWorkbook()) { HSSFSheet sheet = wb.createSheet(); HSSFPatriarch patriarch = sheet.createDrawingPatriarch(); diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java index af4ef9d564d..3e048294dce 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java @@ -274,13 +274,13 @@ void mergedCells() throws Exception { Cell cell0 = row.createCell(0); cell0.setCellValue("Apache Software Foundation"); - int defaulWidth = sheet.getColumnWidth(0); + int defaultWidth = sheet.getColumnWidth(0); sheet.autoSizeColumn(0); // column is unchanged if merged regions are ignored (Excel like behavior) - assertEquals(defaulWidth, sheet.getColumnWidth(0)); + assertEquals(defaultWidth, sheet.getColumnWidth(0)); sheet.autoSizeColumn(0, true); - assertTrue(sheet.getColumnWidth(0) > defaulWidth); + assertTrue(sheet.getColumnWidth(0) > defaultWidth); workbook.close(); } From cece5a70b209442683a27cee053de38eb2ff3dfe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:02:17 -0400 Subject: [PATCH 079/323] spelling: defaults Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java | 2 +- .../test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java index 330f6629e7a..0c199cd2b0e 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFAutoShape.java @@ -69,7 +69,7 @@ void testTextBodyProperies() throws IOException { shape.setRightInset(0.0); assertEquals(0.0, shape.getRightInset(), 0); - // unset to defauls + // unset to defaults shape.setBottomInset(-1); assertEquals(3.6, shape.getBottomInset(), 0); shape.setTopInset(-1); diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java index 73d2eebe202..5ca2f5dc3ed 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFHeader.java @@ -127,7 +127,7 @@ void testSetHeader() throws IOException { assertEquals(0, headerF.getParagraphs().size()); - // As an additional check, recover the defauls footer and + // As an additional check, recover the defaults footer and // make sure that it contains two paragraphs of text and that // both do hold what is expected. footerD = policy.getDefaultFooter(); From 9203418db8dc0d54030464d16131edec306a3fe3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:18 -0400 Subject: [PATCH 080/323] spelling: deferred Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cdc514f3abf..c6936cec0b9 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 @@ -580,7 +580,7 @@ public final void testFunctionNames() throws Exception { } @Test - public final void testDefferedSetting() throws Exception { + public final void testDeferredSetting() throws Exception { try (Workbook wb = _testDataProvider.createWorkbook()) { Name n1 = wb.createName(); assertNull(n1.getRefersToFormula()); From cadf03b1ede2215c46207648e5a2772aa2a7423b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:19 -0400 Subject: [PATCH 081/323] spelling: defined Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/model/InternalWorkbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java b/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java index 424ab6eda81..a663eed4c7b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -2080,7 +2080,7 @@ public String resolveNameXText(int refIndex, int definedNameIndex) { * * @param name the name of an external function, typically a name of a UDF * @param sheetRefIndex the sheet ref index, or -1 if not known - * @param udf locator of user-defiend functions to resolve names of VBA and Add-In functions + * @param udf locator of user-defined functions to resolve names of VBA and Add-In functions * @return the external name or null */ public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) { From d23f28d36c16540bb3720fd62a725b004640c937 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:20 -0400 Subject: [PATCH 082/323] spelling: definition Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../usermodel/XSSFPivotCacheDefinition.java | 2 +- .../apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- .../usermodel/BaseTestXSSFPivotTable.java | 46 +++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotCacheDefinition.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotCacheDefinition.java index e5709c01e9a..f1dfd1a5c92 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotCacheDefinition.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotCacheDefinition.java @@ -55,7 +55,7 @@ public XSSFPivotCacheDefinition() { } /** - * Creates an XSSFPivotCacheDefintion representing the given package part and relationship. + * Creates an XSSFPivotCacheDefinition representing the given package part and relationship. * Should only be called when reading in an existing file. * * @param part - The package part that holds xml data representing this pivot cache definition. diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 70ed47e89e8..73183eae856 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -4639,7 +4639,7 @@ private XSSFPivotTable createPivotTable() { pivotTables.add(pivotTable); XSSFWorkbook workbook = getWorkbook(); - //Create relationship between the pivot cache defintion and the workbook + //Create relationship between the pivot cache definition and the workbook XSSFPivotCacheDefinition pivotCacheDefinition = (XSSFPivotCacheDefinition) workbook. createRelationship(XSSFRelation.PIVOT_CACHE_DEFINITION, getWorkbook().getXssfFactory(), tableId); String rId = workbook.getRelationId(pivotCacheDefinition); diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java index d989dca8708..4766c8522f2 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/BaseTestXSSFPivotTable.java @@ -71,10 +71,10 @@ void testAddRowLabelToPivotTable() { assertEquals(0, pivotTable.getRowLabelColumns().size()); pivotTable.addRowLabel(0); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(0, defintion.getRowFields().getFieldArray(0).getX()); - assertEquals(1, defintion.getRowFields().getCount()); + assertEquals(0, definition.getRowFields().getFieldArray(0).getX()); + assertEquals(1, definition.getRowFields().getCount()); assertEquals(1, pivotTable.getRowLabelColumns().size()); pivotTable.addRowLabel(1); @@ -100,9 +100,9 @@ void testAddOneColumnLabelToPivotTableDoesNotCreateColField() { int columnIndex = 0; pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertNull(defintion.getColFields()); + assertNull(definition.getColFields()); } /** @@ -117,9 +117,9 @@ void testAddThreeDifferentColumnLabelsToPivotTable() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne); pivotTable.addColumnLabel(DataConsolidateFunction.MAX, columnTwo); pivotTable.addColumnLabel(DataConsolidateFunction.MIN, columnThree); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(3, defintion.getDataFields().getDataFieldList().size()); + assertEquals(3, definition.getDataFields().getDataFieldList().size()); } @@ -135,9 +135,9 @@ void testAddThreeSametColumnLabelsToPivotTable() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne); pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo); pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnThree); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(3, defintion.getDataFields().getDataFieldList().size()); + assertEquals(3, definition.getDataFields().getDataFieldList().size()); } /** @@ -150,9 +150,9 @@ void testAddTwoColumnLabelsToPivotTable() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnOne); pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnTwo); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(defintion.getColFields().getFieldArray(0).getX(), -2); + assertEquals(definition.getColFields().getFieldArray(0).getX(), -2); } /** @@ -162,11 +162,11 @@ void testAddTwoColumnLabelsToPivotTable() { void testColumnLabelCreatesDataField() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 0); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(0, defintion.getDataFields().getDataFieldArray(0).getFld()); + assertEquals(0, definition.getDataFields().getDataFieldArray(0).getFld()); assertSame(STDataConsolidateFunction.Enum.forInt(DataConsolidateFunction.SUM.getValue()), - defintion.getDataFields().getDataFieldArray(0).getSubtotal()); + definition.getDataFields().getDataFieldArray(0).getSubtotal()); } /** @@ -180,10 +180,10 @@ void testColumnLabelSetCustomName() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, customName); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex); - assertEquals(defintion.getDataFields().getDataFieldArray(0).getName(), customName); + assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex); + assertEquals(definition.getDataFields().getDataFieldArray(0).getName(), customName); } /** @@ -197,10 +197,10 @@ void testColumnLabelSetDataFormat() { pivotTable.addColumnLabel(DataConsolidateFunction.SUM, columnIndex, null, format); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(defintion.getDataFields().getDataFieldArray(0).getFld(), columnIndex); - assertEquals(defintion.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format)); + assertEquals(definition.getDataFields().getDataFieldArray(0).getFld(), columnIndex); + assertEquals(definition.getDataFields().getDataFieldArray(0).getNumFmtId(), wb.createDataFormat().getFormat(format)); } /** @@ -292,10 +292,10 @@ void testAddColLabelToPivotTable() { assertEquals(0, pivotTable.getColLabelColumns().size()); pivotTable.addColLabel(0); - CTPivotTableDefinition defintion = pivotTable.getCTPivotTableDefinition(); + CTPivotTableDefinition definition = pivotTable.getCTPivotTableDefinition(); - assertEquals(0, defintion.getColFields().getFieldArray(0).getX()); - assertEquals(1, defintion.getColFields().getCount()); + assertEquals(0, definition.getColFields().getFieldArray(0).getX()); + assertEquals(1, definition.getColFields().getCount()); assertEquals(1, pivotTable.getColLabelColumns().size()); pivotTable.addColLabel(1); From ab59a9e639b8ae76f1894af0778d3a3950378517 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:22 -0400 Subject: [PATCH 083/323] spelling: degrees Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java b/poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java index e1ab3bf176b..2af95084ffe 100644 --- a/poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java +++ b/poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java @@ -137,7 +137,7 @@ public static Rectangle2D getAnchor(Graphics2D graphics, PlaceableShape sha if (quadrant == 1 || quadrant == 3) { // In a rotated quadrant 1 (=45-135 degrees) and 3 (=225-315 degrees), which is basically a shape in a // more or less portrait orientation, Powerpoint doesn't use the normal shape anchor, - // but rotate it 90 degress and apply the group transformations. + // but rotate it 90 degrees and apply the group transformations. // We try to revert that distortion and return the normalized anchor. // It's strange that you'll need to rotate the shape back and forth again, but you can // think of it, as if you paint the shape on a canvas. First you rotate the canvas, which might From 33ce9cc264afa2124800f0dd128b919c8cdec83a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:02:19 -0400 Subject: [PATCH 084/323] spelling: delete Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/poifs/filesystem/TestPOIFSStream.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSStream.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSStream.java index 4efcc809835..ea2dda7027e 100644 --- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSStream.java +++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSStream.java @@ -2533,7 +2533,7 @@ void RecursiveDelete() throws IOException { // Can't delete yet, has stuff assertFalse(vbaProj.delete()); // Recursively delete - _recursiveDeletee(vbaProj); + _recursiveDelete(vbaProj); // Entries gone assertEquals(4, _countChildren(src._get_property_table().getRoot())); @@ -2541,7 +2541,7 @@ void RecursiveDelete() throws IOException { } } - private void _recursiveDeletee(Entry entry) throws IOException { + private void _recursiveDelete(Entry entry) throws IOException { if (entry.isDocumentEntry()) { assertTrue(entry.delete()); return; @@ -2551,7 +2551,7 @@ private void _recursiveDeletee(Entry entry) throws IOException { String[] names = dir.getEntryNames().toArray(new String[dir.getEntryCount()]); for (String name : names) { Entry ce = dir.getEntry(name); - _recursiveDeletee(ce); + _recursiveDelete(ce); } assertTrue(dir.delete()); } From 773bed64b8f10c4961783ead9a987054218e3f67 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:24 -0400 Subject: [PATCH 085/323] spelling: deleting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwpf/model/TextPiece.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/TextPiece.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/TextPiece.java index 4dada2805ba..20f039e3dbd 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/TextPiece.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/TextPiece.java @@ -136,7 +136,7 @@ public String substring(int start, int end) { } /** - * Adjusts the internal string for deletinging + * Adjusts the internal string for deleting * some characters within this. * * @param start The start position for the delete, in characters From 33b1bc80a5325772c7fe4d03d0fd79acab08be6d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:26 -0400 Subject: [PATCH 086/323] spelling: described Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwpf/usermodel/Section.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Section.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Section.java index ac0e6f25aff..2b2790848ee 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Section.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Section.java @@ -170,7 +170,7 @@ public boolean isColumnsEvenlySpaced() *

    {@code 0x02}
    If the numbering restarts on every page
    * * - * @return an Rnc, as decribed above, specifying when and where footnote numbering restarts + * @return an Rnc, as described above, specifying when and where footnote numbering restarts */ public short getFootnoteRestartQualifier() { return _props.getRncFtn(); @@ -203,7 +203,7 @@ public int getFootnoteNumberingFormat() { *
    {@code 0x02}
    If the numbering restarts on every page
    * * - * @return an Rnc, as decribed above, specifying when and where endnote numbering restarts + * @return an Rnc, as described above, specifying when and where endnote numbering restarts */ public short getEndnoteRestartQualifier() { return _props.getRncEdn(); From 3e40197bf39fca8ca53df1617029335de6803e7e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:28 -0400 Subject: [PATCH 087/323] spelling: details Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/sl/extractor/SlideShowExtractor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java b/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java index bb18c730035..569a64c3c6a 100644 --- a/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java +++ b/poi/src/main/java/org/apache/poi/sl/extractor/SlideShowExtractor.java @@ -213,8 +213,8 @@ private void printTextParagraphs(final List

    paras, final Consumer con private void printHeaderFooter(final Sheet sheet, final Consumer consumer, final Consumer footerCon) { final Sheet m = (sheet instanceof Slide) ? sheet.getMasterSheet() : sheet; - addSheetPlaceholderDatails(sheet, Placeholder.HEADER, consumer); - addSheetPlaceholderDatails(sheet, Placeholder.FOOTER, footerCon); + addSheetPlaceholderDetails(sheet, Placeholder.HEADER, consumer); + addSheetPlaceholderDetails(sheet, Placeholder.FOOTER, footerCon); if (!masterByDefault) { return; @@ -249,7 +249,7 @@ private void printHeaderFooter(final Sheet sheet, final Consumer co } - private void addSheetPlaceholderDatails(final Sheet sheet, final Placeholder placeholder, final Consumer consumer) { + private void addSheetPlaceholderDetails(final Sheet sheet, final Placeholder placeholder, final Consumer consumer) { final PlaceholderDetails headerPD = sheet.getPlaceholderDetails(placeholder); final String headerStr = (headerPD != null) ? headerPD.getText() : null; if (headerStr != null && filter.test(headerPD)) { From 0781bad94b06743502895c10fc4def476577dbcc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:29 -0400 Subject: [PATCH 088/323] spelling: diagonal Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hssf/record/ExtendedFormatRecord.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java index b5a1d3d94e6..7ec61b190f3 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java @@ -762,7 +762,7 @@ public void setRightBorderPaletteIdx(short border) } // i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none.. - // maybe a diagnal line? + // maybe a diagonal line? /** * Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none.. @@ -1474,7 +1474,7 @@ public short getRightBorderPaletteIdx() } // i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none.. - // maybe a diagnal line? + // maybe a diagonal line? /** * Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none.. From 73618fc3f6e6c83025ee05f10faed76c77451e4a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:08:54 -0400 Subject: [PATCH 089/323] spelling: diagram Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java | 2 +- .../java/org/apache/poi/xssf/usermodel/XSSFGraphicFrame.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java index 7d75ddf3943..245f63da8ea 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDrawing.java @@ -405,7 +405,7 @@ private XSSFGraphicFrame createGraphicFrame(XSSFClientAnchor anchor) { XSSFGraphicFrame graphicFrame = new XSSFGraphicFrame(this, ctGraphicFrame); graphicFrame.setAnchor(anchor); graphicFrame.setId(frameId); - graphicFrame.setName("Diagramm" + frameId); + graphicFrame.setName("Diagram" + frameId); return graphicFrame; } diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFGraphicFrame.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFGraphicFrame.java index 47d9c22dd0c..010e8fe81ca 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFGraphicFrame.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFGraphicFrame.java @@ -88,7 +88,7 @@ protected static CTGraphicalObjectFrame prototype() { CTGraphicalObjectFrameNonVisual nvGraphic = graphicFrame.addNewNvGraphicFramePr(); CTNonVisualDrawingProps props = nvGraphic.addNewCNvPr(); props.setId(0); - props.setName("Diagramm 1"); + props.setName("Diagram 1"); nvGraphic.addNewCNvGraphicFramePr(); CTTransform2D transform = graphicFrame.addNewXfrm(); From fbff11fa1c16d582e4171d1f8258621f0bca66b1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:30 -0400 Subject: [PATCH 090/323] spelling: different Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index 0983c454970..626f2d620b6 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -830,7 +830,7 @@ public void setReadingOrder(short order) { */ public void verifyBelongsToWorkbook(HSSFWorkbook wb) { if(wb.getWorkbook() != _workbook) { - throw new IllegalArgumentException("This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?"); + throw new IllegalArgumentException("This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a different workbook?"); } } From 65cc63c2045853864404aed8c3c2ed68f27d6f89 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:31 -0400 Subject: [PATCH 091/323] spelling: directory Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java b/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java index 4cf5a31eb70..97231a82390 100644 --- a/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java +++ b/poi/src/test/java/org/apache/poi/hpsf/basic/TestReadAllFiles.java @@ -134,7 +134,7 @@ void recreate(File file) throws IOException, HPSFException { /** * This test method checks whether DocumentSummary information streams - * can be read. This is done by opening all "Test*" files in the 'poifs' directrory + * can be read. This is done by opening all "Test*" files in the 'poifs' directory * pointed to by the "POI.testdata.path" system property, trying to extract * the document summary information stream in the root directory and calling * its get... methods. From d914c1c8a7e46d813a07f0fb00a7b9a94d94f239 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:33 -0400 Subject: [PATCH 092/323] spelling: displayed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/record/WindowTwoRecord.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/WindowTwoRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/WindowTwoRecord.java index 7548361afc8..37ef9151cf8 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/WindowTwoRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/WindowTwoRecord.java @@ -164,7 +164,7 @@ public void setArabic(boolean isarabic) } /** - * set whether the outline symbols are displaed + * set whether the outline symbols are displayed * @param guts symbols or not */ public void setDisplayGuts(boolean guts) @@ -342,7 +342,7 @@ public boolean getArabic() } /** - * get whether the outline symbols are displaed + * get whether the outline symbols are displayed * @return symbols or not */ public boolean getDisplayGuts() From 74e2100c5678894dea5dc0e49452e76cb1452d60 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:35 -0400 Subject: [PATCH 093/323] spelling: distinguish Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hpsf/Section.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1f127fb48a7..c16b2ee4b7c 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/Section.java +++ b/poi/src/main/java/org/apache/poi/hpsf/Section.java @@ -582,7 +582,7 @@ private void padSectionBytes() { * was available or not. This information might be important for * callers of {@link #getPropertyIntValue} since the latter * returns 0 if the property does not exist. Using {@link - * #wasNull} the caller can distiguish this case from a property's + * #wasNull} the caller can distinguish this case from a property's * real value of 0. * * @return {@code true} if the last call to {@link From 462a599a0568491f4393f7a0d64769a2935fb820 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:36 -0400 Subject: [PATCH 094/323] spelling: division Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/ss/usermodel/FractionFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java b/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java index 75c343b33f7..facfc2b4a73 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java @@ -124,7 +124,7 @@ private String format(final BigDecimal decimal) { // if the absolute value is smaller than 1 over the exact or maxDenom // you can stop here and return "0" - // reciprocal is result of an int devision ... and so it's nearly always 0 + // reciprocal is result of an int division ... and so it's nearly always 0 // double reciprocal = 1/Math.max(exactDenom, maxDenom); // if (absDoubleValue < reciprocal) { // return "0"; From d935f362f5ee109b79635ff3f6e1aecbbc4db036 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:37 -0400 Subject: [PATCH 095/323] spelling: document Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xwpf/usermodel/XWPFComments.java | 2 +- .../java/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java | 2 +- .../main/java/org/apache/poi/hssf/record/HyperlinkRecord.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFComments.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFComments.java index 1aff90af298..5fb922f4f1a 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFComments.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFComments.java @@ -61,7 +61,7 @@ public XWPFComments(POIXMLDocumentPart parent, PackagePart part) { super(parent, part); if (!(getParent() instanceof XWPFDocument)) { - throw new IllegalStateException("Parent is not a XWPFDocuemnt: " + getParent()); + throw new IllegalStateException("Parent is not a XWPFDocument: " + getParent()); } this.document = (XWPFDocument) getParent(); diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java index 785f6924058..efb893a9593 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java @@ -94,7 +94,7 @@ public void fill(List filler) } /** - * Used when writing out a Word docunment. This method is part of a sequence + * Used when writing out a Word document. This method is part of a sequence * that is necessary because there is no easy and efficient way to * determine the number PAPX's that will fit into one FKP. THe sequence is * as follows: diff --git a/poi/src/main/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/HyperlinkRecord.java index c6acf983363..48f469ef3b6 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/HyperlinkRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/HyperlinkRecord.java @@ -548,7 +548,7 @@ public boolean isFileLink() { /** * Based on the link options, is this a document? * - * @return true, if this is a docment link + * @return true, if this is a document link */ public boolean isDocumentLink() { return (_linkOpts & HLINK_PLACE) > 0; From 9485a4aa4317266b27b453e6666d90832b9442e9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:40 -0400 Subject: [PATCH 096/323] spelling: doesn't Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java | 2 +- .../java/org/apache/poi/hslf/usermodel/HSLFSlideMaster.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java index 2dfb485af27..b844a29ca4e 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -184,7 +184,7 @@ public void onCreate(){ } } - //PPT doen't increment the number of saved shapes for group descriptor and background + //PPT doesn't increment the number of saved shapes for group descriptor and background dg.setNumShapes(1); } diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideMaster.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideMaster.java index 513c8319c32..65dcf6dda52 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideMaster.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideMaster.java @@ -65,7 +65,7 @@ public List> getTextParagraphs() { } /** - * Returns null since SlideMasters doen't have master sheet. + * Returns null since SlideMasters doesn't have master sheet. */ @Override public HSLFMasterSheet getMasterSheet() { From fe8265e047dbc2409903952639d13b3acc7bbe59 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:42 -0400 Subject: [PATCH 097/323] spelling: duplicates Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/examples/ss/ConditionalFormats.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ConditionalFormats.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ConditionalFormats.java index db65f767874..f6f96c340d5 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ConditionalFormats.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ConditionalFormats.java @@ -75,7 +75,7 @@ public static void main(String[] args) throws IOException { multiCell(wb.createSheet("MultiCell")); overlapping(wb.createSheet("Overlapping")); errors(wb.createSheet("Errors")); - hideDupplicates(wb.createSheet("Hide Dups")); + hideDuplicates(wb.createSheet("Hide Dups")); formatDuplicates(wb.createSheet("Duplicates")); inList(wb.createSheet("In List")); expiry(wb.createSheet("Expiry")); @@ -287,7 +287,7 @@ static void errors(Sheet sheet) { * and make the list easier to read. In this example, when the table is sorted by Region, * the second (and subsequent) occurrences of each region name will have white font colour. */ - static void hideDupplicates(Sheet sheet) { + static void hideDuplicates(Sheet sheet) { sheet.createRow(0).createCell(0).setCellValue("City"); sheet.createRow(1).createCell(0).setCellValue("Boston"); sheet.createRow(2).createCell(0).setCellValue("Boston"); From 8a025526c191d9f22bcafdd4f38dd2fe2c567b0e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:44 -0400 Subject: [PATCH 098/323] spelling: efficiently Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ddf/EscherRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java index 93c27b07d20..57090b5bf36 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java @@ -191,7 +191,7 @@ public int serialize( int offset, byte[] data) public abstract int serialize( int offset, byte[] data, EscherSerializationListener listener ); /** - * Subclasses should effeciently return the number of bytes required to + * Subclasses should efficiently return the number of bytes required to * serialize the record. * * @return number of bytes From a847b13876d232b0a6330b0f6e0e2d9b15e82ec0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:45 -0400 Subject: [PATCH 099/323] spelling: embedded Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi-integration/build.xml | 2 +- .../org/apache/poi/xssf/usermodel/XSSFWorkbook.java | 8 ++++---- .../org/apache/poi/xwpf/usermodel/XWPFDocument.java | 8 ++++---- .../poi/extractor/ooxml/TestExtractorFactory.java | 6 +++--- .../apache/poi/hslf/extractor/TestExtractor.java | 8 ++++---- .../hsmf/extractor/TestOutlookTextExtractor.java | 4 ++-- .../poi/hwpf/extractor/TestWordExtractor.java | 4 ++-- .../org/apache/poi/hwpf/usermodel/TestPictures.java | 4 ++-- .../apache/poi/hssf/record/TextObjectRecord.java | 2 +- .../poi/hssf/extractor/TestExcelExtractor.java | 12 ++++++------ ...sio_with_embeded.vsd => visio_with_embedded.vsd} | Bin ...word_with_embeded.doc => word_with_embedded.doc} | Bin ...beded_ooxml.doc => word_with_embedded_ooxml.doc} | Bin .../{ppt_with_embeded.ppt => ppt_with_embedded.ppt} | Bin ...cel_with_embeded.xls => excel_with_embedded.xls} | Bin 15 files changed, 29 insertions(+), 29 deletions(-) rename test-data/diagram/{visio_with_embeded.vsd => visio_with_embedded.vsd} (100%) rename test-data/document/{word_with_embeded.doc => word_with_embedded.doc} (100%) rename test-data/document/{word_with_embeded_ooxml.doc => word_with_embedded_ooxml.doc} (100%) rename test-data/slideshow/{ppt_with_embeded.ppt => ppt_with_embedded.ppt} (100%) rename test-data/spreadsheet/{excel_with_embeded.xls => excel_with_embedded.xls} (100%) diff --git a/poi-integration/build.xml b/poi-integration/build.xml index 7585fb69351..5edc7292685 100644 --- a/poi-integration/build.xml +++ b/poi-integration/build.xml @@ -125,7 +125,7 @@ Before running this, you should execute the "jar" target in the main build.gradl diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java index cc7284e04b0..c4d18b29144 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java @@ -1900,19 +1900,19 @@ public boolean isDate1904() { */ @Override public List getAllEmbeddedParts() throws OpenXML4JException { - List embedds = new LinkedList<>(); + List embedded = new LinkedList<>(); for(XSSFSheet sheet : sheets){ // Get the embeddings for the workbook for(PackageRelationship rel : sheet.getPackagePart().getRelationshipsByType(XSSFRelation.OLEEMBEDDINGS.getRelation())) { - embedds.add( sheet.getPackagePart().getRelatedPart(rel) ); + embedded.add( sheet.getPackagePart().getRelatedPart(rel) ); } for(PackageRelationship rel : sheet.getPackagePart().getRelationshipsByType(XSSFRelation.PACKEMBEDDINGS.getRelation())) { - embedds.add( sheet.getPackagePart().getRelatedPart(rel) ); + embedded.add( sheet.getPackagePart().getRelatedPart(rel) ); } } - return embedds; + return embedded; } @Override diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index 09d6a6eefe8..3733a863f3a 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -612,19 +612,19 @@ public CTStyles getStyle() throws XmlException, IOException { */ @Override public List getAllEmbeddedParts() throws OpenXML4JException { - List embedds = new LinkedList<>(); + List embedded = new LinkedList<>(); // Get the embeddings for the workbook PackagePart part = getPackagePart(); for (PackageRelationship rel : getPackagePart().getRelationshipsByType(OLE_OBJECT_REL_TYPE)) { - embedds.add(part.getRelatedPart(rel)); + embedded.add(part.getRelatedPart(rel)); } for (PackageRelationship rel : getPackagePart().getRelationshipsByType(PACK_OBJECT_REL_TYPE)) { - embedds.add(part.getRelatedPart(rel)); + embedded.add(part.getRelatedPart(rel)); } - return embedds; + return embedded; } /** diff --git a/poi-ooxml/src/test/java/org/apache/poi/extractor/ooxml/TestExtractorFactory.java b/poi-ooxml/src/test/java/org/apache/poi/extractor/ooxml/TestExtractorFactory.java index b4f6fe09a0b..8799d2ae45b 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/extractor/ooxml/TestExtractorFactory.java +++ b/poi-ooxml/src/test/java/org/apache/poi/extractor/ooxml/TestExtractorFactory.java @@ -64,7 +64,7 @@ class TestExtractorFactory { @SuppressWarnings("unused") private static final File xlsxStrict = getFileAndCheck(ssTests, "SampleSS.strict.xlsx"); private static final File xltx = getFileAndCheck(ssTests, "test.xltx"); - private static final File xlsEmb = getFileAndCheck(ssTests, "excel_with_embeded.xls"); + private static final File xlsEmb = getFileAndCheck(ssTests, "excel_with_embedded.xls"); private static final File xlsb = getFileAndCheck(ssTests, "testVarious.xlsb"); private static final POIDataSamples wpTests = POIDataSamples.getDocumentInstance(); @@ -73,8 +73,8 @@ class TestExtractorFactory { private static final File doc95 = getFileAndCheck(wpTests, "Word95.doc"); private static final File docx = getFileAndCheck(wpTests, "SampleDoc.docx"); private static final File dotx = getFileAndCheck(wpTests, "test.dotx"); - private static final File docEmb = getFileAndCheck(wpTests, "word_with_embeded.doc"); - private static final File docEmbOOXML = getFileAndCheck(wpTests, "word_with_embeded_ooxml.doc"); + private static final File docEmb = getFileAndCheck(wpTests, "word_with_embedded.doc"); + private static final File docEmbOOXML = getFileAndCheck(wpTests, "word_with_embedded_ooxml.doc"); private static final POIDataSamples slTests = POIDataSamples.getSlideShowInstance(); private static final File ppt = getFileAndCheck(slTests, "SampleShow.ppt"); diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/extractor/TestExtractor.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/extractor/TestExtractor.java index 6b8a08ff2df..afe2d728fc8 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/extractor/TestExtractor.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/extractor/TestExtractor.java @@ -174,8 +174,8 @@ void testMissingCoreRecords() throws IOException { } @Test - void testExtractFromEmbeded() throws IOException { - try (final InputStream is = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("excel_with_embeded.xls"); + void testExtractFromEmbedded() throws IOException { + try (final InputStream is = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("excel_with_embedded.xls"); final POIFSFileSystem fs = new POIFSFileSystem(is)) { final DirectoryNode root = fs.getRoot(); @@ -200,8 +200,8 @@ void testExtractFromEmbeded() throws IOException { * A powerpoint file with embedded powerpoint files */ @Test - void testExtractFromOwnEmbeded() throws IOException { - try (SlideShowExtractor ppe = openExtractor("ppt_with_embeded.ppt")) { + void testExtractFromOwnEmbedded() throws IOException { + try (SlideShowExtractor ppe = openExtractor("ppt_with_embedded.ppt")) { List> shapes = ppe.getOLEShapes(); assertEquals(6, shapes.size(), "Expected 6 ole shapes"); int num_ppt = 0, num_doc = 0, num_xls = 0; diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hsmf/extractor/TestOutlookTextExtractor.java b/poi-scratchpad/src/test/java/org/apache/poi/hsmf/extractor/TestOutlookTextExtractor.java index bb3c4b3cd08..489b94c8594 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hsmf/extractor/TestOutlookTextExtractor.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hsmf/extractor/TestOutlookTextExtractor.java @@ -191,7 +191,7 @@ void testReceivedWithMultipleRecipients() throws Exception { } /** - * See also {@link org.apache.poi.extractor.ooxml.TestExtractorFactory#testEmbeded()} + * See also {@link org.apache.poi.extractor.ooxml.TestExtractorFactory#testEmbedded()} */ @SuppressWarnings("JavadocReference") @Test @@ -213,7 +213,7 @@ void testWithAttachments() throws Exception { assertContains(text, "Attachment: pj1.txt\n"); assertContains(text, "contenu"); - // Embeded bits are checked in + // Embedded bits are checked in // TestExtractorFactory } } diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/extractor/TestWordExtractor.java b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/extractor/TestWordExtractor.java index 4ef67c44c8c..72015be6dc2 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/extractor/TestWordExtractor.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/extractor/TestWordExtractor.java @@ -137,8 +137,8 @@ void testExtractFromTextPieces() throws IOException { * Test that we can get data from two different embedded word documents */ @Test - void testExtractFromEmbeded() throws IOException { - InputStream is = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("excel_with_embeded.xls"); + void testExtractFromEmbedded() throws IOException { + InputStream is = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("excel_with_embedded.xls"); POIFSFileSystem fs = new POIFSFileSystem(is); is.close(); diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestPictures.java b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestPictures.java index 96caa82a240..ebea49783a6 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestPictures.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestPictures.java @@ -144,10 +144,10 @@ void testFastSaved(String file) throws IOException { * Check that we can properly read one of these */ @Test - void testEmbededDocumentIcon() { + void testEmbeddedDocumentIcon() { // This file has two embedded excel files, an embedded powerpoint // file and an embedded word file, in that order - HWPFDocument doc = openSampleFile("word_with_embeded.doc"); + HWPFDocument doc = openSampleFile("word_with_embedded.doc"); // Check we don't break loading the pictures doc.getPicturesTable().getAllPictures(); diff --git a/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java index c399bd64f97..63c7ac104b1 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java @@ -71,7 +71,7 @@ public final class TextObjectRecord extends ContinuableRecord { /* * Note - the next three fields are very similar to those on - * EmbededObjectRefSubRecord(ftPictFmla 0x0009) + * EmbeddedObjectRefSubRecord(ftPictFmla 0x0009) * * some observed values for the 4 bytes preceding the formula: C0 5E 86 03 * C0 11 AC 02 80 F1 8A 03 D4 F0 8A 03 diff --git a/poi/src/test/java/org/apache/poi/hssf/extractor/TestExcelExtractor.java b/poi/src/test/java/org/apache/poi/hssf/extractor/TestExcelExtractor.java index 497bd20843c..b1acb967ee7 100644 --- a/poi/src/test/java/org/apache/poi/hssf/extractor/TestExcelExtractor.java +++ b/poi/src/test/java/org/apache/poi/hssf/extractor/TestExcelExtractor.java @@ -240,17 +240,17 @@ void testFormatting() throws Exception { } /** - * Embeded in a non-excel file + * Embedded in a non-excel file */ @Test - void testWithEmbeded() throws Exception { + void testWithEmbedded() throws Exception { POIFSFileSystem fs = null; HSSFWorkbook wbA = null, wbB = null; ExcelExtractor exA = null, exB = null; try { - fs = new POIFSFileSystem(POIDataSamples.getDocumentInstance().getFile("word_with_embeded.doc")); + fs = new POIFSFileSystem(POIDataSamples.getDocumentInstance().getFile("word_with_embedded.doc")); DirectoryNode objPool = (DirectoryNode) fs.getRoot().getEntry("ObjectPool"); DirectoryNode dirA = (DirectoryNode) objPool.getEntry("_1269427460"); @@ -285,7 +285,7 @@ void testWithEmbeddedInOwn() throws Exception { ExcelExtractor exA = null, exB = null, ex = null; try { - fs = new POIFSFileSystem(ssSamples.getFile("excel_with_embeded.xls")); + fs = new POIFSFileSystem(ssSamples.getFile("excel_with_embedded.xls")); DirectoryNode dirA = (DirectoryNode) fs.getRoot().getEntry("MBD0000A3B5"); DirectoryNode dirB = (DirectoryNode) fs.getRoot().getEntry("MBD0000A3B4"); @@ -303,8 +303,8 @@ void testWithEmbeddedInOwn() throws Exception { // And the base file too ex = new ExcelExtractor(fs); - assertEquals("Sheet1\nI have lots of embeded files in me\nSheet2\nSheet3\n", ex.getText()); - assertEquals("Excel With Embeded", ex.getSummaryInformation().getTitle()); + assertEquals("Sheet1\nI have lots of embeded files in me\nSheet2\nSheet3\n", ex.getText()); /* fixing the spelling here requires editing 44643.xls */ + assertEquals("Excel With Embeded", ex.getSummaryInformation().getTitle()); /* fixing the spelling here requires editing 44643.xls */ } finally { if (ex != null) ex.close(); if (exB != null) exB.close(); diff --git a/test-data/diagram/visio_with_embeded.vsd b/test-data/diagram/visio_with_embedded.vsd similarity index 100% rename from test-data/diagram/visio_with_embeded.vsd rename to test-data/diagram/visio_with_embedded.vsd diff --git a/test-data/document/word_with_embeded.doc b/test-data/document/word_with_embedded.doc similarity index 100% rename from test-data/document/word_with_embeded.doc rename to test-data/document/word_with_embedded.doc diff --git a/test-data/document/word_with_embeded_ooxml.doc b/test-data/document/word_with_embedded_ooxml.doc similarity index 100% rename from test-data/document/word_with_embeded_ooxml.doc rename to test-data/document/word_with_embedded_ooxml.doc diff --git a/test-data/slideshow/ppt_with_embeded.ppt b/test-data/slideshow/ppt_with_embedded.ppt similarity index 100% rename from test-data/slideshow/ppt_with_embeded.ppt rename to test-data/slideshow/ppt_with_embedded.ppt diff --git a/test-data/spreadsheet/excel_with_embeded.xls b/test-data/spreadsheet/excel_with_embedded.xls similarity index 100% rename from test-data/spreadsheet/excel_with_embeded.xls rename to test-data/spreadsheet/excel_with_embedded.xls From 657ac0047f4e948a89a5746314f4d044712c992c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:49 -0400 Subject: [PATCH 100/323] spelling: embedding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java index ae3459e5907..1fa6ff2099f 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFObjectShape.java @@ -238,7 +238,7 @@ static CTGraphicalObjectFrame prototype(int shapeId, String picRel){ CTGraphicalObjectFrameNonVisual nvGr = frame.addNewNvGraphicFramePr(); CTNonVisualDrawingProps cnv = nvGr.addNewCNvPr(); - // usually the shape name has its index based on the n-th embeding, but having + // usually the shape name has its index based on the n-th embedding, but having // the prototype separate from the actual updating of the object, we use the shape id cnv.setName("Object " + shapeId); cnv.setId(shapeId); From babbbbb666dbf3a39b92f448c0303e3831d8e033 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:20:44 -0400 Subject: [PATCH 101/323] spelling: empty Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/ss/excelant/ExcelAntTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-excelant/src/main/java/org/apache/poi/ss/excelant/ExcelAntTest.java b/poi-excelant/src/main/java/org/apache/poi/ss/excelant/ExcelAntTest.java index b2be5c50389..6fe5f5cff70 100644 --- a/poi-excelant/src/main/java/org/apache/poi/ss/excelant/ExcelAntTest.java +++ b/poi-excelant/src/main/java/org/apache/poi/ss/excelant/ExcelAntTest.java @@ -180,7 +180,7 @@ public void execute() throws BuildException { } catch( NullPointerException npe ) { // this means the cell reference in the test is bad. log( "Cell assignment " + eval.getCell() + " in test " + getName() + - " appears to point to an empy cell. Please check the " + + " appears to point to an empty cell. Please check the " + " reference in the ant script.", Project.MSG_ERR ); } } From a3e37b69b82432bccc3f9e918ff62c0556058b4a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:51 -0400 Subject: [PATCH 102/323] spelling: encoding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../apache/poi/hssf/record/TestRecordFactoryInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/hssf/record/TestRecordFactoryInputStream.java b/poi/src/test/java/org/apache/poi/hssf/record/TestRecordFactoryInputStream.java index cdd5c113411..f7a5e608aec 100644 --- a/poi/src/test/java/org/apache/poi/hssf/record/TestRecordFactoryInputStream.java +++ b/poi/src/test/java/org/apache/poi/hssf/record/TestRecordFactoryInputStream.java @@ -60,7 +60,7 @@ final class TestRecordFactoryInputStream { */ @Test void defaultPasswordWrong() { - // This encodng depends on docId, password and stream position + // This encoding depends on docId, password and stream position final String SAMPLE_WINDOW1_ENCR1 = "3D 00 12 00" + "C4, 9B, 02, 50, 86, E0, DF, 34, FB, 57, 0E, 8C, CE, 25, 45, E3, 80, 01"; @@ -79,7 +79,7 @@ void defaultPasswordWrong() { @Test void defaultPasswordOK() { - // This encodng depends on docId, password and stream position + // This encoding depends on docId, password and stream position final String SAMPLE_WINDOW1_ENCR1 = "3D 00 12 00" + "C4, 9B, 02, 50, 86, E0, DF, 34, FB, 57, 0E, 8C, CE, 25, 45, E3, 80, 01"; From c953763017865e2a71f7b3fbbfed9cfc919437c9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:52 -0400 Subject: [PATCH 103/323] spelling: encrypted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/model/InternalWorkbook.java | 2 +- .../main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java b/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java index a663eed4c7b..39ea0530a4d 100644 --- a/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -2041,7 +2041,7 @@ public boolean isWriteProtected() { } /** - * protect a workbook with a password (not encypted, just sets writeprotect + * protect a workbook with a password (not encrypted, just sets writeprotect * flags and the password. * * @param password the password diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index b303d3d7dac..aac44b1542b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -2168,7 +2168,7 @@ public boolean isWriteProtected() { } /** - * protect a workbook with a password (not encypted, just sets writeprotect + * protect a workbook with a password (not encrypted, just sets writeprotect * flags and the password. * * @param password to set From a22834c85d51374ba3d9318f8a3c77a94aae6863 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:53 -0400 Subject: [PATCH 104/323] spelling: endianness Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hpsf/ClassID.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hpsf/ClassID.java b/poi/src/main/java/org/apache/poi/hpsf/ClassID.java index 7e0ec5e2d88..8cda8e1579c 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/ClassID.java +++ b/poi/src/main/java/org/apache/poi/hpsf/ClassID.java @@ -216,7 +216,7 @@ public boolean equals(final Object o) { } /** - * Checks whether this {@code ClassID} is equal to another ClassID with inverted endianess, + * Checks whether this {@code ClassID} is equal to another ClassID with inverted endianness, * because there are apparently not only version 1 GUIDs (aka "network" with big-endian encoding), * but also version 2 GUIDs (aka "native" with little-endian encoding) out there. * From 7e72e77dcc779694fb11926b824102c83b6c058b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:21:10 -0400 Subject: [PATCH 105/323] spelling: enhanced Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwmf/record/HwmfEscape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfEscape.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfEscape.java index 39586fdd7e9..91127c0e700 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfEscape.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfEscape.java @@ -331,7 +331,7 @@ public int init(LittleEndianInputStream leis, long recordSize, EscapeFunction es // A 32-bit unsigned integer that specifies the number of bytes in the EMF stream that remain to be // processed after this record. Those additional EMF bytes MUST follow in the EnhancedMetafileData - // fields of subsequent META_ESCAPE_ENHANDED_METAFILE escape records. + // fields of subsequent META_ESCAPE_ENHANCED_METAFILE escape records. remainingBytes = leis.readInt(); // A 32-bit unsigned integer that specifies the total size of the EMF stream embedded in this From a605449f9e7623c89e5d04fcfd9786431f8e8652 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:22:45 -0400 Subject: [PATCH 106/323] spelling: escapement Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwmf/record/HwmfFont.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfFont.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfFont.java index 671b0ae159d..9a21acdae86 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfFont.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfFont.java @@ -534,7 +534,7 @@ public Map> getGenericProperties() { final Map> m = new LinkedHashMap<>(); m.put("height", this::getHeight); m.put("width", this::getWidth); - m.put("escapment", this::getEscapement); + m.put("escapement", this::getEscapement); m.put("weight", this::getWeight); m.put("italic", this::isItalic); m.put("underline", this::isUnderline); From aa9a4aac2283ee535343d0201d577421ecba760f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:11:30 -0400 Subject: [PATCH 107/323] spelling: escher Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFShape.java | 2 +- .../main/java/org/apache/poi/hssf/record/EscherAggregate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFShape.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFShape.java index 8dd66e94fee..82010346fae 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFShape.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFShape.java @@ -69,7 +69,7 @@ public abstract class HSLFShape implements Shape { private static final Logger LOG = LogManager.getLogger(HSLFShape.class); /** - * Either EscherSpContainer or EscheSpgrContainer record + * Either EscherSpContainer or EscherSpgrContainer record * which holds information about this shape. */ private EscherContainerRecord _escherContainer; diff --git a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java index d5288ba2d5b..e4a7914b5c7 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/EscherAggregate.java @@ -1244,7 +1244,7 @@ public void associateShapeToObjRecord(EscherRecord r, Record objRecord) { } /** - * Remove echerRecord and associated to it Obj or TextObj record + * Remove escherRecord and associated to it Obj or TextObj record * @param rec - clientData or textbox record to be removed */ public void removeShapeToObjRecord(EscherRecord rec) { From f56e03c8fd5a11b1315962fe75a4f7d82833f120 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:23:47 -0400 Subject: [PATCH 108/323] spelling: evaluable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/ss/formula/BaseTestExternalFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/ss/formula/BaseTestExternalFunctions.java b/poi/src/test/java/org/apache/poi/ss/formula/BaseTestExternalFunctions.java index af6440a36e5..e23a93e36cd 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/BaseTestExternalFunctions.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/BaseTestExternalFunctions.java @@ -107,7 +107,7 @@ void testExternalFunctions() throws IOException { assertEquals("ISODD(1)+ISEVEN(2)", cell1.getCellFormula()); Cell cell2 = sh.createRow(1).createCell(0); - // unregistered functions are parseable and renderable, but may not be evaluateable + // unregistered functions are parseable and renderable, but may not be evaluable cell2.setCellFormula("MYFUNC(\"B1\")"); NotImplementedException e = assertThrows(NotImplementedException.class, () -> evaluator.evaluate(cell2), "Expected NotImplementedFunctionException/NotImplementedException"); From 0e398eae899dbdcdbf3d5d8d1d2e9d7601ee0a4a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:55 -0400 Subject: [PATCH 109/323] spelling: excel Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java | 2 +- .../main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java | 2 +- .../poi/hssf/record/aggregates/ConditionalFormattingTable.java | 2 +- .../main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 eccbc02e225..c92579576c9 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 @@ -1360,7 +1360,7 @@ public boolean getForceFormulaRecalculation(){ } /** - * Returns the spreadsheet version (EXCLE2007) of this workbook + * Returns the spreadsheet version (EXCEL2007) of this workbook * * @return EXCEL2007 SpreadsheetVersion enum * @since 3.14 beta 2 diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java index c4d18b29144..b4625907a47 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java @@ -2416,7 +2416,7 @@ public void setVBAProject(XSSFWorkbook macroWorkbook) throws IOException, Invali } /** - * Returns the spreadsheet version (EXCLE2007) of this workbook + * Returns the spreadsheet version (EXCEL2007) of this workbook * * @return EXCEL2007 SpreadsheetVersion enum * @since 3.14 beta 2 diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ConditionalFormattingTable.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ConditionalFormattingTable.java index 38a4c25cd98..1ecd0ea64ba 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ConditionalFormattingTable.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ConditionalFormattingTable.java @@ -27,7 +27,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * Holds all the conditional formatting for a workbook sheet.

    * - * See OOO exelfileformat.pdf sec 4.12 'Conditional Formatting Table' + * See OOO excelfileformat.pdf sec 4.12 'Conditional Formatting Table' */ public final class ConditionalFormattingTable extends RecordAggregate { private final List _cfHeaders = new ArrayList<>(); diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index aac44b1542b..6c4c84b56e2 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -2309,7 +2309,7 @@ public InternalWorkbook getInternalWorkbook() { } /** - * Returns the spreadsheet version (EXCLE97) of this workbook + * Returns the spreadsheet version (EXCEL97) of this workbook * * @return EXCEL97 SpreadsheetVersion enum * @since 3.14 beta 2 From a192e86eff991e900e63340efce81364f91d3fb9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:51:58 -0400 Subject: [PATCH 110/323] spelling: exception Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java | 2 +- .../java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java index 1b62833aece..73cbb66b268 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java @@ -60,7 +60,7 @@ void runOneFile(File pFile) throws Exception { SlideShowDumper.main(new String[]{pFile.getAbsolutePath()}); } catch (ArrayIndexOutOfBoundsException e) { - // some corrupted documents currently can cause this excpetion + // some corrupted documents currently can cause this exception if (!FAILING.contains(pFile.getName()) && !ENCRYPTED_FILES.contains(pFile.getName())) { throw e; } 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 c6936cec0b9..1f7331ccc1b 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 @@ -93,7 +93,7 @@ public final void testCreate() throws Exception { String[] invalidNames = {"", "123", "1Name", "Named Range"}; for (String name : invalidNames) { assertThrows(IllegalArgumentException.class, () -> name1.setNameName(name), - "should have thrown exceptiuon due to invalid name: " + name); + "should have thrown exception due to invalid name: " + name); } } } From 267d714df1f5a913561f6ee0be0dc47e8b86f566 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:00 -0400 Subject: [PATCH 111/323] spelling: excluding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hwpf/model/types/FLDAbstractType.java | 2 +- .../java/org/apache/poi/hwpf/model/types/HRESIAbstractType.java | 2 +- .../java/org/apache/poi/hwpf/model/types/TLPAbstractType.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/FLDAbstractType.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/FLDAbstractType.java index 7be124641ae..fac2ed63ea0 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/FLDAbstractType.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/FLDAbstractType.java @@ -76,7 +76,7 @@ public String toString() { } /** - * Size of record (exluding 4 byte header) + * Size of record (excluding 4 byte header) */ public static int getSize() { diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/HRESIAbstractType.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/HRESIAbstractType.java index 82d52013547..ff8705c5d44 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/HRESIAbstractType.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/HRESIAbstractType.java @@ -58,7 +58,7 @@ public void serialize( byte[] data, int offset ) } /** - * Size of record (exluding 4 byte header) + * Size of record (excluding 4 byte header) */ public static int getSize() { diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/TLPAbstractType.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/TLPAbstractType.java index 6d0e4269894..f224f497d8b 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/TLPAbstractType.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/TLPAbstractType.java @@ -73,7 +73,7 @@ public String toString() { } /** - * Size of record (exluding 4 byte header) + * Size of record (excluding 4 byte header) */ public int getSize() { From 114de773c637bed1fc21aaebac5390c147d98d26 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:02 -0400 Subject: [PATCH 112/323] spelling: existing Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- .../org/apache/poi/hwpf/converter/HtmlDocumentFacade.java | 4 ++-- .../main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 73183eae856..62a7e97f130 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -140,7 +140,7 @@ public XSSFWorkbook getWorkbook() { } /** - * Initialize worksheet data when reading in an exisiting file. + * Initialize worksheet data when reading in an existing file. */ @Override protected void onDocumentRead() { diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/HtmlDocumentFacade.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/HtmlDocumentFacade.java index fe75ad14993..aaa130d5073 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/HtmlDocumentFacade.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/HtmlDocumentFacade.java @@ -86,9 +86,9 @@ public void addMeta( final String name, String value ) public void addStyleClass( Element element, String classNamePrefix, String style ) { - String exising = element.getAttribute( "class" ); + String existing = element.getAttribute( "class" ); String addition = getOrCreateCssClass( classNamePrefix, style ); - String newClassValue = AbstractWordUtils.isEmpty( exising ) ? addition : ( exising + " " + addition ); + String newClassValue = AbstractWordUtils.isEmpty( existing ) ? addition : ( existing + " " + addition ); element.setAttribute( "class", newClassValue ); } diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index 028ea9e4498..b3ec3df79e1 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -143,7 +143,7 @@ protected HSSFSheet(HSSFWorkbook workbook) { /** * Creates an HSSFSheet representing the given Sheet object. Should only be - * called by HSSFWorkbook when reading in an exisiting file. + * called by HSSFWorkbook when reading in an existing file. * * @param workbook - The HSSF Workbook object associated with the sheet. * @param sheet - lowlevel Sheet object this sheet will represent From aeecc56d4b9f8fcfe40792085e7e96872561e373 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:04 -0400 Subject: [PATCH 113/323] spelling: expand Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.java b/poi/src/main/java/org/apache/poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.java index 48e68262330..da12535cde6 100644 --- a/poi/src/main/java/org/apache/poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.java +++ b/poi/src/main/java/org/apache/poi/hssf/eventusermodel/MissingRecordAwareHSSFListener.java @@ -122,7 +122,7 @@ public void processRecord(org.apache.poi.hssf.record.Record record) { break; case MulRKRecord.sid: // This is multiple consecutive number cells in one record - // Exand this out into multiple regular number cells + // Expand this out into multiple regular number cells MulRKRecord mrk = (MulRKRecord)record; expandedRecords = RecordFactory.convertRKRecords(mrk); break; From ef78e9048808b4820b31f4e7079db09659bc4763 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:05 -0400 Subject: [PATCH 114/323] spelling: expected Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/hslf/record/TestStyleTextPropAtom.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestStyleTextPropAtom.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestStyleTextPropAtom.java index e155df07b84..1f6f185935a 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestStyleTextPropAtom.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestStyleTextPropAtom.java @@ -763,9 +763,9 @@ void test45815() throws IOException { // changed original data: ... 0x41 and 0x06 don't match // the bitmask text properties will sanitize the bytes and thus the bytes differ - byte[] exptected = data.clone(); - exptected[18] = 0; + byte[] expected = data.clone(); + expected[18] = 0; - doReadWrite(data, exptected, length); + doReadWrite(data, expected, length); } } From 4df460f391bc19f5744ff60705bf0ed896158267 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:06 -0400 Subject: [PATCH 115/323] spelling: external Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/record/ExObjList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExObjList.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExObjList.java index 160f6bd428a..9b7636fd393 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExObjList.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExObjList.java @@ -24,7 +24,7 @@ import org.apache.poi.util.LittleEndian; /** - * This class holds the links to exernal objects referenced from the document. + * This class holds the links to external objects referenced from the document. */ public class ExObjList extends RecordContainer { private byte[] _header; From f1723e71e3d6816e52059ffe60448ad330ab5f93 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:07 -0400 Subject: [PATCH 116/323] spelling: false Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/extractor/ExtractorFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/extractor/ExtractorFactory.java b/poi/src/main/java/org/apache/poi/extractor/ExtractorFactory.java index 5c94c4c8929..b3c6ef05143 100644 --- a/poi/src/main/java/org/apache/poi/extractor/ExtractorFactory.java +++ b/poi/src/main/java/org/apache/poi/extractor/ExtractorFactory.java @@ -95,7 +95,7 @@ private ExtractorFactory() { * (usermodel extractors tend to be more accurate, but use more memory) * Default is false. * - * @return true if event extractors should be preferred in the current thread, fals otherwise. + * @return true if event extractors should be preferred in the current thread, false otherwise. */ public static boolean getThreadPrefersEventExtractors() { return threadPreferEventExtractors.get(); @@ -106,7 +106,7 @@ public static boolean getThreadPrefersEventExtractors() { * (usermodel extractors tend to be more accurate, but use more memory) * Default is to use the thread level setting, which defaults to false. * - * @return true if event extractors should be preferred in all threads, fals otherwise. + * @return true if event extractors should be preferred in all threads, false otherwise. */ public static Boolean getAllThreadsPreferEventExtractors() { return allPreferEventExtractors; From 2fd3d085795d99763da7833699eab5e951dd73f4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:08 -0400 Subject: [PATCH 117/323] spelling: family Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/xwpf/usermodel/XWPFRun.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFRun.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFRun.java index 56e0c6d8f29..7057a450685 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFRun.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFRun.java @@ -768,7 +768,7 @@ public String getFontName() { * If fcr is null, the font char range "ascii" is used * * @param fcr the font char range, defaults to "ansi" - * @return a string representing the font famil + * @return a string representing the font family */ public String getFontFamily(FontCharRange fcr) { CTRPr pr = getRunProperties(false); From f53152061607ca28f779566144012a727219d1de Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:51:48 -0400 Subject: [PATCH 118/323] spelling: filemagic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java index 6d3708c139d..c0aae595335 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java +++ b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java @@ -36,7 +36,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more import org.junit.jupiter.params.provider.CsvSource; /** - * Class to test that HXF correctly detects OOXML + * Class to test that FileMagic correctly detects OOXML * documents */ @SuppressWarnings("deprecation") From b761be5853a144cec6f50017fe5eba2f23eedbbe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:28:06 -0400 Subject: [PATCH 119/323] spelling: filename Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../poi/ss/tests/usermodel/TestEmbedOLEPackage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java b/poi-ooxml/src/test/java/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java index ea7067a1493..968d6d304af 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java +++ b/poi-ooxml/src/test/java/org/apache/poi/ss/tests/usermodel/TestEmbedOLEPackage.java @@ -101,12 +101,12 @@ void embedPDF() throws IOException { assertTrue(digestMatch); final String expLabel = "Apache_POI_project_logo_(2018).pdf"; - final String expFilenName = "C:\\Dell\\Apache_POI_project_logo_(2018).pdf"; + final String expFilename = "C:\\Dell\\Apache_POI_project_logo_(2018).pdf"; final String expCmd1 = "C:\\Users\\KIWIWI~1\\AppData\\Local\\Temp\\{84287F34-B79C-4F3A-9A92-6BB664586F48}\\Apache_POI_project_logo_(2018).pdf"; final String expCmd2 = "C:\\Users\\KIWIWI~1\\AppData\\Local\\Temp\\{84287F34-B79C-4F3A-9A92-6BB664586F48}\\Apache_POI_project_logo_(2).pdf"; assertTrue(ole10s.stream().map(Ole10Native::getLabel).allMatch(expLabel::equals)); - assertTrue(ole10s.stream().map(Ole10Native::getFileName).allMatch(expFilenName::equals)); + assertTrue(ole10s.stream().map(Ole10Native::getFileName).allMatch(expFilename::equals)); assertEquals(expCmd1, ole10s.get(0).getCommand()); assertEquals(expCmd2, ole10s.get(1).getCommand()); @@ -116,9 +116,9 @@ void embedPDF() throws IOException { assertEquals(o.getFileName(), o.getFileName2()); } - Ole10Native scratch = new Ole10Native(expLabel, expFilenName, expCmd1, ole10s.get(0).getDataBuffer()); + Ole10Native scratch = new Ole10Native(expLabel, expFilename, expCmd1, ole10s.get(0).getDataBuffer()); scratch.setLabel2(expLabel); - scratch.setFileName2(expFilenName); + scratch.setFileName2(expFilename); scratch.setCommand2(expCmd1); try (POIFSFileSystem scratchFS = new POIFSFileSystem(); From 582ddac51779ee83c7efab7b2654678c7ecb218e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:09 -0400 Subject: [PATCH 120/323] spelling: filesystem Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/examples/hpsf/CopyCompare.java | 2 +- .../java/org/apache/poi/examples/hpsf/WriteAuthorAndTitle.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/CopyCompare.java b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/CopyCompare.java index 010504140ce..18c999db400 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/CopyCompare.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/CopyCompare.java @@ -165,7 +165,7 @@ public static void handleEvent(final POIFSFileSystem poiFs, final POIFSReaderEve try (InputStream is = su.get()) { final POIFSDocumentPath path = event.getPath(); - // Ensures that the directory hierarchy for a document in a POI fileystem is in place. + // Ensures that the directory hierarchy for a document in a POI filesystem is in place. // Get the root directory. It does not have to be created since it always exists in a POIFS. DirectoryEntry de = poiFs.getRoot(); if (File.separator.equals(path.toString())) { diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/WriteAuthorAndTitle.java b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/WriteAuthorAndTitle.java index 71f4d8aa935..8ac62db1482 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/WriteAuthorAndTitle.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/WriteAuthorAndTitle.java @@ -152,7 +152,7 @@ private static void handleEvent(final POIFSFileSystem poiFs, final POIFSReaderEv try (InputStream is = isSup.get()) { final POIFSDocumentPath path = event.getPath(); - // Ensures that the directory hierarchy for a document in a POI fileystem is in place. + // Ensures that the directory hierarchy for a document in a POI filesystem is in place. // Get the root directory. It does not have to be created since it always exists in a POIFS. DirectoryEntry de = poiFs.getRoot(); From d4ea759f53b615ffb3828376af7cde7fe7b1244f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:11 -0400 Subject: [PATCH 121/323] spelling: filesystems Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/test/java/org/apache/poi/hpsf/basic/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/Util.java b/poi/src/test/java/org/apache/poi/hpsf/basic/Util.java index 881b43ec4b8..e14e5abb234 100644 --- a/poi/src/test/java/org/apache/poi/hpsf/basic/Util.java +++ b/poi/src/test/java/org/apache/poi/hpsf/basic/Util.java @@ -46,7 +46,7 @@ private Util() { *

    Reads a set of files from a POI filesystem and returns them * as an array of {@link POIFile} instances. This method loads all * files into memory and thus does not cope well with large POI - * filessystems.

    + * filesystems.

    * * @param poiFs The name of the POI filesystem as seen by the * operating system. (This is the "filename".) From dbe0f104751717ec7390cc9edc2a4f6867f3e156 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 13:54:40 -0400 Subject: [PATCH 122/323] spelling: fine Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a194009c56e..09a030f7837 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 @@ -1314,7 +1314,7 @@ public PackageRelationshipCollection getRelationshipsByType( } /** - * Retrieves all relationships with specified id (normally just ine because + * Retrieves all relationships with specified id (normally just fine because * a relationship id is supposed to be unique). * * @param id From d68e289cceb1219d6dd0f68fed495367ca718830 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:12 -0400 Subject: [PATCH 123/323] spelling: following Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/hssf/record/RecordFactoryInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java b/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java index 46077788b44..16171463647 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java @@ -358,7 +358,7 @@ private Record readNextRecord() { // outputs a file like this all the same return record; } - throw new RecordFormatException("Unhandled Continue Record followining " + _lastRecord.getClass()); + throw new RecordFormatException("Unhandled Continue Record following " + _lastRecord.getClass()); } _lastRecord = record; if (record instanceof DrawingRecord) { From cf78afae4b7cd9cef9cb84e3758de9bd9cd76f9f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:16:36 -0400 Subject: [PATCH 124/323] spelling: font Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 62a7e97f130..48e7e5de069 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -2560,7 +2560,7 @@ public void setColumnHidden(int columnIndex, boolean hidden) { * using the default font (first font in the workbook). *
    * Unless you are using a very special font, the default character is '0' (zero), - * this is true for Arial (default font font in HSSF) and Calibri (default font in XSSF) + * this is true for Arial (default font in HSSF) and Calibri (default font in XSSF) *

    * *

    diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index b3ec3df79e1..0d5cfa8afc2 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -512,7 +512,7 @@ public boolean isColumnHidden(int columnIndex) { * using the default font (first font in the workbook).

    * * Unless you are using a very special font, the default character is '0' (zero), - * this is true for Arial (default font font in HSSF) and Calibri (default font in XSSF)

    + * this is true for Arial (default font in HSSF) and Calibri (default font in XSSF)

    * * Please note, that the width set by this method includes 4 pixels of margin padding (two on each side), * plus 1 pixel padding for the gridlines (Section 3.3.1.12 of the OOXML spec). diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java b/poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java index f3141a81629..68d2c219623 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java @@ -160,7 +160,7 @@ public interface Sheet extends Iterable { * using the default font (first font in the workbook).

    * * Unless you are using a very special font, the default character is '0' (zero), - * this is true for Arial (default font font in HSSF) and Calibri (default font in XSSF)

    + * this is true for Arial (default font in HSSF) and Calibri (default font in XSSF)

    * * Please note, that the width set by this method includes 4 pixels of margin padding (two on each side), * plus 1 pixel padding for the gridlines (Section 3.3.1.12 of the OOXML spec). From d0dd19a1a7d9e5e59df5bbd91a8321629092d2f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:42:37 -0400 Subject: [PATCH 125/323] spelling: for Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ddf/EscherRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java index 57090b5bf36..474c8d49d73 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java @@ -131,7 +131,7 @@ public short getOptions() } /** - * Set the options this this record. Container records should have the + * Set the options for this record. Container records should have the * last nibble set to 0xF.

    * * Note that {@code options} is an internal field. From bb215ae58c2e7b45de93d1a2395a414b85923542 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:14 -0400 Subject: [PATCH 126/323] spelling: foreground Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/hssf/record/ExtendedFormatRecord.java | 2 +- .../java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java | 2 +- .../main/java/org/apache/poi/sl/draw/DrawTextFragment.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java index 7ec61b190f3..0a26c51d03b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java @@ -1274,7 +1274,7 @@ public boolean isIndentNotParentBorder() /** * get whether or not to use the pattern in this XF instead of the parent XF. - * (foregrount/background) + * (foreground/background) * * @return pattern- true if this XF has a different pattern value than its parent, * false otherwise. diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index 626f2d620b6..a28bae46dd4 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -608,7 +608,7 @@ private void checkDefaultBackgroundFills() { setFillBackgroundColor((short)(autoIdx+1)); } } else if (_format.getFillBackground() == autoIdx+1) { - //Now if the forground changes to a non-AUTOMATIC color the background resets itself!!! + //Now if the foreground changes to a non-AUTOMATIC color the background resets itself!!! if (_format.getFillForeground() != autoIdx) { setFillBackgroundColor(autoIdx); } diff --git a/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java b/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java index e0e3bfe7d5c..73839e040d8 100644 --- a/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java +++ b/poi/src/main/java/org/apache/poi/sl/draw/DrawTextFragment.java @@ -55,14 +55,14 @@ public void draw(Graphics2D graphics){ try { graphics.drawString(str.getIterator(), (float) x, (float) yBaseline); } catch (ClassCastException e) { - // workaround: batik issue, which expects only Color as forground color - replaceForgroundPaintWithBlack(str); + // workaround: batik issue, which expects only Color as foreground color + replaceForegroundPaintWithBlack(str); graphics.drawString(str.getIterator(), (float) x, (float) yBaseline); } } } - private void replaceForgroundPaintWithBlack(AttributedString as) { + private void replaceForegroundPaintWithBlack(AttributedString as) { AttributedCharacterIterator iter = as.getIterator(new TextAttribute[]{TextAttribute.FOREGROUND}); for (char ch = iter.first(); ch != CharacterIterator.DONE; From 14702d3fc2f0d159753768abf4fbc560737980c5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:29:52 -0400 Subject: [PATCH 127/323] spelling: form fields Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwpf/model/PicturesTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PicturesTable.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PicturesTable.java index 45e726e5649..0995f89111d 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PicturesTable.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/PicturesTable.java @@ -45,7 +45,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

    * Word stores images as is within so called "Data stream" - the stream within a Word docfile containing various data * that hang off of characters in the main stream. For example, binary data describing in-line pictures and/or - * formfields an also embedded objects-native data. Word picture structures are concatenated one after the other in + * form fields an also embedded objects-native data. Word picture structures are concatenated one after the other in * the data stream if the document contains pictures. * Data stream is easily reachable via HWPFDocument._dataStream property. * A picture is represented in the document text stream as a special character, an Unicode \u0001 whose From 2fc509dfb732319d16525e73d8e916ea73d810fb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:29:18 -0400 Subject: [PATCH 128/323] spelling: formatter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/xssf/usermodel/TestXSSFCell.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java index ec06fa81f29..d8db1e5c83e 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFCell.java @@ -320,7 +320,7 @@ void testMissingRAttributeBug54288() throws IOException { // Test idea: iterate over cells in the reference worksheet, they all have the R attribute set. // For each cell from the reference sheet find the corresponding cell in the problematic file (with missing R) // and assert that POI reads them equally: - DataFormatter formater = new DataFormatter(); + DataFormatter formatter = new DataFormatter(); for(Row r : sheetRef){ XSSFRow rowRef = (XSSFRow)r; XSSFRow row = sheet.getRow(rowRef.getRowNum()); @@ -338,8 +338,8 @@ void testMissingRAttributeBug54288() throws IOException { if(!cell.getCTCell().isSetR()){ assertTrue(cellRef.getCTCell().isSetR(), "R must e set in cellRef"); - String valRef = formater.formatCellValue(cellRef); - String val = formater.formatCellValue(cell); + String valRef = formatter.formatCellValue(cellRef); + String val = formatter.formatCellValue(cell); assertEquals(valRef, val); } From 6d5d8eb4f9198b7dbeec91ccec932c23a4e4d858 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:29:30 -0400 Subject: [PATCH 129/323] spelling: formatting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hssf/record/CFHeader12Record.java | 2 +- .../java/org/apache/poi/hssf/record/CFRule12Record.java | 2 +- .../main/java/org/apache/poi/hssf/record/CFRuleBase.java | 2 +- .../main/java/org/apache/poi/hssf/record/CFRuleRecord.java | 2 +- .../java/org/apache/poi/ss/usermodel/CreationHelper.java | 2 +- .../apache/poi/hssf/usermodel/TestHSSFDataFormatter.java | 2 +- .../poi/ss/usermodel/BaseTestConditionalFormatting.java | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/CFHeader12Record.java b/poi/src/main/java/org/apache/poi/hssf/record/CFHeader12Record.java index 217ed37157d..f6045df894b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/CFHeader12Record.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/CFHeader12Record.java @@ -28,7 +28,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * Conditional Formatting Header v12 record CFHEADER12 (0x0879), - * for conditional formattings introduced in Excel 2007 and newer. + * for conditional formatting introduced in Excel 2007 and newer. */ public final class CFHeader12Record extends CFHeaderBase implements FutureRecord { public static final short sid = 0x0879; diff --git a/poi/src/main/java/org/apache/poi/hssf/record/CFRule12Record.java b/poi/src/main/java/org/apache/poi/hssf/record/CFRule12Record.java index 4381c52a184..7a0d0c05145 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/CFRule12Record.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/CFRule12Record.java @@ -47,7 +47,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * Conditional Formatting v12 Rule Record (0x087A). * - *

    This is for newer-style Excel conditional formattings, + *

    This is for newer-style Excel conditional formatting, * from Excel 2007 onwards. * *

    {@link CFRuleRecord} is used where the condition type is diff --git a/poi/src/main/java/org/apache/poi/hssf/record/CFRuleBase.java b/poi/src/main/java/org/apache/poi/hssf/record/CFRuleBase.java index 54cfc4de51b..4c9b0384caa 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/CFRuleBase.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/CFRuleBase.java @@ -39,7 +39,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more * Conditional Formatting Rules. This can hold old-style rules * * - *

    This is for the older-style Excel conditional formattings, + *

    This is for the older-style Excel conditional formatting, * new-style (Excel 2007+) also make use of {@link CFRule12Record} * for their rules.

    */ diff --git a/poi/src/main/java/org/apache/poi/hssf/record/CFRuleRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/CFRuleRecord.java index c685da52fa6..42e6c42dc3d 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/CFRuleRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/CFRuleRecord.java @@ -25,7 +25,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more /** * Conditional Formatting Rule Record (0x01B1). * - *

    This is for the older-style Excel conditional formattings, + *

    This is for the older-style Excel conditional formatting, * new-style (Excel 2007+) also make use of {@link CFRule12Record} * for their rules.

    */ diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/CreationHelper.java b/poi/src/main/java/org/apache/poi/ss/usermodel/CreationHelper.java index 004025db103..38bb0b0bbdb 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/CreationHelper.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/CreationHelper.java @@ -57,7 +57,7 @@ public interface CreationHelper { /** * Creates a XSSF-style Color object, used for extended sheet - * formattings and conditional formattings + * formatting and conditional formatting */ ExtendedColor createExtendedColor(); 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 576fa6e2798..aa2915af51e 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 @@ -394,7 +394,7 @@ void testGeneralAtFormat() { } /** - * Tests various formattings of dates and numbers + * Tests various formatting of dates and numbers */ @Test void testFromFile() { diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java index 6c86fc08a10..3e8e1fa9fcb 100644 --- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java +++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestConditionalFormatting.java @@ -537,7 +537,7 @@ protected void testReadOffice2007(String filename) throws IOException { SheetConditionalFormatting sheetCF = s.getSheetConditionalFormatting(); int numCF = 3; int numCF12 = 15; - int numCFEX = 0; // TODO This should be 2, but we don't support CFEX formattings yet, see #58149 + int numCFEX = 0; // TODO This should be 2, but we don't support CFEX formatting yet, see #58149 assertEquals(numCF + numCF12 + numCFEX, sheetCF.getNumConditionalFormattings()); int fCF = 0, fCF12 = 0, fCFEX = 0; @@ -705,7 +705,7 @@ protected void testReadOffice2007(String filename) throws IOException { // Icons : 3 stars (ext) - Column Q - // TODO Support EXT formattings + // TODO Support EXT formatting // Icons : 4 ratings - Column R @@ -744,7 +744,7 @@ protected void testReadOffice2007(String filename) throws IOException { // Mixed icons - Column U - // TODO Support EXT formattings + // TODO Support EXT formatting } } From cfb67ab6cec71a229e446d1a384f5fe873878ea3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:15 -0400 Subject: [PATCH 130/323] spelling: formula Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ss/formula/SharedFormula.java | 2 +- .../org/apache/poi/hssf/record/chart/TestLinkedDataRecord.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/SharedFormula.java b/poi/src/main/java/org/apache/poi/ss/formula/SharedFormula.java index aca085565eb..65aef2b6b45 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/SharedFormula.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/SharedFormula.java @@ -20,7 +20,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more import org.apache.poi.ss.SpreadsheetVersion; /** - * Encapsulates logic to convert shared formulaa into non shared equivalent + * Encapsulates logic to convert shared formula into non shared equivalent */ public class SharedFormula { diff --git a/poi/src/test/java/org/apache/poi/hssf/record/chart/TestLinkedDataRecord.java b/poi/src/test/java/org/apache/poi/hssf/record/chart/TestLinkedDataRecord.java index d2a1b791d19..743e5eeca2f 100644 --- a/poi/src/test/java/org/apache/poi/hssf/record/chart/TestLinkedDataRecord.java +++ b/poi/src/test/java/org/apache/poi/hssf/record/chart/TestLinkedDataRecord.java @@ -39,7 +39,7 @@ final class TestLinkedDataRecord { The first record links to the series title (linkType = 0). It's reference type is 1 which means that it links directly to data entered - into the forumula bar. There seems to be no reference to any data + into the formula bar. There seems to be no reference to any data however. The formulaOfLink field contains two 0 bytes. This probably means that there is no particular heading set. From a947d255bfc764a22763c3e9ea7e0c30ce55fd21 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:17 -0400 Subject: [PATCH 131/323] spelling: formulae Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/examples/ss/ToCSV.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index 156e1454f07..ff3e3c2ed96 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -374,7 +374,7 @@ private void openWorkbook(File file) throws FileNotFoundException, IOException { // Open the workbook and then create the FormulaEvaluator and // DataFormatter instances that will be needed to, respectively, - // force evaluation of forumlae found in cells and create a + // force evaluation of formulae found in cells and create a // formatted String encapsulating the cells contents. this.workbook = WorkbookFactory.create(fis); this.evaluator = this.workbook.getCreationHelper().createFormulaEvaluator(); From 41cd5927f3ef88b9bb74bd48b369f916f4a7cc0a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:19 -0400 Subject: [PATCH 132/323] spelling: formulas Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- .../test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 2 +- poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 48e7e5de069..199fcdc4a5a 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -2082,7 +2082,7 @@ public void removeRowBreak(int row) { *

    * It is recommended to force recalcuation of formulas on workbook level using * {@link Workbook#setForceFormulaRecalculation(boolean)} - * to ensure that all cross-worksheet formuals and external dependencies are updated. + * to ensure that all cross-worksheet formulas and external dependencies are updated. *

    * @param value true if the application will perform a full recalculation of * this worksheet values when the workbook is opened diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 30d4bc35b47..abaf8e41673 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -1377,7 +1377,7 @@ void bug48703() throws IOException { } /** - * Bugzilla 51710: problems reading shared formuals from .xlsx + * Bugzilla 51710: problems reading shared formulas from .xlsx */ @Test void bug51710() throws IOException { diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index 0d5cfa8afc2..10357822531 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -822,7 +822,7 @@ private void checkForIntersectingMergedRegions() { * * It is recommended to force recalcuation of formulas on workbook level using * {@link Workbook#setForceFormulaRecalculation(boolean)} - * to ensure that all cross-worksheet formuals and external dependencies are updated. + * to ensure that all cross-worksheet formulas and external dependencies are updated. * * @param value true if the application will perform a full recalculation of * this worksheet values when the workbook is opened From 34f9ec24b2beda7fcf6243825983f29d78cc39f6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:31:05 -0400 Subject: [PATCH 133/323] spelling: fractional Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ss/util/NormalisedDecimal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/util/NormalisedDecimal.java b/poi/src/main/java/org/apache/poi/ss/util/NormalisedDecimal.java index 2c80e25f1cf..cea99e503ae 100644 --- a/poi/src/main/java/org/apache/poi/ss/util/NormalisedDecimal.java +++ b/poi/src/main/java/org/apache/poi/ss/util/NormalisedDecimal.java @@ -189,7 +189,7 @@ public String getSignificantDecimalDigits() { return Long.toString(_wholePart); } /** - * Rounds the first whole digit position (considers only units digit, not frational part). + * Rounds the first whole digit position (considers only units digit, not fractional part). * Caller should check total digit count of result to see whether the rounding operation caused * a carry out of the most significant digit */ From c7e9dcf469746d9220a5a9b93a05c3e1b669c1cc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:52:22 -0400 Subject: [PATCH 134/323] spelling: function Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/ss/formula/functions/FinanceLib.java | 2 +- .../main/java/org/apache/poi/ss/usermodel/FormulaError.java | 2 +- .../formula/function/ExcelFileFormatDocFunctionExtractor.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java index c5920cd0398..915fb9af23a 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java @@ -18,7 +18,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more package org.apache.poi.ss.formula.functions; /** - * This class is a functon library for common fiscal functions. + * This class is a function library for common fiscal functions. * Glossary of terms/abbreviations: *
    * diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRow.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRow.java index bceb6cddfa3..5144729fa3b 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRow.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRow.java @@ -144,11 +144,11 @@ public Spliterator spliterator() { * equal to the row number of the argument {@code XSSFRow} * *
  • - * a value less than {@code 0} if the row number of this this {@code XSSFRow} is + * a value less than {@code 0} if the row number of this {@code XSSFRow} is * numerically less than the row number of the argument {@code XSSFRow} *
  • *
  • - * a value greater than {@code 0} if the row number of this this {@code XSSFRow} is + * a value greater than {@code 0} if the row number of this {@code XSSFRow} is * numerically greater than the row number of the argument {@code XSSFRow} *
  • * diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRow.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRow.java index a64840eed2d..c0b7188409d 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRow.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRow.java @@ -688,11 +688,11 @@ private void findNext() { * equal to the row number of the argument HSSFRow * *
  • - * a value less than 0 if the row number of this this HSSFRow is + * a value less than 0 if the row number of this HSSFRow is * numerically less than the row number of the argument HSSFRow *
  • *
  • - * a value greater than 0 if the row number of this this HSSFRow is + * a value greater than 0 if the row number of this HSSFRow is * numerically greater than the row number of the argument HSSFRow *
  • * From 19f58961ae3bea1f07e81249d2861a18e9513e23 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:33:41 -0400 Subject: [PATCH 294/323] spelling: to Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java index a3e133f7f01..49b05db4394 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java +++ b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java @@ -138,7 +138,7 @@ void testCreateURIFromString() throws Exception { @Test void test53734() throws Exception { URI uri = PackagingURIHelper.toURI("javascript://"); - // POI appends a trailing slash tpo avoid "Expected authority at index 13: javascript://" + // POI appends a trailing slash to avoid "Expected authority at index 13: javascript://" // https://issues.apache.org/bugzilla/show_bug.cgi?id=53734 assertEquals("javascript:///", uri.toASCIIString()); } From 957f5ad6a50b7827ff92ae0a2b1f6c86ec8659e6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:25:36 -0400 Subject: [PATCH 295/323] spelling: todo Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xslf/draw/SVGImageRenderer.java | 2 +- .../java/org/apache/poi/hemf/record/emfplus/HemfPlusDraw.java | 2 +- .../org/apache/poi/hslf/usermodel/HSLFSlideShowEncrypted.java | 4 ++-- .../java/org/apache/poi/hslf/usermodel/HSLFTextShape.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGImageRenderer.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGImageRenderer.java index 2bd46c4876a..6e1df454b3e 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGImageRenderer.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/draw/SVGImageRenderer.java @@ -50,7 +50,7 @@ public class SVGImageRenderer implements ImageRenderer { public SVGImageRenderer() { String parser = XMLResourceDescriptor.getXMLParserClassName(); - // TOOO: tell the batik guys to use secure parsing feature + // TODO: tell the batik guys to use secure parsing feature svgFact = new SAXSVGDocumentFactory(parser); SVGUserAgent agent = new SVGUserAgent(); diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusDraw.java b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusDraw.java index 9bcc88382eb..e5461af2916 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusDraw.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusDraw.java @@ -703,7 +703,7 @@ public long init(LittleEndianInputStream leis, long dataSize, long recordId, int int size = 4 * LittleEndianConsts.INT_SIZE; - // TOOD: implement Non-Cmap-Lookup correctly + // TODO: implement Non-Cmap-Lookup correctly // If the CMAP_LOOKUP flag in the optionsFlags field is set, each value in this array specifies a // Unicode character. Otherwise, each value specifies an index to a character glyph in the EmfPlusFont diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowEncrypted.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowEncrypted.java index 8c7effc7f3d..f98c05fec17 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowEncrypted.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowEncrypted.java @@ -230,7 +230,7 @@ protected void decryptPicture(byte[] pictstream, int offset) { int endOffset = offset + rlen; if (recType == 0xF007) { - // TOOD: get a real example file ... to actual test the FBSE entry + // TODO: get a real example file ... to actual test the FBSE entry // not sure where the foDelay block is // File BLIP Store Entry (FBSE) @@ -308,7 +308,7 @@ protected void encryptPicture(byte[] pictstream, int offset) { int endOffset = offset + rlen; if (recType == 0xF007) { - // TOOD: get a real example file ... to actual test the FBSE entry + // TODO: get a real example file ... to actual test the FBSE entry // not sure where the foDelay block is // File BLIP Store Entry (FBSE) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java index 8d1af483383..58f2d1946a6 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextShape.java @@ -860,7 +860,7 @@ public List getHyperlinks() { @Override public void setTextPlaceholder(TextPlaceholder placeholder) { - // TOOD: check for correct placeholder handling - see org.apache.poi.hslf.model.Placeholder + // TODO: check for correct placeholder handling - see org.apache.poi.hslf.model.Placeholder Placeholder ph = null; int runType; switch (placeholder) { From b8b9a06db3efb936ad8bff0abfda67481e2edb68 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:02:25 -0400 Subject: [PATCH 296/323] spelling: transmittable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hsmf/datatypes/MAPIProperty.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MAPIProperty.java b/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MAPIProperty.java index b09e39cc7aa..fd46dad786e 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MAPIProperty.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MAPIProperty.java @@ -996,8 +996,8 @@ public class MAPIProperty { new MAPIProperty(0x3a17, ASCII_STRING, "Title", "PR_TITLE"); public static final MAPIProperty TNEF_CORRELATION_KEY = new MAPIProperty(0x7f, BINARY, "TnefCorrelationKey", "PR_TNEF_CORRELATION_KEY"); - public static final MAPIProperty TRANSMITABLE_DISPLAY_NAME = - new MAPIProperty(0x3a20, ASCII_STRING, "TransmitableDisplayName", "PR_TRANSMITABLE_DISPLAY_NAME"); + public static final MAPIProperty TRANSMITTABLE_DISPLAY_NAME = + new MAPIProperty(0x3a20, ASCII_STRING, "TransmittableDisplayName", "PR_TRANSMITTABLE_DISPLAY_NAME"); public static final MAPIProperty TRANSPORT_KEY = new MAPIProperty(0xe16, LONG, "TransportKey", "PR_TRANSPORT_KEY"); public static final MAPIProperty TRANSPORT_MESSAGE_HEADERS = From 75f26585ef9faea21e0585569e6deb988d4a8cbe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:47 -0400 Subject: [PATCH 297/323] spelling: umlaut Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hpsf/basic/TestMetaDataIPI.java | 6 +++--- .../org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/TestMetaDataIPI.java b/poi/src/test/java/org/apache/poi/hpsf/basic/TestMetaDataIPI.java index 0f7d88939d0..78424688bac 100644 --- a/poi/src/test/java/org/apache/poi/hpsf/basic/TestMetaDataIPI.java +++ b/poi/src/test/java/org/apache/poi/hpsf/basic/TestMetaDataIPI.java @@ -234,7 +234,7 @@ void testTwo() throws Exception { /** - * Tests with strange characters in keys and data (Umlaute etc.) + * Tests with strange characters in keys and data (Umlaut etc.) */ @Test void testThree() throws Exception { @@ -581,7 +581,7 @@ private static String strangizeU(String s) { private static StringBuilder strangizeInit(String s) { StringBuilder sb = new StringBuilder(); - String[] umlaute = { "\u00e4", "\u00fc", "\u00f6", "\u00dc", "$", "\u00d6", "\u00dc", + String[] umlaut = { "\u00e4", "\u00fc", "\u00f6", "\u00dc", "$", "\u00d6", "\u00dc", "\u00c9", "\u00d6", "@", "\u00e7", "&" }; for (int i = 0; i < 5; i++) { sb.append(s); @@ -595,7 +595,7 @@ private static StringBuilder strangizeInit(String s) { sb.append('='); // TODO - no Random - tests should be completely deterministic - sb.append(umlaute[RandomSingleton.getInstance().nextInt(umlaute.length)]); + sb.append(umlaut[RandomSingleton.getInstance().nextInt(umlaut.length)]); sb.append('<'); } return sb; diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java index 18b5b8208ae..d055c3cb171 100644 --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java @@ -29,11 +29,11 @@ final class TestUnicodeWorkbook { /** * Tests Bug38230 - * That an Umlat is written and then read back. + * That an Umlaut is written and then read back. * It should have been written as a compressed unicode. */ @Test - void testUmlatReadWrite() throws IOException { + void testUmlautReadWrite() throws IOException { try (HSSFWorkbook wb1 = new HSSFWorkbook()) { //Create a unicode sheet name (euro symbol) From ab3fbeb6c8f5e01a70d75d14554659ec10d74c61 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:48 -0400 Subject: [PATCH 298/323] spelling: underlying Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/examples/ss/ToCSV.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index e240db739c6..e7d6d9c60f7 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -426,7 +426,7 @@ private void convertToCSV() { * @param file An instance of the File class that encapsulates a handle * referring to the CSV file. * @throws java.io.IOException Thrown to indicate and error occurred in the - * underylying file system. + * underlying file system. */ private void saveCSVFile(File file) throws IOException { ArrayList line; From ad7e898b00788331c2302dcfb4feed34bf363f3c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:49 -0400 Subject: [PATCH 299/323] spelling: unevaluable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../ss/formula/CheckFunctionsSupported.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/CheckFunctionsSupported.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/CheckFunctionsSupported.java index 4135c80904f..e58a4730eb2 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/CheckFunctionsSupported.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/formula/CheckFunctionsSupported.java @@ -86,12 +86,12 @@ public static void main(String[] args) throws Exception { System.out.println(); System.out.println("Sheet = " + sheetName); - if (probs.unevaluatableCells.isEmpty()) { + if (probs.unevaluableCells.isEmpty()) { System.out.println(" All cells evaluated without error"); } else { - for (CellReference cr : probs.unevaluatableCells.keySet()) { + for (CellReference cr : probs.unevaluableCells.keySet()) { System.out.println(" " + cr.formatAsString() + " - " + - probs.unevaluatableCells.get(cr)); + probs.unevaluableCells.get(cr)); } } } @@ -123,7 +123,7 @@ public FormulaEvaluationProblems getEvaluationProblems(int sheetIndex) { } public FormulaEvaluationProblems getEvaluationProblems(Sheet sheet) { Set unsupportedFunctions = new HashSet<>(); - Map unevaluatableCells = new HashMap<>(); + Map unevaluableCells = new HashMap<>(); for (Row r : sheet) { for (Cell c : r) { @@ -139,24 +139,24 @@ public FormulaEvaluationProblems getEvaluationProblems(Sheet sheet) { NotImplementedFunctionException nie = (NotImplementedFunctionException)e; unsupportedFunctions.add(nie.getFunctionName()); } - unevaluatableCells.put(new CellReference(c), e); + unevaluableCells.put(new CellReference(c), e); } } } - return new FormulaEvaluationProblems(unsupportedFunctions, unevaluatableCells); + return new FormulaEvaluationProblems(unsupportedFunctions, unevaluableCells); } public static class FormulaEvaluationProblems { /** Which used functions are unsupported by POI at this time */ private final Set unsupportedFunctions; - /** Which cells had unevaluatable formulas, and why? */ - private final Map unevaluatableCells; + /** Which cells had unevaluable formulas, and why? */ + private final Map unevaluableCells; protected FormulaEvaluationProblems(Set unsupportedFunctions, - Map unevaluatableCells) { + Map unevaluableCells) { this.unsupportedFunctions = Collections.unmodifiableSet(unsupportedFunctions); - this.unevaluatableCells = Collections.unmodifiableMap(unevaluatableCells); + this.unevaluableCells = Collections.unmodifiableMap(unevaluableCells); } } } From 77b354a46cce403c1ee553013faff0794eef6e1d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:50 -0400 Subject: [PATCH 300/323] spelling: unnecessary Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java index 504c51873f9..357350a4f97 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java @@ -1060,7 +1060,7 @@ public int addEmbed(POIFSFileSystem poiData) { } ExEmbed exEmbed = new ExEmbed(); - // remove unneccessary infos, so we don't need to specify the type + // remove unnecessary infos, so we don't need to specify the type // of the ole object multiple times Record[] children = exEmbed.getChildRecords(); exEmbed.removeChild(children[2]); From a572e5d28501f2e86bde6034e68e8dad609193a4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:38:41 -0400 Subject: [PATCH 301/323] spelling: unparsable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java index d0d0514a80d..127ed40f592 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java +++ b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java @@ -946,7 +946,7 @@ void testBug56479() throws Exception { } @Test - void unparseableCentralDirectory() throws IOException { + void unparsableCentralDirectory() throws IOException { File f = getSampleFile("at.pzp.www_uploads_media_PP_Scheinecker-jdk6error.pptx"); try (SlideShow ppt = SlideShowFactory.create(f, null, true)) { assertNotNull(ppt); From c9d0f73236259f226bf14c0e012aec859dc02df2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:51 -0400 Subject: [PATCH 302/323] spelling: unset Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/xssf/usermodel/XSSFEvenFooter.java | 2 +- .../main/java/org/apache/poi/xssf/usermodel/XSSFEvenHeader.java | 2 +- .../java/org/apache/poi/xssf/usermodel/XSSFFirstFooter.java | 2 +- .../java/org/apache/poi/xssf/usermodel/XSSFFirstHeader.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenFooter.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenFooter.java index 118fa793aa6..ace7fd018ae 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenFooter.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenFooter.java @@ -33,7 +33,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

    * Creating an even header or footer sets this property by default, so all you need to do to * get an even header or footer to display is to create one. Likewise, if both the even header - * and footer are usnset, then this property is unset, and the odd header and footer are used + * and footer are unset, then this property is unset, and the odd header and footer are used * for even pages. *

    */ diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenHeader.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenHeader.java index 45600cfc9d2..87edf9136eb 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenHeader.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFEvenHeader.java @@ -33,7 +33,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

    * Creating an even header or footer sets this property by default, so all you need to do to * get an even header or footer to display is to create it. Likewise, if both the even header - * and footer are usnset, then this property is unset, and the odd header and footer are used + * and footer are unset, then this property is unset, and the odd header and footer are used * for even pages. *

    */ diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstFooter.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstFooter.java index 6902066b6fc..8ef41646c62 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstFooter.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstFooter.java @@ -32,7 +32,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

    * Creating a first page header or footer sets this property by default, so all you need to do to * get an first page header or footer to display is to create one. Likewise, if both the first page - * header and footer are usnset, then this property is unset, and the first page header and footer + * header and footer are unset, then this property is unset, and the first page header and footer * are ignored. *

    */ diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstHeader.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstHeader.java index a28a113523c..0f964fa92ce 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstHeader.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFirstHeader.java @@ -31,7 +31,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

    * Creating a first page header or footer sets this property by default, so all you need to do to * get an first page header or footer to display is to create one. Likewise, if both the first page - * header and footer are usnset, then this property is unset, and the first page header and footer + * header and footer are unset, then this property is unset, and the first page header and footer * are ignored. */ public class XSSFFirstHeader extends XSSFHeaderFooter implements Header{ From f78510a30ed7893dc6b650f879c36b7518ba35f5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 14:17:46 -0400 Subject: [PATCH 303/323] spelling: us Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/hssf/record/WSBoolRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/WSBoolRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/WSBoolRecord.java index 0bdee8b9943..5931fb5975c 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/WSBoolRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/WSBoolRecord.java @@ -81,7 +81,7 @@ public WSBoolRecord(RecordInputStream in) { // why? Why ask why? But don't drink bud dry as its a really // crappy beer, try the czech "Budvar" beer (which is the real - // budweiser though its ironically good...its sold in the USs + // budweiser though its ironically good...its sold in the US // as czechvar --- odd that they had the name first but can't // use it)... From d691bf029f801cd5ff37fca4f16b9b443be8087b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:39:15 -0400 Subject: [PATCH 304/323] spelling: usage Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- poi/src/main/java/org/apache/poi/ddf/EscherBSERecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ddf/EscherBSERecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherBSERecord.java index 4e372091157..a6e1b349980 100644 --- a/poi/src/main/java/org/apache/poi/ddf/EscherBSERecord.java +++ b/poi/src/main/java/org/apache/poi/ddf/EscherBSERecord.java @@ -335,7 +335,7 @@ public byte getUsage() { /** * Defines the way this blip is used. * - * @param usage the blip usae + * @param usage the blip usage */ public void setUsage(byte usage) { field_8_usage = usage; From 8d4417de43b17ca72f52cc2950676580843e787c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:43:11 -0400 Subject: [PATCH 305/323] spelling: value Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/ss/formula/IStabilityClassifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/IStabilityClassifier.java b/poi/src/main/java/org/apache/poi/ss/formula/IStabilityClassifier.java index 78696a4c98c..1efa9c153cf 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/IStabilityClassifier.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/IStabilityClassifier.java @@ -33,7 +33,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more *

  • a formula cell can be marked as 'final' if its formula will not be changed after the first * call to {@link WorkbookEvaluator#evaluate(EvaluationCell)}. This remains true even if changes * in dependent values may cause the evaluated value to change.
  • - *
  • plain value cells should be marked as 'not final' if their plain value value may change. + *
  • plain value cells should be marked as 'not final' if their plain value may change. *
  • *
  • formula cells should be marked as 'not final' if their formula definition may change.
  • *
  • cells which may switch between plain value and formula should also be marked as 'not final'. From 7cba88ba67cf2087e41e1853b44ca94fddfa2332 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:52 -0400 Subject: [PATCH 306/323] spelling: verifier Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../org/apache/poi/poifs/crypt/agile/AgileDecryptor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java b/poi/src/main/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java index a6881bc5bc5..47473fe7d96 100644 --- a/poi/src/main/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java +++ b/poi/src/main/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java @@ -99,10 +99,10 @@ public boolean verifyPassword(String password) throws GeneralSecurityException { * blockSize bytes. * 4. Use base64 to encode the result of step 3. */ - byte[] verfierInputEnc = hashInput(ver, pwHash, kVerifierInputBlock, ver.getEncryptedVerifier(), Cipher.DECRYPT_MODE); - setVerifier(verfierInputEnc); + byte[] verifierInputEnc = hashInput(ver, pwHash, kVerifierInputBlock, ver.getEncryptedVerifier(), Cipher.DECRYPT_MODE); + setVerifier(verifierInputEnc); MessageDigest hashMD = getMessageDigest(ver.getHashAlgorithm()); - byte[] verifierHash = hashMD.digest(verfierInputEnc); + byte[] verifierHash = hashMD.digest(verifierInputEnc); /* * encryptedVerifierHashValue: This attribute MUST be generated by using the following steps: From 4dd8abc0766f59a339b79a801fb7445b0d515a8f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:13:42 -0400 Subject: [PATCH 307/323] spelling: verify Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hslf/model/TestSlideMaster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java index 67bb54e84d6..179e6a049b9 100644 --- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java +++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/model/TestSlideMaster.java @@ -252,7 +252,7 @@ void testChangeSlideMaster() throws IOException { } /** - * Varify we can read attributes for different indentation levels. + * Verify we can read attributes for different indentation levels. * (typical for the "bulleted body" placeholder) */ @Test From 7765b251ead92848456baa3edb8304891cfb7060 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:53 -0400 Subject: [PATCH 308/323] spelling: version Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hpsf/DocumentSummaryInformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hpsf/DocumentSummaryInformation.java b/poi/src/main/java/org/apache/poi/hpsf/DocumentSummaryInformation.java index f96e12ac75e..b39c2c5a63e 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/DocumentSummaryInformation.java +++ b/poi/src/main/java/org/apache/poi/hpsf/DocumentSummaryInformation.java @@ -727,7 +727,7 @@ public void removeLanguage() { * Gets the document version as a string, which is normally unset and empty * (or {@code null}). * - * @return the document verion + * @return the document version */ public String getDocumentVersion() { return getPropertyStringValue(PropertyIDMap.PID_DOCVERSION); From c3a8dcd2b1646db80659d9b8fd9e054426f489c9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:54 -0400 Subject: [PATCH 309/323] spelling: vertical Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/record/TextObjectRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java index 63c7ac104b1..b3faef3775b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/TextObjectRecord.java @@ -254,7 +254,7 @@ public int getHorizontalTextAlignment() { /** * Sets the Vertical text alignment field value. * - * @param value The vertical alignment, use one of the VERTIUCAL_TEST_ALIGNMENT_... constants in this class + * @param value The vertical alignment, use one of the VERTICAL_TEST_ALIGNMENT_... constants in this class */ public void setVerticalTextAlignment(int value) { field_1_options = VerticalTextAlignment.setValue(field_1_options, value); From 63ba12ad223fa57de8ec6263631d796355f4a032 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:55 -0400 Subject: [PATCH 310/323] spelling: weight Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/hssf/record/cf/FontFormatting.java | 4 ++-- .../org/apache/poi/hssf/usermodel/HSSFFontFormatting.java | 2 +- .../java/org/apache/poi/hssf/record/TestCFRuleRecord.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/cf/FontFormatting.java b/poi/src/main/java/org/apache/poi/hssf/record/cf/FontFormatting.java index b8adbcb86fd..d87336d6e53 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/cf/FontFormatting.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/cf/FontFormatting.java @@ -78,7 +78,7 @@ public final class FontFormatting implements Duplicatable, GenericRecord { public FontFormatting() { setFontHeight(-1); setItalic(false); - setFontWieghtModified(false); + setFontWeightModified(false); setOutline(false); setShadow(false); setStrikeout(false); @@ -386,7 +386,7 @@ public boolean isUnderlineTypeModified() { return underlineModified == 0; } - public void setFontWieghtModified(boolean modified) { + public void setFontWeightModified(boolean modified) { int value = modified? 0 : 1; setInt(OFFSET_FONT_WEIGHT_MODIFIED, value); } diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFFontFormatting.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFFontFormatting.java index 735d921cc34..59c4f4df2e5 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFFontFormatting.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFFontFormatting.java @@ -230,7 +230,7 @@ public void setFontStyle(boolean italic, boolean bold) fontFormatting.setItalic(italic); fontFormatting.setBold(bold); fontFormatting.setFontStyleModified(modified); - fontFormatting.setFontWieghtModified(modified); + fontFormatting.setFontWeightModified(modified); } /** diff --git a/poi/src/test/java/org/apache/poi/hssf/record/TestCFRuleRecord.java b/poi/src/test/java/org/apache/poi/hssf/record/TestCFRuleRecord.java index 81689f140c5..fe262850a24 100644 --- a/poi/src/test/java/org/apache/poi/hssf/record/TestCFRuleRecord.java +++ b/poi/src/test/java/org/apache/poi/hssf/record/TestCFRuleRecord.java @@ -311,9 +311,9 @@ private void testFontFormattingAccessors(FontFormatting fontFormatting) { fontFormatting.setEscapementTypeModified(true); assertTrue(fontFormatting.isEscapementTypeModified()); - fontFormatting.setFontWieghtModified(false); + fontFormatting.setFontWeightModified(false); assertFalse(fontFormatting.isFontWeightModified()); - fontFormatting.setFontWieghtModified(true); + fontFormatting.setFontWeightModified(true); assertTrue(fontFormatting.isFontWeightModified()); fontFormatting.setFontCancellationModified(false); From 4083671b48b5f7a1f6bd4f68e4555887c0f2119e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:43:20 -0400 Subject: [PATCH 311/323] spelling: were Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hwpf/usermodel/Range.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java index 08d3840e563..9db64f1b19d 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Range.java @@ -213,7 +213,7 @@ protected Range(Range other) { /** - * Ensures that the start and end were were given are actually valid, to + * Ensures that the start and end were given are actually valid, to * avoid issues later on if they're not */ private void sanityCheckStartEnd() { From 4fb0e15cf8dc53ce28fa4e9b9e1eac94201ffbd6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:56 -0400 Subject: [PATCH 312/323] spelling: while Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../main/java/org/apache/poi/hssf/record/RecordInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/RecordInputStream.java b/poi/src/main/java/org/apache/poi/hssf/record/RecordInputStream.java index caeac85d666..bb8b7df2f76 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/RecordInputStream.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/RecordInputStream.java @@ -86,7 +86,7 @@ private static String getRecordName(int sid) { * is finished. * This field is only really valid during the time that ({@link #_currentDataLength} == * {@link #DATA_LEN_NEEDS_TO_BE_READ}). At most other times its value is not really the - * 'sid of the next record'. Wwhile mid-record, this field coincidentally holds the sid + * 'sid of the next record'. While mid-record, this field coincidentally holds the sid * of the current record. */ private int _nextSid; From a7098d3d05b8b548d95d853698468678399a2528 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 06:55:58 -0400 Subject: [PATCH 313/323] spelling: width Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/ss/util/TestSheetUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java b/poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java index 816db091a2d..288ded538d5 100644 --- a/poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java +++ b/poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java @@ -162,7 +162,7 @@ void testGetColumnWidthString() throws IOException { cell.setCellValue("sometext"); assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells"); - assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells"); + assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells"); } } @@ -178,7 +178,7 @@ void testGetColumnWidthBlankCell() throws IOException { cell.setCellValue((String)null); assertEquals(-1, SheetUtil.getColumnWidth(sheet, 0, true), "Having some width for rows with actual cells"); - assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells"); + assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells"); } } @@ -194,7 +194,7 @@ void testGetColumnWidthemptyString() throws IOException { cell.setCellValue(""); assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells"); - assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells"); + assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells"); } } @@ -212,7 +212,7 @@ void testGetColumnWidthNullString() throws IOException { cell.setCellType(CellType.STRING); assertTrue(SheetUtil.getColumnWidth(sheet, 0, true) > 0, "Having some width for rows with actual cells"); - assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any widht for rows with all empty cells"); + assertEquals(-1.0, SheetUtil.getColumnWidth(sheet, 0, true, 1, 2), 0.01, "Not having any width for rows with all empty cells"); } } } From da52d5e13a38d8a83322be7da1ac473724f4542f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:43:31 -0400 Subject: [PATCH 314/323] spelling: with-text Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java index b844a29ca4e..cd5fa25c607 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -257,7 +257,7 @@ public org.apache.poi.hslf.record.Slide getSlideRecord() { } /** - * @return set of records inside {@code SlideListWithtext} container + * @return set of records inside {@code SlideListWithText} container * which hold text data for this slide (typically for placeholders). */ public SlideAtomsSet getSlideAtomsSet() { return _atomSet; } From d2452dca05e4a63462b483515972cb527fc37773 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:43:28 -0400 Subject: [PATCH 315/323] spelling: with Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 2 +- poi/src/main/java/org/apache/poi/ss/usermodel/AutoFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 01be17a4620..699813fb605 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -1689,7 +1689,7 @@ void bug56702() throws IOException { /** * Formulas which reference named ranges, either in other * sheets, or workbook scoped but in other workbooks. - * Used to fail with with errors like + * Used to fail with errors like * org.apache.poi.ss.formula.FormulaParseException: Cell reference expected after sheet name at index 9 * org.apache.poi.ss.formula.FormulaParseException: Parse error near char 0 '[' in specified formula '[0]!NR_Global_B2'. Expected number, string, or defined name */ diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/AutoFilter.java b/poi/src/main/java/org/apache/poi/ss/usermodel/AutoFilter.java index 2b8c2446c50..3bd89f79a0f 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/AutoFilter.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/AutoFilter.java @@ -54,7 +54,7 @@ public interface AutoFilter { * @param operator the operator to apply * @param criteria top or bottom value used in the filter criteria. * - * TODO YK: think how to combine AutoFilter with with DataValidationConstraint, they are really close relatives + * TODO YK: think how to combine AutoFilter with DataValidationConstraint, they are really close relatives * void applyFilter(int columnIndex, FilterOperator operator, String criteria); */ From e4bd729c3ce37cacfe88797a700a929abd912b46 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 23 Jun 2023 11:42:33 -0400 Subject: [PATCH 316/323] spelling: woohoo Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../test/java/org/apache/poi/hssf/usermodel/TestFormulas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java index ec2d1d9d978..bdf8a343cb1 100644 --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java @@ -50,7 +50,7 @@ private static HSSFWorkbook openSample(String sampleFileName) { } /** - * Add 1+1 -- WHoohoo! + * Add 1+1 -- Woohoo! */ @Test void testBasicAddIntegers() throws IOException { From fabc363a6d8bc6dc44b6a0f9a9a2b2688ebc5586 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:43:56 -0400 Subject: [PATCH 317/323] spelling: workaround Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java index 9534ef8f461..e05cf0551a0 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java @@ -288,7 +288,7 @@ private POIFSFileSystem(FileChannel channel, File srcFile, boolean readOnly, boo *

    * Some streams are usable after reaching EOF (typically those that return {@code true} * for {@code markSupported()}). In the unlikely case that the caller has such a stream - * and needs to use it after this constructor completes, a work around is to wrap the + * and needs to use it after this constructor completes, a workaround is to wrap the * stream in order to trap the {@code close()} call. A convenience method ( * {@code createNonClosingInputStream()}) has been provided for this purpose: *

    
    From 4105c35fb4fb719898e2e2778edf147381c42661 Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Fri, 23 Jun 2023 06:55:59 -0400
    Subject: [PATCH 318/323] spelling: workbook
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     .../poi/ss/excelant/util/TestExcelAntWorkbookUtilFactory.java | 2 +-
     .../org/apache/poi/hssf/record/RecordFactoryInputStream.java  | 2 +-
     .../java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java     | 2 +-
     .../poi/ss/formula/CollaboratingWorkbooksEnvironment.java     | 4 ++--
     4 files changed, 5 insertions(+), 5 deletions(-)
    
    diff --git a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtilFactory.java b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtilFactory.java
    index e7e7f3099c1..a958d0f6e94 100644
    --- a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtilFactory.java
    +++ b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtilFactory.java
    @@ -24,7 +24,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
     
     
     /**
    - * Tests for the ExcelAntWorbookUtilFactory.
    + * Tests for the ExcelAntWorkbookUtilFactory.
      */
     class TestExcelAntWorkbookUtilFactory {
     
    diff --git a/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java b/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java
    index 16171463647..9447cfe1273 100644
    --- a/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java
    +++ b/poi/src/main/java/org/apache/poi/hssf/record/RecordFactoryInputStream.java
    @@ -209,7 +209,7 @@ public RecordFactoryInputStream(InputStream in, boolean shouldIncludeContinueRec
             * non-zero padding that is read OK by Excel (Excel also fixes the padding).
             *
             * So to properly detect the workbook end of stream, this code has to identify the last
    -        * EOF record.  This is not so easy because the worbook bof+eof pair do not bracket the
    +        * EOF record.  This is not so easy because the workbook bof+eof pair do not bracket the
             * whole stream.  The worksheets follow the workbook, but it is not easy to tell how many
             * sheet sub-streams should be present.  Hence we are looking for an EOF record that is not
             * immediately followed by a BOF record.  One extra complication is that bof+eof sub-
    diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java
    index 865ffc5d19f..51c9c1c7956 100644
    --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java
    +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java
    @@ -166,7 +166,7 @@ public static void optimiseFonts(HSSFWorkbook workbook) {
         }
     
        /**
    -    * Goes through the Wokrbook, optimising the cell styles
    +    * Goes through the Workbook, optimising the cell styles
         *  by removing duplicate ones, and ones that aren't used.
         * For best results, optimise the fonts via a call to
         *  {@link #optimiseFonts(HSSFWorkbook)} first.
    diff --git a/poi/src/main/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java b/poi/src/main/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java
    index 446149b113c..fd3c5b6b59b 100644
    --- a/poi/src/main/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java
    +++ b/poi/src/main/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java
    @@ -62,13 +62,13 @@ public static void setup(String[] workbookNames, WorkbookEvaluator[] evaluators)
                         + " but number of evaluators is " + evaluators.length);
             }
             if (nItems < 1) {
    -            throw new IllegalArgumentException("Must provide at least one collaborating worbook");
    +            throw new IllegalArgumentException("Must provide at least one collaborating workbook");
             }
             new CollaboratingWorkbooksEnvironment(workbookNames, evaluators, nItems);
         }
         public static void setup(Map evaluatorsByName) {
             if (evaluatorsByName.size() < 1) {
    -            throw new IllegalArgumentException("Must provide at least one collaborating worbook");
    +            throw new IllegalArgumentException("Must provide at least one collaborating workbook");
             }
             WorkbookEvaluator[] evaluators =
                     evaluatorsByName.values().toArray(new WorkbookEvaluator[0]);
    
    From 02afc86a98e5fa72e2506fdf5bc75b1ddf562a0e Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Fri, 23 Jun 2023 06:56:01 -0400
    Subject: [PATCH 319/323] spelling: writing
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     poi/src/main/java/org/apache/poi/hssf/package-info.java         | 2 +-
     .../test/java/org/apache/poi/hssf/usermodel/TestFormulas.java   | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/poi/src/main/java/org/apache/poi/hssf/package-info.java b/poi/src/main/java/org/apache/poi/hssf/package-info.java
    index 43f8bcbe65f..a5738a524ca 100644
    --- a/poi/src/main/java/org/apache/poi/hssf/package-info.java
    +++ b/poi/src/main/java/org/apache/poi/hssf/package-info.java
    @@ -16,7 +16,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
     ==================================================================== */
     
     /**
    - * Horrible SpreadSheet Format API's for reading/writting Excel files using pure Java.
    + * Horrible SpreadSheet Format API's for reading/writing Excel files using pure Java.
      *
      * @see Overview, tutorials, examples, guides, and tool documentation
      */
    diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java
    index bdf8a343cb1..29e41a1aac2 100644
    --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java
    +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulas.java
    @@ -319,7 +319,7 @@ private static void operationalRefVerify(String operator, HSSFWorkbook wb) {
     
     
         /**
    -     * tests order wrting out == order writing in for a given formula
    +     * tests order writing out == order writing in for a given formula
          */
         private static void orderTest(String formula) throws IOException {
             try (HSSFWorkbook wb1 = new HSSFWorkbook()) {
    
    From bfde08800d0997633d70d365e9e82bfa80f60880 Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Fri, 23 Jun 2023 06:56:03 -0400
    Subject: [PATCH 320/323] spelling: written and
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     .../java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java
    index d055c3cb171..62aabfc2ebf 100644
    --- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java
    +++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestUnicodeWorkbook.java
    @@ -29,7 +29,7 @@ final class TestUnicodeWorkbook {
     
         /**
          *  Tests Bug38230
    -     *  That an Umlaut is written  and then read back.
    +     *  That an Umlaut is written and then read back.
          *  It should have been written as a compressed unicode.
          */
         @Test
    
    From f91be07c992c12f5c62200c293d5bc827ca068fd Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Fri, 23 Jun 2023 06:56:04 -0400
    Subject: [PATCH 321/323] spelling: xslx
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     .../poi/openxml4j/util/TestXSSFWorkbookWithMemoryConfigs.java   | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/util/TestXSSFWorkbookWithMemoryConfigs.java b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/util/TestXSSFWorkbookWithMemoryConfigs.java
    index 536b9bf065e..356e81408bd 100644
    --- a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/util/TestXSSFWorkbookWithMemoryConfigs.java
    +++ b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/util/TestXSSFWorkbookWithMemoryConfigs.java
    @@ -31,7 +31,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
     @Isolated //changes IOUtils and other static changes
     class TestXSSFWorkbookWithMemoryConfigs {
         @Test
    -    void loadXslsxWithLowThreshold() {
    +    void loadXslxWithLowThreshold() {
             final int defaultMaxEntrySize = ZipArchiveFakeEntry.getMaxEntrySize();
             ZipArchiveFakeEntry.setMaxEntrySize(100);
             try {
    
    From a792818a8fed0d7421b77190915b640f2fa387f3 Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Fri, 23 Jun 2023 09:48:22 -0400
    Subject: [PATCH 322/323] spelling: xwpfwordextractor
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     .../org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java    | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
    index 90f4c817a51..b5f382e7627 100644
    --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
    +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
    @@ -48,7 +48,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
     import javax.xml.namespace.QName;
     
     /**
    - * Tests for HXFWordExtractor
    + * Tests for XWPFWordExtractor
      */
     class TestXWPFWordExtractor {
     
    
    From 852fb508c7e482bd5b0d6e36ea33fdb84644a7da Mon Sep 17 00:00:00 2001
    From: Josh Soref <2119212+jsoref@users.noreply.github.com>
    Date: Mon, 19 Jun 2023 14:43:40 -0400
    Subject: [PATCH 323/323] spelling: zhang
    
    Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
    ---
     .../test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java   | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/poi/src/test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java b/poi/src/test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java
    index 785162eb5be..81560cd43a4 100644
    --- a/poi/src/test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java
    +++ b/poi/src/test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java
    @@ -82,7 +82,7 @@ void testFillFields() {
             assertEquals( 1, r.getChildRecords().size() );
             assertEquals( (short) 0xFFFF, r.getChild( 0 ).getRecordId() );
     
    -        //Add by Zhang Zhang test error situation when remaining bytes > available bytes
    +        //Add by Zhang test error situation when remaining bytes > available bytes
             testData =
                 "00 02 " + // options
                 "11 F1 " + // record id