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:
*
From a1b57ccab3280c8e4d5cef74e75376fc53337d62 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:01 -0400
Subject: [PATCH 009/323] spelling: aggregate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hssf/record/EscherAggregate.java | 2 +-
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 2c71372ee9e..63aad5c2b86 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
@@ -84,7 +84,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
*
* ObjRecord contains information about shape. Thus each ObjRecord corresponds EscherContainerRecord(SPGR)
*
- * EscherAggrefate contains also NoteRecords
+ * EscherAggregate contains also NoteRecords
* NoteRecords must be serial
*/
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 f50e18edb90..3514b263f99 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
@@ -2122,7 +2122,7 @@ public void dumpDrawingRecords(boolean fat, PrintWriter pw) {
}
/**
- * Returns the agregate escher records for this sheet,
+ * Returns the aggregate escher records for this sheet,
* it there is one.
*/
public EscherAggregate getDrawingEscherAggregate() {
From 91e51c18bb3597dfd308c2af460f4da397209fd7 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:03 -0400
Subject: [PATCH 010/323] spelling: algorithm
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
index 587d72eca6c..cadcfc8de13 100644
--- a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
+++ b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
@@ -112,7 +112,7 @@ public static byte[] hashPassword(String password, HashAlgorithm hashAlgorithm,
* uses first the last hash value and then the current iterator value
*
* @param password the pasword
- * @param hashAlgorithm the hash algorighm
+ * @param hashAlgorithm the hash algorithm
* @param salt the initial salt value
* @param spinCount the repetition count
* @param iteratorFirst if true, the iterator is hashed before the n-1 hash value,
From 6b1eb98fe3afdcf38e281c4152639002533c7fcb Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:04 -0400
Subject: [PATCH 011/323] spelling: alignment
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../extensions/XSSFCellAlignment.java | 40 +++++++++----------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.java
index b006afc5e26..e7504916d15 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.java
@@ -31,7 +31,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
* Cell settings available in the Format/Alignment tab
*/
public class XSSFCellAlignment {
- private final CTCellAlignment cellAlignement;
+ private final CTCellAlignment cellAlignment;
/**
* Creates a Cell Alignment from the supplied XML definition
@@ -39,17 +39,17 @@ public class XSSFCellAlignment {
* @param cellAlignment The low-level XML definition of the cell alignment
*/
public XSSFCellAlignment(CTCellAlignment cellAlignment) {
- this.cellAlignement = cellAlignment;
+ this.cellAlignment = cellAlignment;
}
/**
* Get the type of vertical alignment for the cell
*
- * @return the type of aligment
+ * @return the type of alignment
* @see VerticalAlignment
*/
public VerticalAlignment getVertical() {
- STVerticalAlignment.Enum align = cellAlignement.getVertical();
+ STVerticalAlignment.Enum align = cellAlignment.getVertical();
if (align == null) align = STVerticalAlignment.BOTTOM;
return VerticalAlignment.values()[align.intValue() - 1];
@@ -62,17 +62,17 @@ public VerticalAlignment getVertical() {
* @see VerticalAlignment
*/
public void setVertical(VerticalAlignment align) {
- cellAlignement.setVertical(STVerticalAlignment.Enum.forInt(align.ordinal() + 1));
+ cellAlignment.setVertical(STVerticalAlignment.Enum.forInt(align.ordinal() + 1));
}
/**
* Get the type of horizontal alignment for the cell
*
- * @return the type of aligment
+ * @return the type of alignment
* @see HorizontalAlignment
*/
public HorizontalAlignment getHorizontal() {
- STHorizontalAlignment.Enum align = cellAlignement.getHorizontal();
+ STHorizontalAlignment.Enum align = cellAlignment.getHorizontal();
if (align == null) align = STHorizontalAlignment.GENERAL;
return HorizontalAlignment.values()[align.intValue() - 1];
@@ -85,7 +85,7 @@ public HorizontalAlignment getHorizontal() {
* @see HorizontalAlignment
*/
public void setHorizontal(HorizontalAlignment align) {
- cellAlignement.setHorizontal(STHorizontalAlignment.Enum.forInt(align.ordinal() + 1));
+ cellAlignment.setHorizontal(STHorizontalAlignment.Enum.forInt(align.ordinal() + 1));
}
/**
@@ -95,7 +95,7 @@ public void setHorizontal(HorizontalAlignment align) {
* @see ReadingOrder
*/
public void setReadingOrder(ReadingOrder order) {
- cellAlignement.setReadingOrder(order.getCode());
+ cellAlignment.setReadingOrder(order.getCode());
}
/**
@@ -105,8 +105,8 @@ public void setReadingOrder(ReadingOrder order) {
* @see ReadingOrder
*/
public ReadingOrder getReadingOrder() {
- if(cellAlignement != null && cellAlignement.isSetReadingOrder()) {
- return ReadingOrder.forLong(cellAlignement.getReadingOrder());
+ if(cellAlignment != null && cellAlignment.isSetReadingOrder()) {
+ return ReadingOrder.forLong(cellAlignment.getReadingOrder());
}
return ReadingOrder.CONTEXT;
}
@@ -117,7 +117,7 @@ public ReadingOrder getReadingOrder() {
* @return indent - number of spaces
*/
public long getIndent() {
- return cellAlignement.getIndent();
+ return cellAlignment.getIndent();
}
/**
@@ -126,7 +126,7 @@ public long getIndent() {
* @param indent - number of spaces
*/
public void setIndent(long indent) {
- cellAlignement.setIndent(indent);
+ cellAlignment.setIndent(indent);
}
/**
@@ -144,7 +144,7 @@ public void setIndent(long indent) {
* @return rotation degrees (between 0 and 180 degrees)
*/
public long getTextRotation() {
- return cellAlignement.isSetTextRotation() ? cellAlignement.getTextRotation().longValue() : 0;
+ return cellAlignment.isSetTextRotation() ? cellAlignment.getTextRotation().longValue() : 0;
}
/**
@@ -170,7 +170,7 @@ public void setTextRotation(long rotation) {
if(rotation < 0 && rotation >= -90) {
rotation = 90 + ((-1)*rotation);
}
- cellAlignement.setTextRotation(BigInteger.valueOf(rotation));
+ cellAlignment.setTextRotation(BigInteger.valueOf(rotation));
}
/**
@@ -179,7 +179,7 @@ public void setTextRotation(long rotation) {
* @return a boolean value indicating if the text in a cell should be line-wrapped within the cell.
*/
public boolean getWrapText() {
- return cellAlignement.getWrapText();
+ return cellAlignment.getWrapText();
}
/**
@@ -188,15 +188,15 @@ public boolean getWrapText() {
* @param wrapped a boolean value indicating if the text in a cell should be line-wrapped within the cell.
*/
public void setWrapText(boolean wrapped) {
- cellAlignement.setWrapText(wrapped);
+ cellAlignment.setWrapText(wrapped);
}
public boolean getShrinkToFit() {
- return cellAlignement.getShrinkToFit();
+ return cellAlignment.getShrinkToFit();
}
public void setShrinkToFit(boolean shrink) {
- cellAlignement.setShrinkToFit(shrink);
+ cellAlignment.setShrinkToFit(shrink);
}
/**
@@ -204,6 +204,6 @@ public void setShrinkToFit(boolean shrink) {
*/
@Internal
public CTCellAlignment getCTCellAlignment() {
- return cellAlignement;
+ return cellAlignment;
}
}
From b0f209dd7d9484a8f67ac48dedd8fe707e9f9ee1 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:05 -0400
Subject: [PATCH 012/323] spelling: alternate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hwpf/model/OldFfn.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/OldFfn.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/OldFfn.java
index 38c0d53cab6..75932f6a4e5 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/OldFfn.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/OldFfn.java
@@ -78,7 +78,7 @@ static OldFfn build(byte[] buf, int offset, int fontTableEnd) {
charset = charset == null ? StringUtil.WIN_1252 : charset;
offset += LittleEndianConsts.BYTE_SIZE;
//if this byte here == 7, it _may_ signify existence of
- //an altername font name
+ //an alternate font name
//not sure what the byte after the _chs does
offset += LittleEndianConsts.BYTE_SIZE;
From fc8b583e7162162ed349655fdf5e61931a66a36b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:06 -0400
Subject: [PATCH 013/323] spelling: an
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 5ae57250b3c..be5bd0a402e 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 a Umlat is written and then read back.
+ * That an Umlat is written and then read back.
* It should have been written as a compressed unicode.
*/
@Test
From a3cefcff037c249d958001a19bca8388f6342c1f Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:13:55 -0400
Subject: [PATCH 014/323] spelling: and
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 c00fe368f3a..8b28ded7359 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
@@ -91,7 +91,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
* Taken together, the first four methods define the locations of the top left
* and bottom right hand corners of the image if you imagine that the image is
* represented by a simple rectangle. The setDx1() and setDy1() methods locate
- * the top left hand corner of the image while setDx2() and and Dy2() locate the
+ * the top left hand corner of the image while setDx2() and Dy2() locate the
* bottom right hand corner of the image. An individual image can be inserted
* into a single cell or is can lie across many cells and the latter four methods
* are used to define just where the image should be positioned. They do this by
From afad6703ac7f70ab42846af0f174877ab7674522 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:08 -0400
Subject: [PATCH 015/323] spelling: ansi
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java
index b836e3269ce..236e65f11b3 100644
--- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -1155,7 +1155,7 @@ void bug31661() throws Exception {
}
/**
- * Incorrect handling of non-ISO 8859-1 characters in Windows ANSII Code Page 1252
+ * Incorrect handling of non-ISO 8859-1 characters in Windows ANSI Code Page 1252
*/
@Test
void bug27394() throws Exception {
From e8630588328b59b226a342ab185d2966fdab4bba Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:44:11 -0400
Subject: [PATCH 016/323] spelling: anymore
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
jenkins/create_jobs.groovy | 6 +++---
.../org/apache/poi/examples/xssf/usermodel/BigGridDemo.java | 2 +-
.../org/apache/poi/util/tests/TestIdentifierManager.java | 2 +-
.../apache/poi/xslf/usermodel/TestXSLFTextParagraph.java | 2 +-
.../java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 2 +-
.../java/org/apache/poi/hslf/record/PersistPtrHolder.java | 2 +-
.../java/org/apache/poi/extractor/POITextExtractor.java | 2 +-
.../test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java | 2 +-
8 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 0a5bd686577..07d6087969d 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -53,7 +53,7 @@ def poijobs = [
properties: ["-Dadditionaljar=${xercesLib}"]
],
// [ name: 'POI-DSL-Maven', trigger: 'H */4 * * *', maven: true,
-// // not needed any more now that we use Gradle for SonarQube
+// // not needed anymore now that we use Gradle for SonarQube
// disabled: true
// ],
[ name: 'POI-DSL-regenerate-javadoc', trigger: triggerSundays, javadoc: true
@@ -265,7 +265,7 @@ poijobs.each { poijob ->
env('CI_BUILD', 'TRUE')
if(jdkKey == '1.10') {
// when using JDK 9/10 for running Ant, we need to provide more modules for the forbidden-api-checks task
- // on JDK 11 and newer there is no such module any more, so do not add it here
+ // on JDK 11 and newer there is no such module anymore, so do not add it here
env('ANT_OPTS', '--add-modules=java.xml.bind --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED')
}
env('FORREST_HOME', poijob.windows ? 'f:\\jenkins\\tools\\forrest\\latest' : '/home/jenkins/tools/forrest/latest')
@@ -490,7 +490,7 @@ xmlbeansjobs.each { xjob ->
env('LANG', 'en_US.UTF-8')
if(jdkKey == '1.10') {
// when using JDK 9/10 for running Ant, we need to provide more modules for the forbidden-api-checks task
- // on JDK 11 and newer there is no such module any more, so do not add it here
+ // on JDK 11 and newer there is no such module anymore, so do not add it here
env('ANT_OPTS', '--add-modules=java.xml.bind --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED')
} else if (jdkKey == '1.11' || jdkKey == '1.12' || jdkKey == '1.13' || jdkKey == '1.14' || jdkKey == '1.15' || jdkKey == '1.16' || jdkKey == '1.17'
|| jdkKey == '1.18' || jdkKey == '1.19' || jdkKey == '1.20' || jdkKey == '1.21') {
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java
index f0562be0b81..70fdcd2ef66 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/BigGridDemo.java
@@ -54,7 +54,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
/**
* Demonstrates a workaround you can use to generate large workbooks and avoid OutOfMemory exception.
*
- * Note - You probably don't want to use this approach any more! POI
+ * Note - You probably don't want to use this approach anymore! POI
* now includes the SXSSF which handles all of this for you, you should
* be using that instead! This code remains mostly for historical interest.
*
diff --git a/poi-ooxml/src/test/java/org/apache/poi/util/tests/TestIdentifierManager.java b/poi-ooxml/src/test/java/org/apache/poi/util/tests/TestIdentifierManager.java
index d2397546926..0b894f03aae 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/util/tests/TestIdentifierManager.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/util/tests/TestIdentifierManager.java
@@ -142,7 +142,7 @@ void testBounds() {
// now the manager is exhausted
assertThrows(IllegalStateException.class,
() -> manager.reserve(10),
- "No more ids left any more");
+ "No more ids left anymore");
assertThrows(IllegalArgumentException.class,
() -> manager.release(9),
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextParagraph.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextParagraph.java
index f6c5570003c..510a6fbe454 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextParagraph.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextParagraph.java
@@ -344,7 +344,7 @@ void testParagraphProperties() throws IOException {
assertNull(p.getIndent());
p.setIndent(72.0);
assertEquals(72.0, p.getIndent(), 0);
- p.setIndent(-1d); // the value of -1.0 resets to the defaults (not any more ...)
+ p.setIndent(-1d); // the value of -1.0 resets to the defaults (not anymore ...)
assertEquals(-1d, p.getIndent(), 0);
p.setIndent(null);
assertNull(p.getIndent());
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 7b735206d44..60db08e5467 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
@@ -3357,7 +3357,7 @@ void testBug63845() throws IOException {
cellBack.setCellValue("123");
assertEquals("123", cellBack.getStringCellValue(),
"String value should be set now");
- assertNull(((XSSFCell) cellBack).getCTCell().getF(), "No formula should be set any more");
+ assertNull(((XSSFCell) cellBack).getCTCell().getF(), "No formula should be set anymore");
}
}
}
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PersistPtrHolder.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PersistPtrHolder.java
index db3482f0aad..df6a219c419 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PersistPtrHolder.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/PersistPtrHolder.java
@@ -171,7 +171,7 @@ public void updateOtherRecordReferences(Map oldToNewReferencesL
if (newPos == null) {
Integer id = me.getKey();
LOG.atWarn().log("Couldn't find the new location of the \"slide\" with id {} that used to " +
- "be at {}. Not updating the position of it, you probably won't be able to find it any more " +
+ "be at {}. Not updating the position of it, you probably won't be able to find it anymore " +
"(if you ever could!)", id, oldPos);
} else {
me.setValue(newPos);
diff --git a/poi/src/main/java/org/apache/poi/extractor/POITextExtractor.java b/poi/src/main/java/org/apache/poi/extractor/POITextExtractor.java
index 4c36c37fc88..fe840ae8fee 100644
--- a/poi/src/main/java/org/apache/poi/extractor/POITextExtractor.java
+++ b/poi/src/main/java/org/apache/poi/extractor/POITextExtractor.java
@@ -67,7 +67,7 @@ public interface POITextExtractor extends Closeable {
/**
* Allows to free resources of the Extractor as soon as
- * it is not needed any more. This may include closing
+ * it is not needed anymore. This may include closing
* open file handles and freeing memory.
*
* The Extractor cannot be used after close has been called.
diff --git a/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java b/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
index e13f205c40b..0c98d26c9cc 100644
--- a/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
+++ b/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
@@ -170,7 +170,7 @@ public void checkPermission(Permission perm) {
@SuppressForbidden("tests java.security features deprecated in java 17 - no other option though")
void testMainNoArgs() {
Assumptions.assumeFalse(POITestCase.getJDKVersion() >= 18,
- "SecurityManager does not work any more since JDK 18");
+ "SecurityManager does not work since JDK 18");
SecurityManager sm = System.getSecurityManager();
try {
From d5c223e04302ac571d95c5a39a2f9fd458254ad5 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:09 -0400
Subject: [PATCH 017/323] spelling: appears
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../apache/poi/ss/formula/functions/TestNumericFunction.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestNumericFunction.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestNumericFunction.java
index 632c53ad39f..7c1928db20e 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestNumericFunction.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestNumericFunction.java
@@ -131,7 +131,7 @@ void testDOLLARJapan() {
}
@Test
- @Disabled("fails on some Java Runtimes (kr apprears at start of result in some JREs)")
+ @Disabled("fails on some Java Runtimes (kr appears at start of result in some JREs)")
void testDOLLARDenmark() {
Locale defaultLocale = LocaleUtil.getUserLocale();
try {
From 996fbca9e40da73137cd0839e44ff773904eef6e Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:10 -0400
Subject: [PATCH 018/323] spelling: arbitrary
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java | 2 +-
.../java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java | 2 +-
.../main/java/org/apache/poi/ss/usermodel/RichTextString.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
index fe3e27b10d6..52cacd99301 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
@@ -40,7 +40,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
/**
- * Rich text unicode string. These strings can have fonts applied to arbitary parts of the string.
+ * Rich text unicode string. These strings can have fonts applied to arbitrary parts of the string.
*
*
* Most strings in a workbook have formatting applied at the cell level, that is, the entire string in the cell has the
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
index e208fb3acbd..b81aeecbac5 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
@@ -27,7 +27,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
import org.apache.poi.ss.usermodel.RichTextString;
/**
* Rich text unicode string. These strings can have fonts applied to
- * arbitary parts of the string.
+ * arbitrary parts of the string.
*
*
* Note, that in certain cases creating too many HSSFRichTextString cells may cause Excel 2003 and lower to crash
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/RichTextString.java b/poi/src/main/java/org/apache/poi/ss/usermodel/RichTextString.java
index e38f12355c0..d20bb9087bc 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/RichTextString.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/RichTextString.java
@@ -19,7 +19,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
/**
* Rich text unicode string. These strings can have fonts
- * applied to arbitary parts of the string.
+ * applied to arbitrary parts of the string.
*/
public interface RichTextString {
From e2c9e34a57473ba046aefda4e2c808802c31c2c6 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 07:58:40 -0400
Subject: [PATCH 019/323] spelling: args
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
index 2d220234267..05f81eaf69f 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
@@ -533,7 +533,7 @@ static ValueEval getValueFromNonFormulaCell(EvaluationCell cell) {
}
ec.setArrayMode(arrayMode);
-// logDebug("invoke " + operation + " (nAgs=" + numops + ")");
+// logDebug("invoke " + operation + " (nArgs=" + numops + ")");
opResult = OperationEvaluatorFactory.evaluate(optg, ops, ec);
ec.setArrayMode(false);
From 3a291831a17afe4946aed83cf50976f2e9673f93 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 08:01:13 -0400
Subject: [PATCH 020/323] spelling: array
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/util/StringUtil.java | 2 +-
.../java/org/apache/poi/hssf/record/TestLbsDataSubRecord.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 c1bb5215435..b1debf5f5f9 100644
--- a/poi/src/main/java/org/apache/poi/util/StringUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/StringUtil.java
@@ -268,7 +268,7 @@ public static int getEncodedSize(String value) {
*
* @param input the String containing the data to be written
* @param output the byte array to which the data is to be written
- * @param offset an offset into the byte arrat at which the data is start
+ * @param offset an offset into the byte array at which the data is start
* when written
*/
public static void putCompressedUnicode(String input, byte[] output, int offset) {
diff --git a/poi/src/test/java/org/apache/poi/hssf/record/TestLbsDataSubRecord.java b/poi/src/test/java/org/apache/poi/hssf/record/TestLbsDataSubRecord.java
index 53e1229537e..24a855d76fe 100644
--- a/poi/src/test/java/org/apache/poi/hssf/record/TestLbsDataSubRecord.java
+++ b/poi/src/test/java/org/apache/poi/hssf/record/TestLbsDataSubRecord.java
@@ -128,7 +128,7 @@ void test_remove_padding(){
"00, 00, 00, 00, 00, 00, 01, 00, 09, 00, " +
"00, 00, 0F, 00, 01, 00, " +
"13, 00, 1B, 00, " +
- "10, 00, " + //next 16 bytes is a ptg aray
+ "10, 00, " + //next 16 bytes is a ptg array
"09, 00, 00, 00, 00, 00, 25, 09, 00, 0C, 00, 07, 00, 07, 00, 00, " +
"01, 00, " + //num lines
"00, 00, " + //selected
From 5295c4b1e35ffc110b26da56879febe1e99bc8ad Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:12 -0400
Subject: [PATCH 021/323] spelling: artifact
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hdgf/chunks/Chunk.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/Chunk.java b/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/Chunk.java
index b85592f1121..c3242494a55 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/Chunk.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/Chunk.java
@@ -282,7 +282,7 @@ private Command(CommandDefinition definition) {
public Object getValue() { return value; }
}
/*
- * A special kind of command that is an artificat of how we
+ * A special kind of command that is an artifact of how we
* process CommandDefinitions, and so doesn't actually exist
* in the chunk
*/
From 1756b9a7c0f4851ce16255264bec96240f03795a Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 08:00:56 -0400
Subject: [PATCH 022/323] spelling: as
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../TestTwoOperandNumericFunctionsFromSpreadsheet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTwoOperandNumericFunctionsFromSpreadsheet.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTwoOperandNumericFunctionsFromSpreadsheet.java
index a5fb9ef8c22..b978b08ed5c 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTwoOperandNumericFunctionsFromSpreadsheet.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTwoOperandNumericFunctionsFromSpreadsheet.java
@@ -22,7 +22,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
import org.junit.jupiter.params.provider.Arguments;
/**
- * Tests for numeric functions with two arguments such aqs +, -, *, POWER
+ * Tests for numeric functions with two arguments such as +, -, *, POWER
* as loaded from a test data spreadsheet.
*/
class TestTwoOperandNumericFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
From 05ee012381ec3499d484fe3d51b3bb5bfe66dccb Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:13 -0400
Subject: [PATCH 023/323] spelling: ascii
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/util/CodePageUtil.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/util/CodePageUtil.java b/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
index b89fba871b7..b021c609058 100644
--- a/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
@@ -132,7 +132,7 @@ public class CodePageUtil
public static final int CP_MAC_CROATIAN = 10082;
/**
Codepage for US-ASCII
*/
- public static final int CP_US_ACSII = 20127;
+ public static final int CP_US_ASCII = 20127;
/** Codepage for KOI8-R
*/
public static final int CP_KOI8_R = 20866;
@@ -371,7 +371,7 @@ public static String codepageToEncoding(final int codepage, boolean javaLangForm
return "MacTurkish";
case CP_MAC_CROATIAN:
return "MacCroatian";
- case CP_US_ACSII:
+ case CP_US_ASCII:
case CP_US_ASCII2:
return "US-ASCII";
case CP_KOI8_R:
From 823edca7493e63ee29bea2d97d437b2831b6004b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:14 -0400
Subject: [PATCH 024/323] spelling: assigns
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/sl/usermodel/SimpleShape.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/sl/usermodel/SimpleShape.java b/poi/src/main/java/org/apache/poi/sl/usermodel/SimpleShape.java
index 507c3a7efe2..05f6e4499f9 100644
--- a/poi/src/main/java/org/apache/poi/sl/usermodel/SimpleShape.java
+++ b/poi/src/main/java/org/apache/poi/sl/usermodel/SimpleShape.java
@@ -113,7 +113,7 @@ public interface SimpleShape<
Hyperlink getHyperlink();
/**
- * Creates a hyperlink and asigns it to this shape.
+ * Creates a hyperlink and assigns it to this shape.
* If the shape has already a hyperlink assigned, return it instead
*
* @return the hyperlink assigned to this shape
From c41945c99a360c9a32858a6fdd2a80cb544ecedc Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 07:02:13 -0400
Subject: [PATCH 025/323] spelling: associated
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hwpf/dev/HWPFLister.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/dev/HWPFLister.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/dev/HWPFLister.java
index 214af0afa1c..dda54f75349 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/dev/HWPFLister.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/dev/HWPFLister.java
@@ -497,19 +497,19 @@ public void dumpPapx( boolean withProperties, boolean withSprms ) {
}
}
- public void dumpParagraphs( boolean dumpAssotiatedPapx ) {
+ public void dumpParagraphs( boolean dumpAssociatedPapx ) {
for ( Map.Entry entry : paragraphs.entrySet() ) {
Integer endOfParagraphCharOffset = entry.getKey();
System.out.println( "[...; " + ( endOfParagraphCharOffset + 1 )
+ "): " + entry.getValue() );
- if ( dumpAssotiatedPapx ) {
- boolean hasAssotiatedPapx = false;
+ if ( dumpAssociatedPapx ) {
+ boolean hasAssociatedPapx = false;
for ( PAPX papx : _doc.getParagraphTable().getParagraphs() ) {
if ( papx.getStart() <= endOfParagraphCharOffset
&& endOfParagraphCharOffset < papx
.getEnd() ) {
- hasAssotiatedPapx = true;
+ hasAssociatedPapx = true;
System.out.println( "* " + papx );
SprmIterator sprmIt = new SprmIterator(
@@ -517,9 +517,9 @@ public void dumpParagraphs( boolean dumpAssotiatedPapx ) {
dumpSprms( sprmIt, "** " );
}
}
- if ( !hasAssotiatedPapx ) {
+ if ( !hasAssociatedPapx ) {
System.out.println( "* "
- + "NO PAPX ASSOTIATED WITH PARAGRAPH!" );
+ + "NO PAPX ASSOCIATED WITH PARAGRAPH!" );
}
}
}
From a88658efb28dce10f7cd19b9cd5837e707a41e2c Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:16 -0400
Subject: [PATCH 026/323] spelling: attributes
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hwmf/record/HwmfFont.java | 2 +-
.../test/java/org/apache/poi/hslf/model/TestSlideMaster.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 c5ea678edc3..671b0ae159d 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
@@ -224,7 +224,7 @@ public enum WmfFontQuality {
/**
* Specifies that the character quality of the font is less important than the
- * matching of logical attribuetes. For rasterized fonts, scaling SHOULD be enabled, which
+ * matching of logical attributes. For rasterized fonts, scaling SHOULD be enabled, which
* means that more font sizes are available.
*/
DRAFT_QUALITY (0x01),
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 8c00994768b..ab5c3832555 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 attrubutes for different identtation levels.
+ * Varify we can read attributes for different identtation levels.
* (typical for the "bullted body" placeholder)
*/
@Test
From df2225a4209e0b14b00c7fd88bbe635c1e85c512 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:19 -0400
Subject: [PATCH 027/323] spelling: automatically
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hssf/record/chart/TextRecord.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/chart/TextRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/chart/TextRecord.java
index 7c3c8666aaf..c3ffa710159 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/chart/TextRecord.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/chart/TextRecord.java
@@ -389,7 +389,7 @@ public void setTextRotation(short field_12_textRotation)
/**
* Sets the auto color field value.
- * true = automaticly selected colour, false = user-selected
+ * true = automatically selected colour, false = user-selected
*/
public void setAutoColor(boolean value)
{
@@ -397,7 +397,7 @@ public void setAutoColor(boolean value)
}
/**
- * true = automaticly selected colour, false = user-selected
+ * true = automatically selected colour, false = user-selected
* @return the auto color field value.
*/
public boolean isAutoColor()
From 34f05c1e393728bd65578e411bb3ad9c5a603437 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:20 -0400
Subject: [PATCH 028/323] spelling: available
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../poi/poifs/filesystem/DocumentInputStream.java | 14 +++++++-------
.../test/java/org/apache/poi/POIDataSamples.java | 6 +++---
.../apache/poi/ddf/TestUnknownEscherRecord.java | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/DocumentInputStream.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/DocumentInputStream.java
index a4e76fab89e..fb502ead8bb 100644
--- a/poi/src/main/java/org/apache/poi/poifs/filesystem/DocumentInputStream.java
+++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/DocumentInputStream.java
@@ -258,7 +258,7 @@ private boolean atEOD() {
return _current_offset == _document_size;
}
- private void checkAvaliable(int requestedSize) {
+ private void checkAvailable(int requestedSize) {
if (_closed) {
throw new IllegalStateException("cannot perform requested operation on a closed stream");
}
@@ -279,7 +279,7 @@ public void readFully(byte[] buf, int off, int len) {
throw new IllegalArgumentException("Can't read negative number of bytes, but had: " + len);
}
- checkAvaliable(len);
+ checkAvailable(len);
int read = 0;
while(read < len) {
@@ -313,7 +313,7 @@ public double readDouble() {
@Override
public long readLong() {
- checkAvaliable(LONG_SIZE);
+ checkAvailable(LONG_SIZE);
byte[] data = new byte[LONG_SIZE];
readFully(data, 0, LONG_SIZE);
return LittleEndian.getLong(data, 0);
@@ -321,7 +321,7 @@ public long readLong() {
@Override
public short readShort() {
- checkAvaliable(SHORT_SIZE);
+ checkAvailable(SHORT_SIZE);
byte[] data = new byte[SHORT_SIZE];
readFully(data, 0, SHORT_SIZE);
return LittleEndian.getShort(data);
@@ -329,7 +329,7 @@ public short readShort() {
@Override
public int readInt() {
- checkAvaliable(INT_SIZE);
+ checkAvailable(INT_SIZE);
byte[] data = new byte[INT_SIZE];
readFully(data, 0, INT_SIZE);
return LittleEndian.getInt(data);
@@ -342,7 +342,7 @@ public long readUInt() {
@Override
public int readUShort() {
- checkAvaliable(SHORT_SIZE);
+ checkAvailable(SHORT_SIZE);
byte[] data = new byte[SHORT_SIZE];
readFully(data, 0, SHORT_SIZE);
return LittleEndian.getUShort(data);
@@ -350,7 +350,7 @@ public int readUShort() {
@Override
public int readUByte() {
- checkAvaliable(1);
+ checkAvailable(1);
byte[] data = new byte[1];
readFully(data, 0, 1);
if (data[0] >= 0)
diff --git a/poi/src/test/java/org/apache/poi/POIDataSamples.java b/poi/src/test/java/org/apache/poi/POIDataSamples.java
index d96e2f264ee..19dc199139b 100644
--- a/poi/src/test/java/org/apache/poi/POIDataSamples.java
+++ b/poi/src/test/java/org/apache/poi/POIDataSamples.java
@@ -52,7 +52,7 @@ public final class POIDataSamples {
private File _resolvedDataDir;
/** {@code true} if standard system property is not set,
* but the data is available on the test runtime classpath */
- private boolean _sampleDataIsAvaliableOnClassPath;
+ private boolean _sampleDataIsAvailableOnClassPath;
private final String _moduleDir;
/**
@@ -132,7 +132,7 @@ public static POIDataSamples getXmlDSignInstance() {
*/
public InputStream openResourceAsStream(String sampleFileName) {
- if (_sampleDataIsAvaliableOnClassPath) {
+ if (_sampleDataIsAvailableOnClassPath) {
InputStream result = sampleFileName == null ? null :
openClasspathResource(sampleFileName);
if(result == null) {
@@ -196,7 +196,7 @@ private void initialise() {
} catch (IOException e) {
throw new RuntimeException(e);
}
- _sampleDataIsAvaliableOnClassPath = true;
+ _sampleDataIsAvailableOnClassPath = true;
return;
}
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 fa00b7c7392..785162eb5be 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 > avalible bytes
+ //Add by Zhang Zhang test error situation when remaining bytes > available bytes
testData =
"00 02 " + // options
"11 F1 " + // record id
From af2c37e2805cd8bca03430f237f6ab5a81e9197d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:23 -0400
Subject: [PATCH 029/323] spelling: begin
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 8b28ded7359..a1ff55222bb 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
@@ -929,7 +929,7 @@ public static class ConvertImageUnits {
public static final int TOTAL_ROW_COORDINATE_POSITIONS = 255;
// The resoultion of an image can be expressed as a specific number
// of pixels per inch. Displays and printers differ but 96 pixels per
- // inch is an acceptable standard to beging with.
+ // 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
// millimetre. These values are required for the conversion algorithm.
From dee9d2eea73a97e94863893dfaa5eb0182b63c49 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:50:24 -0400
Subject: [PATCH 030/323] spelling: beginning
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 35bb9fb4d71..94d807fb5f0 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 beginng of the Excel's date system
+ // POI seems to conevert '0' to Excel date which is the beginning of the Excel's date system
// evaluate formulas and re-autosize
evaluateWorkbook(workbook);
From 48daf0515eb63c7a566e41069e935574408bba74 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 08:10:13 -0400
Subject: [PATCH 031/323] spelling: behaviors
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/xwpf/usermodel/BreakClear.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/BreakClear.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/BreakClear.java
index 332e9c2d82a..2b13b2139dc 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/BreakClear.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/BreakClear.java
@@ -68,7 +68,7 @@ public enum BreakClear {
*
* 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 extends ObjectShape,?>> 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/src/main/java/org/apache/poi/ss/usermodel/FormulaError.java b/poi/src/main/java/org/apache/poi/ss/usermodel/FormulaError.java
index 744f4afb606..5ffdd6e47e7 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/FormulaError.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/FormulaError.java
@@ -114,7 +114,7 @@ public enum FormulaError {
*/
CIRCULAR_REF(0xFFFFFFC4, "~CIRCULAR~REF~"),
/**
- * POI specific code to indicate that the funcition required is
+ * POI specific code to indicate that the function required is
* not implemented in POI
*/
FUNCTION_NOT_IMPLEMENTED(0xFFFFFFE2, "~FUNCTION~NOT~IMPLEMENTED~");
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java b/poi/src/test/java/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
index 6e5f0645df9..318da092d03 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
@@ -168,7 +168,7 @@ public FunctionDataCollector(PrintStream ps) {
_groupFunctionNames = new HashSet<>();
}
- public void addFuntion(int funcIx, boolean hasFootnote, String funcName, int minParams, int maxParams,
+ public void addFunction(int funcIx, boolean hasFootnote, String funcName, int minParams, int maxParams,
String returnClass, String paramClasses, String volatileFlagStr) {
boolean isVolatile = volatileFlagStr.length() > 0;
@@ -360,7 +360,7 @@ public void processFunction(String[] cellData, Boolean[] noteFlags, int i) {
String paramClasses = cellData[i + 5];
String volatileFlagStr = cellData[i + 6];
- _fdc.addFuntion(funcIx, hasFootnote, funcName, minParams, maxParams, returnClass, paramClasses, volatileFlagStr);
+ _fdc.addFunction(funcIx, hasFootnote, funcName, minParams, maxParams, returnClass, paramClasses, volatileFlagStr);
}
private static int parseInt(String valStr) {
From 38ef2cb04552fdffa5e6abc1700196d7599c5b6f Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:24 -0400
Subject: [PATCH 135/323] spelling: gets whether
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hslf/record/ExEmbedAtom.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExEmbedAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExEmbedAtom.java
index 247b14900d2..de06c9c99ca 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExEmbedAtom.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/ExEmbedAtom.java
@@ -135,7 +135,7 @@ public boolean getNoSizeToServerB() {
}
/**
- * Getswhether the object is a Word table.
+ * Gets whether the object is a Word table.
*
* @return {@code true} if the object is a Word table.
*/
From c1e5548111d4a42301795426749a7b60ee49b952 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:44:25 -0400
Subject: [PATCH 136/323] spelling: github
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
jenkins/create_jobs.groovy | 2 +-
.../org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java | 2 +-
.../java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java | 2 +-
.../org/apache/poi/ss/formula/functions/TestRoundFuncs.java | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 07d6087969d..a9f1a60988b 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -92,7 +92,7 @@ def poijobs = [
[ name: 'POI-DSL-Windows-1.18', jdk: '1.18', trigger: triggerSundays, windows: true, slaves: 'Windows', skipcigame: true,
skipSpotbugs: true
],
- [ name: 'POI-DSL-Github-PullRequests', trigger: '', skipcigame: true, disabled: true
+ [ name: 'POI-DSL-GitHub-PullRequests', trigger: '', skipcigame: true, disabled: true
],
]
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
index 2e8afed92b8..9d57f09ba85 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xdgf/extractor/TestXDGFVisioExtractor.java
@@ -97,7 +97,7 @@ void testPolylineTo() throws IOException {
}
@Test
- void testGithub260() throws IOException {
+ void testGitHub260() throws IOException {
XmlVisioDocument document;
try (InputStream is = SAMPLES.openResourceAsStream("github260.vsdx")) {
document = new XmlVisioDocument(is);
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
index 10ccde01fab..0c736add192 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
@@ -1411,7 +1411,7 @@ void checkNewFileForR1C1Refs() throws IOException {
}
@Test
- void testGithub321() throws Exception {
+ void testGitHub321() throws Exception {
try (XSSFWorkbook wb = openSampleWorkbook("github-321.xlsx")) {
XSSFSheet xssfSheet = wb.getSheetAt(0);
DataFormatter dataFormatter = new DataFormatter();
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java
index df5f033fff7..fdc317560ca 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java
@@ -61,7 +61,7 @@ void testRoundDownWithStringArg() {
}
@Test
- void testGithub321() throws IOException {
+ void testGitHub321() throws IOException {
try (HSSFWorkbook hssfWorkbook = new HSSFWorkbook()) {
HSSFSheet hssfSheet = hssfWorkbook.createSheet();
HSSFRow hssfRow = hssfSheet.createRow(0);
From 84fbe9995dcdd7a09ae4c380815586e0cb55bb1d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:25 -0400
Subject: [PATCH 137/323] spelling: glyphs
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/sl/usermodel/TextRun.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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 4e183ecaf3b..ebb60ea632f 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
@@ -105,7 +105,7 @@ enum FieldType {
/**
* Get the font family - convenience method for {@link #getFontInfo(FontGroup)}
*
- * @param fontGroup the font group, i.e. the range of glpyhs to be covered.
+ * @param fontGroup the font group, i.e. the range of glyphs to be covered.
* if {@code null}, the font group matching the first character will be returned
*
* @return font family or null if not set
@@ -127,7 +127,7 @@ enum FieldType {
*
* @param typeface the font to apply to this text run.
* The value of {@code null} removes the run specific font setting, so the default setting is activated again.
- * @param fontGroup the font group, i.e. the range of glpyhs to be covered.
+ * @param fontGroup the font group, i.e. the range of glyphs to be covered.
* if {@code null}, the font group matching the first character will be returned
*/
void setFontFamily(String typeface, FontGroup fontGroup);
@@ -135,7 +135,7 @@ enum FieldType {
/**
* Get the font info for the given font group
*
- * @param fontGroup the font group, i.e. the range of glpyhs to be covered.
+ * @param fontGroup the font group, i.e. the range of glyphs to be covered.
* if {@code null}, the font group matching the first character will be returned
* @return font info or {@code null} if not set
*
@@ -148,7 +148,7 @@ enum FieldType {
*
* @param fontInfo the font to apply to this text run.
* The value of {@code null} removes the run specific font setting, so the default setting is activated again.
- * @param fontGroup the font group, i.e. the range of glpyhs to be covered. defaults to latin, if {@code null}.
+ * @param fontGroup the font group, i.e. the range of glyphs to be covered. defaults to latin, if {@code null}.
*
* @since POI 3.17-beta2
*/
From 35bf7b8fb250b2162f7d9565c61df8c6df37abb4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:26 -0400
Subject: [PATCH 138/323] spelling: gradient
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java b/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
index 40c802ccaca..0dbffea34e0 100644
--- a/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
+++ b/poi/src/main/java/org/apache/poi/sl/draw/PathGradientPaint.java
@@ -109,7 +109,7 @@ public class PathGradientContext implements PaintContext {
) {
shape = (Shape)hints.get(Drawable.GRADIENT_SHAPE);
if (shape == null) {
- throw new IllegalPathStateException("PathGradientPaint needs a shape to be set via the rendering hint Drawable.GRADIANT_SHAPE.");
+ throw new IllegalPathStateException("PathGradientPaint needs a shape to be set via the rendering hint Drawable.GRADIENT_SHAPE.");
}
this.deviceBounds = deviceBounds;
From 710b9107e0cae2effec1b23968823b061cd68d29 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 09:42:50 -0400
Subject: [PATCH 139/323] spelling: gradle's
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 2c086de8074..411b1f0cdf1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -367,7 +367,7 @@ subprojects {
// see https://github.com/java9-modularity/gradle-modules-plugin/issues/97
// opposed to the recommendation there, it doesn't work to add ... to the dependencies
// testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.7.1'
- // gradles gradle-worker.jar is still not a JPMS module and thus runs as unnamed module
+ // gradle's gradle-worker.jar is still not a JPMS module and thus runs as unnamed module
'--add-exports','org.junit.platform.commons/org.junit.platform.commons.util=org.apache.poi.poi',
'--add-exports','org.junit.platform.commons/org.junit.platform.commons.util=ALL-UNNAMED',
'--add-exports','org.junit.platform.commons/org.junit.platform.commons.logging=ALL-UNNAMED',
From 035a0b0820f43e946b7372380a50c72990ef0f06 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:28 -0400
Subject: [PATCH 140/323] spelling: greater
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/xwpf/usermodel/XWPFTable.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTable.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
index 82c08e260c6..86d7c771434 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
@@ -263,7 +263,7 @@ public XWPFTableRow createRow() {
/**
* @param pos - index of the row
- * @return the row at the position specified or null if no rows is defined or if the position is greather than the max size of rows array
+ * @return the row at the position specified or null if no rows is defined or if the position is greater than the max size of rows array
*/
public XWPFTableRow getRow(int pos) {
if (pos >= 0 && pos < ctTbl.sizeOfTrArray()) {
From 9aa4a0f810147cbc506ae17ded6e4751a0d2b398 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:29 -0400
Subject: [PATCH 141/323] spelling: groupings
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../apache/poi/hssf/record/aggregates/RowRecordsAggregate.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java
index 2f6a8bd2e58..1bdab86f304 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java
@@ -180,7 +180,7 @@ public int getLastRowNum()
}
/** Returns the number of row blocks.
- * The row blocks are goupings of rows that contain the DBCell record
+ *
The row blocks are groupings of rows that contain the DBCell record
* after them
*/
public int getRowBlockCount() {
From 657dea5fbe03fe3e0762318dc1dcf7d72b305976 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:30 -0400
Subject: [PATCH 142/323] spelling: gutter
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/hssf/model/InternalSheet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 0e05569dd0c..184741f7f42 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
@@ -885,7 +885,7 @@ private static GridsetRecord createGridset() {
}
/**
- * creates the Guts record and sets leftrow/topcol guttter and rowlevelmax/collevelmax to 0
+ * creates the Guts record and sets leftrow/topcol gutter and rowlevelmax/collevelmax to 0
*/
private static GutsRecord createGuts() {
GutsRecord retval = new GutsRecord();
From 338a03b1a66f6d89a42922985ad2a2de720a8311 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:31 -0400
Subject: [PATCH 143/323] spelling: gzipped
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/test/java/org/apache/poi/poifs/storage/RawDataUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/poifs/storage/RawDataUtil.java b/poi/src/test/java/org/apache/poi/poifs/storage/RawDataUtil.java
index 7382c65778e..17f32f24e28 100644
--- a/poi/src/test/java/org/apache/poi/poifs/storage/RawDataUtil.java
+++ b/poi/src/test/java/org/apache/poi/poifs/storage/RawDataUtil.java
@@ -49,7 +49,7 @@ public static byte[] decode(String[] hexDataLines) {
}
/**
- * Decompress previously gziped/base64ed data
+ * Decompress previously gzipped/base64ed data
*
* @param data the gzipped/base64ed data
* @return the raw bytes
From dbfe2ec44e5d8065ef548121f700c1339f5046dc Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:16:42 -0400
Subject: [PATCH 144/323] spelling: has
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java b/poi/src/test/java/org/apache/poi/hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java
index c2f8d8486b1..88b34644eb8 100644
--- a/poi/src/test/java/org/apache/poi/hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java
+++ b/poi/src/test/java/org/apache/poi/hssf/eventusermodel/TestMissingRecordAwareHSSFListener.java
@@ -98,7 +98,7 @@ void testMissingRowRecords() throws IOException {
@Test
void testNoExtraNewLines() throws IOException {
// Load a different file
- // This file has has something in lines 1-33
+ // This file has something in lines 1-33
readRecords("MRExtraLines.xls");
int rowCount=0;
From 1b943379f78f43aec84a5e93604420922b041f3d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:32 -0400
Subject: [PATCH 145/323] spelling: hashtable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java b/poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java
index 263a7c0da95..4bdc9174e97 100644
--- a/poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java
+++ b/poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java
@@ -203,7 +203,7 @@ private static Map createColorsByIndexMap() {
}
/**
- * this function returns all colors in a hastable. It's not implemented as a
+ * this function returns all colors in a hashtable. It's not implemented as a
* static member/statically initialized because that would be dirty in a
* server environment as it is intended. This means you'll eat the time
* it takes to create it once per request but you will not hold onto it
From bcc9e009443cf2a03aedea89787196deac00bd7d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 09:42:12 -0400
Subject: [PATCH 146/323] spelling: help
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java
index 80d89f1ede4..12887c9d237 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/NameRecord.java
@@ -352,7 +352,7 @@ public String getDescriptionText(){
}
/** get the help topic text
- * @return gelp topic text
+ * @return help topic text
*/
public String getHelpTopicText(){
return field_16_help_topic_text;
From d3ca60b4a91ba000dfaf29323cc14315238b1d14 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:34 -0400
Subject: [PATCH 147/323] spelling: hyperlinks
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../apache/poi/examples/xssf/usermodel/HyperlinkExample.java | 2 +-
.../java/org/apache/poi/ss/usermodel/BaseTestHyperlink.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/HyperlinkExample.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/HyperlinkExample.java
index 519631960ed..a95f87f7de3 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/HyperlinkExample.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/HyperlinkExample.java
@@ -88,7 +88,7 @@ public static void main(String[]args) throws IOException {
cell.setHyperlink(link2);
cell.setCellStyle(hlink_style);
- try (FileOutputStream out = new FileOutputStream("hyperinks.xlsx")) {
+ try (FileOutputStream out = new FileOutputStream("hyperlinks.xlsx")) {
wb.write(out);
}
}
diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestHyperlink.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestHyperlink.java
index e5ef5312d9a..dfd19300a5b 100644
--- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestHyperlink.java
+++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestHyperlink.java
@@ -59,7 +59,7 @@ public final void testBasicTypes() throws IOException {
cell = sheet.createRow(1).createCell((short) 0);
cell.setCellValue("File Link");
link = createHelper.createHyperlink(HyperlinkType.FILE);
- link.setAddress("hyperinks-beta4-dump.txt");
+ link.setAddress("hyperlinks-beta4-dump.txt");
cell.setHyperlink(link);
//e-mail link
@@ -90,7 +90,7 @@ public final void testBasicTypes() throws IOException {
assertEquals("https://poi.apache.org/", link.getAddress());
link = sheet.getRow(1).getCell(0).getHyperlink();
- assertEquals("hyperinks-beta4-dump.txt", link.getAddress());
+ assertEquals("hyperlinks-beta4-dump.txt", link.getAddress());
link = sheet.getRow(2).getCell(0).getHyperlink();
assertEquals("mailto:poi@apache.org?subject=Hyperlinks", link.getAddress());
link = sheet.getRow(3).getCell(0).getHyperlink();
From ab76113a7ef1e79f7e93eb33b085ed6081223427 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:35 -0400
Subject: [PATCH 148/323] spelling: identified
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java | 2 +-
.../org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java | 2 +-
.../org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java | 2 +-
.../org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
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 15476e48f3e..aba3070f402 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
@@ -351,7 +351,7 @@ private void buildSlidesAndNotes() {
// SlideAtomsSet for each Notes
// These SlideAtomsSets will not normally contain text
//
- // Having indentified the masters, slides and notes + their orders,
+ // Having identified the masters, slides and notes + their orders,
// we have to go and find their matching records
// We always use the latest versions of these records, and use the
// SlideAtom/NotesAtom to match them with the StyleAtomSet
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
index 30e701aab3a..d6dd8e1f340 100644
--- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
+++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
@@ -416,7 +416,7 @@ void testSlowEvaluate45376() throws Exception {
// much time (~3 sec on Core 2 Duo 2.2GHz)
// short-circuit-if optimisation cuts this down to 255 evaluations which is still too high
// System.err.println("Cell A9 took " + evalCount + " intermediate evaluations");
- assertTrue(evalCount <= 10, "Identifed bug 45376 - Formula evaluator should cache values");
+ assertTrue(evalCount <= 10, "Identified bug 45376 - Formula evaluator should cache values");
// With caching, the evaluationCount is 8 which is exactly the
// number of formula cells that needed to be evaluated.
assertEquals(8, evalCount);
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java
index dec43bd1d92..94037c02b8e 100644
--- a/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java
+++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java
@@ -145,7 +145,7 @@ void testShortCircuitIfEvaluation() throws IOException {
ValueEval ve = evaluator.evaluate(HSSFEvaluationTestHelper.wrapCell(cellA1));
int evalCount = evalListener.getEvalCount();
// Without short-circuit-if evaluation, evaluating cell 'A1' takes 3 extra evaluations (for D1,E1,F1)
- assertNotEquals(6, evalCount, "Identifed bug 48195 - Formula evaluator should short-circuit IF() calculations.");
+ assertNotEquals(6, evalCount, "Identified bug 48195 - Formula evaluator should short-circuit IF() calculations.");
assertEquals(3, evalCount);
assertEquals(2.0, ((NumberEval) ve).getNumberValue(), 0D);
}
diff --git a/poi/src/test/java/org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java b/poi/src/test/java/org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java
index 29662882177..ea587d88f81 100644
--- a/poi/src/test/java/org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java
+++ b/poi/src/test/java/org/apache/poi/poifs/crypt/TestBiff8DecryptingStream.java
@@ -180,7 +180,7 @@ void readHeaderUShort() {
Biff8DecryptingStream bds = st.getBDS();
int hval = bds.readDataSize(); // unencrypted
int nextInt = bds.readInt();
- assertNotEquals(0x8F534029, nextInt, "Indentified bug in key alignment after call to readHeaderUShort()");
+ assertNotEquals(0x8F534029, nextInt, "Identified bug in key alignment after call to readHeaderUShort()");
assertEquals(0x16885243, nextInt);
assertNotEquals(0x283E, hval, "readHeaderUShort() incorrectly decrypted result");
assertEquals(0x504F, hval);
From 27ec465b228ca570e5c61cf8caf3d405a97eecd1 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 09:57:12 -0400
Subject: [PATCH 149/323] spelling: if the
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hemf/record/emf/HemfFont.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfFont.java b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfFont.java
index c7f189f1d54..fec3f672a36 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfFont.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emf/HemfFont.java
@@ -348,7 +348,7 @@ public int init(LittleEndianInputStream leis, long recordSize) throws IOExceptio
}
// A string of 64 Unicode characters that contains the font's full name.
- // Ifthe length of this string is less than 64 characters, a terminating
+ // If the length of this string is less than 64 characters, a terminating
// NULL MUST be present, after which the remainder of this field MUST be ignored.
readBytes = readString(leis, sb, 64);
if (readBytes == -1) {
From ae57880ac2501f834781f847056ee43d3fc3bb81 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:38 -0400
Subject: [PATCH 150/323] spelling: implausibly
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hslf/record/CurrentUserAtom.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/CurrentUserAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/CurrentUserAtom.java
index 70e422b838e..94f4fe4b063 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/CurrentUserAtom.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/CurrentUserAtom.java
@@ -125,7 +125,7 @@ public CurrentUserAtom(DirectoryNode dir) throws IOException {
// If it's clearly junk, bail out
if(docProps.getSize() > 131072) {
- throw new CorruptPowerPointFileException("The Current User stream is implausably long. It's normally 28-200 bytes long, but was " + docProps.getSize() + " bytes");
+ throw new CorruptPowerPointFileException("The Current User stream is implausibly long. It's normally 28-200 bytes long, but was " + docProps.getSize() + " bytes");
}
// Grab the contents
From 1a84f74c7766f1fa74d49456e2ebfb53bffedc82 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:39 -0400
Subject: [PATCH 151/323] spelling: implemented
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/ss/formula/functions/TestSubtotal.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestSubtotal.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestSubtotal.java
index 0cfc46f0dc1..750996a7f58 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestSubtotal.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestSubtotal.java
@@ -495,7 +495,7 @@ void testUnimplemented() throws IOException {
Sheet sh = wb.createSheet();
Cell b4 = sh.createRow(3).createCell(1);
- // formula, throws NotImplemnted?
+ // formula, throws NotImplemented?
String[][] formulas = {
{ "SUBTOTAL(0,B2:B3)", null },
{ "SUBTOTAL(9)", FormulaParseException.class.getName() },
From 8afec5c77e0913156ca1d2cb5b0fb0ee45effb4e Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 09:59:11 -0400
Subject: [PATCH 152/323] spelling: in between
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/util/ArrayUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/util/ArrayUtil.java b/poi/src/main/java/org/apache/poi/util/ArrayUtil.java
index 9878be93caf..3bd6324e0de 100644
--- a/poi/src/main/java/org/apache/poi/util/ArrayUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/ArrayUtil.java
@@ -30,7 +30,7 @@ private ArrayUtil() {}
/**
* Moves a number of entries in an array to another point in the array,
- * shifting those inbetween as required.
+ * shifting those in between as required.
* @param array The array to alter
* @param moveFrom The (0 based) index of the first entry to move
* @param moveTo The (0 based) index of the positition to move to
From 6a8bf87f1d86994ea9da8e20584be9e77954593b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:18:10 -0400
Subject: [PATCH 153/323] spelling: includes
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java
index 535683be6a0..bd3a18a9358 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java
@@ -458,7 +458,7 @@ public AreaReference getCellReferences() {
/**
* Set the area reference for the cells which this table covers. The area
- * includes includes header rows and totals rows. Automatically synchronizes
+ * includes header rows and totals rows. Automatically synchronizes
* any changes by calling {@link #updateHeaders()}.
*
* Note: The area's width should be identical to the amount of columns in
From 218e6fce374a0c69c286cb9d6c50ce607f7344ca Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:41 -0400
Subject: [PATCH 154/323] spelling: increment
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 492f8797a54..5f5d74e02d0 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
@@ -647,7 +647,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet,
// A problem could occur if the image is sized to fit into one or
// more columns. If that occurs, the value in the toColumn variable
// will be in error. To overcome this, there are two options, to
- // ibcrement the toColumn variable's value by one or to pass the
+ // increment the toColumn variable's value by one or to pass the
// total number of co-ordinate positions to the third paramater
// of the ClientAnchorDetail constructor. For no sepcific reason,
// the latter option is used below.
From 7aa23c2ef3834d3c38ead4c163989f0d6624a4e4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:43 -0400
Subject: [PATCH 155/323] spelling: indeed
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 5f5d74e02d0..32a78d5491a 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
@@ -667,7 +667,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet,
// the next column.
overlapMM = reqImageWidthMM - (totalWidthMM - colWidthMM);
- // When the required size is very close indded to the column size,
+ // When the required size is very close indeed to the column size,
// 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.
From 76cc015a0c02e20dcbfaa47e1a038532b194a6b7 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:44 -0400
Subject: [PATCH 156/323] spelling: indentation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/hwpf/usermodel/HWPFList.java | 14 +++++++-------
.../org/apache/poi/hslf/model/TestSlideMaster.java | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java
index 0ba89ec9faf..da7ca4e679b 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/HWPFList.java
@@ -47,7 +47,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
*/
public final class HWPFList
{
- private boolean _ignoreLogicalLeftIdentation;
+ private boolean _ignoreLogicalLeftIndentation;
private LFO _lfo;
private LFOData _lfoData;
private ListData _listData;
@@ -92,7 +92,7 @@ else if ( 0xF802 <= ilfo && ilfo <= 0xFFFF )
int nilfo = ilfo ^ 0xFFFF;
_lfo = listTables.getLfo( nilfo );
_lfoData = listTables.getLfoData( nilfo );
- _ignoreLogicalLeftIdentation = true;
+ _ignoreLogicalLeftIndentation = true;
}
else
{
@@ -174,9 +174,9 @@ public byte getTypeOfCharFollowingTheNumber( char level )
return getLVL( level ).getTypeOfCharFollowingTheNumber();
}
- public boolean isIgnoreLogicalLeftIdentation()
+ public boolean isIgnoreLogicalLeftIndentation()
{
- return _ignoreLogicalLeftIdentation;
+ return _ignoreLogicalLeftIndentation;
}
/**
@@ -204,10 +204,10 @@ public boolean isStartAtOverriden(char level )
&& !lfolvl.isFormatting();
}
- public void setIgnoreLogicalLeftIdentation(
- boolean ignoreLogicalLeftIdentation )
+ public void setIgnoreLogicalLeftIndentation(
+ boolean ignoreLogicalLeftIndentation )
{
- this._ignoreLogicalLeftIdentation = ignoreLogicalLeftIdentation;
+ this._ignoreLogicalLeftIndentation = ignoreLogicalLeftIndentation;
}
/**
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 9a72671aff7..67bb54e84d6 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 identtation levels.
+ * Varify we can read attributes for different indentation levels.
* (typical for the "bulleted body" placeholder)
*/
@Test
From 1d07be6484e788b783e0d08304c3085bb8208e77 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:46 -0400
Subject: [PATCH 157/323] spelling: indicate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hwpf/usermodel/Section.java | 8 ++++----
1 file changed, 4 insertions(+), 4 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 2b2790848ee..45acccf6873 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
@@ -103,7 +103,7 @@ public int getPageWidth()
*
* section.setMarginBottom( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH );
*
- * @param marginWidth A primitive int whose value will indciate how high the margin should
+ * @param marginWidth A primitive int whose value will indicate how high the margin should
* be - in twips.
*/
public void setMarginBottom(int marginWidth)
@@ -118,7 +118,7 @@ public void setMarginBottom(int marginWidth)
*
* section.setMarginLeft( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH );
*
- * @param marginWidth A primitive int whose value will indciate how high the margin should
+ * @param marginWidth A primitive int whose value will indicate how high the margin should
* be - in twips.
*/
public void setMarginLeft(int marginWidth)
@@ -133,7 +133,7 @@ public void setMarginLeft(int marginWidth)
*
* section.setMarginRight( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH );
*
- * @param marginWidth A primitive int whose value will indciate how high the margin should
+ * @param marginWidth A primitive int whose value will indicate how high the margin should
* be - in twips.
*/
public void setMarginRight(int marginWidth)
@@ -148,7 +148,7 @@ public void setMarginRight(int marginWidth)
*
* section.setMarginTop( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH );
*
- * @param marginWidth A primitive int whose value will indciate how high the margin should
+ * @param marginWidth A primitive int whose value will indicate how high the margin should
* be - in twips.
*/
public void setMarginTop(int marginWidth)
From 99c7563e69c58165ed417eaa061996d9a282a306 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:47 -0400
Subject: [PATCH 158/323] spelling: indicates
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 ff3e3c2ed96..f85d1089799 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
@@ -629,7 +629,7 @@ public static void main(String[] args) {
// files should be written, - optionally - the separator character
// 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
+ // that indicates whether the CSV file ought to obey Excel's or UNIX
// conventions with regard to formatting fields that contain embedded
// separator, Speech mark or EOL character(s).
//
From 19ced0540508660cc19f12a24b4c4600dc009068 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:49 -0400
Subject: [PATCH 159/323] spelling: indices
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../poi/xssf/usermodel/helpers/HeaderFooterHelper.java | 2 +-
.../org/apache/poi/hwpf/model/UnhandledDataStructure.java | 2 +-
.../java/org/apache/poi/hslf/record/TestFontCollection.java | 2 +-
.../java/org/apache/poi/hssf/model/InternalWorkbook.java | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/helpers/HeaderFooterHelper.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/helpers/HeaderFooterHelper.java
index 5e3c4ee0240..c2759e04018 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/helpers/HeaderFooterHelper.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/helpers/HeaderFooterHelper.java
@@ -73,7 +73,7 @@ private String[] getParts(String string) {
int rAt = 0;
while(
- // Ensure all indicies get updated, then -1 tested
+ // Ensure all indices get updated, then -1 tested
(lAt = string.indexOf(HeaderFooterEntity_L)) > -2 &&
(cAt = string.indexOf(HeaderFooterEntity_C)) > -2 &&
(rAt = string.indexOf(HeaderFooterEntity_R)) > -2 &&
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/UnhandledDataStructure.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/UnhandledDataStructure.java
index 3e69c5979ae..a56b3fdc24e 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/UnhandledDataStructure.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/UnhandledDataStructure.java
@@ -44,7 +44,7 @@ public UnhandledDataStructure(byte[] buf, int offset, int length)
if (offset < 0 || length < 0)
{
throw new IndexOutOfBoundsException("Offset and Length must both be >= 0, negative " +
- "indicies are not permitted - code is tried to read " + length + " from offset " + offset);
+ "indices are not permitted - code is tried to read " + length + " from offset " + offset);
}
// Save that requested portion of the data
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestFontCollection.java b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestFontCollection.java
index bb7eab1dbbf..1143ae031c8 100644
--- a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestFontCollection.java
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestFontCollection.java
@@ -78,7 +78,7 @@ void testAddFont() {
Record[] child = fonts.getChildRecords();
assertEquals(3, child.length);
- // Check we get the right font name for the indicies
+ // Check we get the right font name for the indices
fi = fonts.getFontInfo(0);
assertNotNull(fi);
assertEquals("Times New Roman", fi.getTypeface());
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 39ea0530a4d..47df1714dd4 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
@@ -497,7 +497,7 @@ public FontRecord createNewFont() {
/**
* Removes the given font record from the
* file's list. This will make all
- * subsequent font indicies drop by one,
+ * subsequent font indices drop by one,
* so you'll need to update those yourself!
*
* @param rec the font record
@@ -840,7 +840,7 @@ public ExtendedFormatRecord getExFormatAt(int index) {
/**
* Removes the given ExtendedFormatRecord record from the
* file's list. This will make all
- * subsequent font indicies drop by one,
+ * subsequent font indices drop by one,
* so you'll need to update those yourself!
*
* @param rec the ExtendedFormatRecord
@@ -853,7 +853,7 @@ public void removeExFormatRecord(ExtendedFormatRecord rec) {
/**
* Removes ExtendedFormatRecord record with given index from the
* file's list. This will make all
- * subsequent font indicies drop by one,
+ * subsequent font indices drop by one,
* so you'll need to update those yourself!
* @param index of the Extended format record (0-based)
*/
From c9dfed708df9ae00a7dd43a4f845eb28169ce956 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:50 -0400
Subject: [PATCH 160/323] spelling: individual
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hssf/record/ExtendedFormatRecord.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 0a26c51d03b..4a25c52e6d2 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
@@ -1613,7 +1613,7 @@ public short getAdtlFillPattern()
// fill palette options
/**
- * get the fill palette options bitmask (see indivdual bit getters that
+ * get the fill palette options bitmask (see individual bit getters that
* reference this method)
*
* @return options
From c3b1927583b93c612505e9d096cf1fc0ed70fb93 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 09:58:29 -0400
Subject: [PATCH 161/323] spelling: init
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
index 05f81eaf69f..c2fc8d4264e 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
@@ -374,7 +374,7 @@ static ValueEval getValueFromNonFormulaCell(EvaluationCell cell) {
String dbgIndentStr = ""; // always init. to non-null just for defensive avoiding NPE
if (dbgEvaluationOutputForNextEval) {
- // first evaluation call when ouput is desired, so iit. this evaluator instance
+ // first evaluation call when ouput is desired, so init. this evaluator instance
dbgEvaluationOutputIndent = 1;
dbgEvaluationOutputForNextEval = true;
}
From 45b1f74f455597222ce1b9d0288738fc03dc41b0 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:51 -0400
Subject: [PATCH 162/323] spelling: inner
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hwmf/usermodel/HwmfPicture.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 f821461734b..6a6f4f0bc94 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
@@ -161,7 +161,7 @@ public void draw(Graphics2D ctx, Rectangle2D graphicsBounds) {
state.backup(ctx);
try {
Rectangle2D wmfBounds = getBounds();
- Rectangle2D innerBounds = getInnnerBounds();
+ Rectangle2D innerBounds = getInnerBounds();
if (innerBounds == null) {
innerBounds = wmfBounds;
}
@@ -204,7 +204,7 @@ public Rectangle2D getBounds() {
if (placeableHeader != null) {
return placeableHeader.getBounds();
}
- Rectangle2D inner = getInnnerBounds();
+ Rectangle2D inner = getInnerBounds();
if (inner != null) {
return inner;
}
@@ -216,7 +216,7 @@ public Rectangle2D getBounds() {
*
* @return the bounding box or null, if the WmfSetWindowOrg/Ext records aren't set
*/
- public Rectangle2D getInnnerBounds() {
+ public Rectangle2D getInnerBounds() {
WmfSetWindowOrg wOrg = null;
WmfSetWindowExt wExt = null;
for (HwmfRecord r : getRecords()) {
From d9cc1d2065589d18a7e4233dba47394c453a5fe5 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:54 -0400
Subject: [PATCH 163/323] spelling: instantiate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hslf/record/Record.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/Record.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/Record.java
index 1b07189f024..295e1125b16 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/Record.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/Record.java
@@ -166,7 +166,7 @@ public static Record createRecordForType(long type, byte[] b, int start, int len
// We use the RecordTypes class to provide us with the right
// class to use for a given type
// A spot of reflection gets us the (byte[],int,int) constructor
- // From there, we instanciate the class
+ // From there, we instantiate the class
// Any special record handling occurs once we have the class
RecordTypes recordType = RecordTypes.forTypeID((short) type);
RecordConstructor c = recordType.recordConstructor;
From c26fcd1a2e5b81ce8878af078800b373f967a626 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:55 -0400
Subject: [PATCH 164/323] spelling: interchangeably
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java
index 267f6b68759..f544f2abbd6 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java
@@ -148,7 +148,7 @@ static void unCompressTAPOperation (TableProperties newTAP, SprmOperation sprm)
short itcMac = grpprl[offset];
short[] rgdxaCenter = new short[itcMac + 1];
TableCellDescriptor[] rgtc = new TableCellDescriptor[itcMac];
- //I use varParam[0] and newTAP._itcMac interchangably
+ //I use varParam[0] and newTAP._itcMac interchangeably
newTAP.setItcMac (itcMac);
newTAP.setRgdxaCenter (rgdxaCenter);
newTAP.setRgtc (rgtc);
From e185cae87dacdfdf663ea27632b812c2c98e9788 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:17:19 -0400
Subject: [PATCH 165/323] spelling: into
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hslf/record/SlidePersistAtom.java | 2 +-
.../main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlidePersistAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlidePersistAtom.java
index 28638211a85..8c69fc8cd33 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlidePersistAtom.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlidePersistAtom.java
@@ -107,7 +107,7 @@ protected SlidePersistAtom(byte[] source, int start, int len) {
slideIdentifier = LittleEndian.getInt(source,start+20);
// Finally you have typically 4 or 8 bytes of reserved fields,
- // all zero running from 24 bytes in to the end
+ // all zero running from 24 bytes into the end
reservedFields = IOUtils.safelyClone(source,start+24, len-24, MAX_RECORD_LENGTH);
}
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 aba3070f402..b46ff0e026d 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
@@ -795,7 +795,7 @@ public HSLFSlide createSlide() {
slide.setSlideShow(this);
slide.onCreate();
- // Add in to the list of Slides
+ // Add into the list of Slides
_slides.add(slide);
LOG.atInfo().log("Added slide {} with ref {} and identifier {}", box(_slides.size()),box(sp.getRefID()),box(sp.getSlideIdentifier()));
From 0a7836182265eef891953a50f7722ec44f0ca84e Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:56 -0400
Subject: [PATCH 166/323] spelling: invocation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hssf/model/InternalWorkbook.java | 2 +-
poi/src/main/java/org/apache/poi/hssf/model/LinkTable.java | 2 +-
.../main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java | 2 +-
3 files changed, 3 insertions(+), 3 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 47df1714dd4..a8bdac196ee 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
@@ -2232,7 +2232,7 @@ record = new RecalcIdRecord();
* Changes an external referenced file to another file.
* A formular in Excel which refers a cell in another file is saved in two parts:
* The referenced file is stored in an reference table. the row/cell information is saved separate.
- * This method invokation will only change the reference in the lookup-table itself.
+ * This method invocation will only change the reference in the lookup-table itself.
* @param oldUrl The old URL to search for and which is to be replaced
* @param newUrl The URL replacement
* @return true if the oldUrl was found and replaced with newUrl. Otherwise false
diff --git a/poi/src/main/java/org/apache/poi/hssf/model/LinkTable.java b/poi/src/main/java/org/apache/poi/hssf/model/LinkTable.java
index fe5848ca53a..558fe587c0f 100644
--- a/poi/src/main/java/org/apache/poi/hssf/model/LinkTable.java
+++ b/poi/src/main/java/org/apache/poi/hssf/model/LinkTable.java
@@ -682,7 +682,7 @@ private int findRefIndexFromExtBookIndex(int extBookIndex) {
* Changes an external referenced file to another file.
* A formular in Excel which refers a cell in another file is saved in two parts:
* The referenced file is stored in an reference table. the row/cell information is saved separate.
- * This method invokation will only change the reference in the lookup-table itself.
+ * This method invocation will only change the reference in the lookup-table itself.
*
* @param oldUrl The old URL to search for and which is to be replaced
* @param newUrl The URL replacement
diff --git a/poi/src/main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java b/poi/src/main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java
index 25e88304347..c6703d84dee 100644
--- a/poi/src/main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java
+++ b/poi/src/main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java
@@ -26,7 +26,7 @@ public interface CellHandler {
/**
* @param cell current cell
- * @param ctx information about invokation context
+ * @param ctx information about invocation context
*/
void onCell(Cell cell, CellWalkContext ctx);
From e1c6f14841d585e29339874c2a00b4a139a3b82a Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:52:57 -0400
Subject: [PATCH 167/323] spelling: isosceles
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hssf/usermodel/HSSFShapeTypes.java | 2 +-
poi/src/main/java/org/apache/poi/sl/usermodel/ShapeType.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeTypes.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeTypes.java
index d72b4003d1b..b87902bbddb 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeTypes.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFShapeTypes.java
@@ -23,7 +23,7 @@ public interface HSSFShapeTypes {
public static final int RoundRectangle = 2;
public static final int Ellipse = 3;
public static final int Diamond = 4;
- public static final int IsocelesTriangle = 5;
+ public static final int IsoscelesTriangle = 5;
public static final int RightTriangle = 6;
public static final int Parallelogram = 7;
public static final int Trapezoid = 8;
diff --git a/poi/src/main/java/org/apache/poi/sl/usermodel/ShapeType.java b/poi/src/main/java/org/apache/poi/sl/usermodel/ShapeType.java
index 31ab5011ae6..6b4ad2b7f15 100644
--- a/poi/src/main/java/org/apache/poi/sl/usermodel/ShapeType.java
+++ b/poi/src/main/java/org/apache/poi/sl/usermodel/ShapeType.java
@@ -26,7 +26,7 @@ public enum ShapeType {
NOT_PRIMITIVE(-1, 0, "NotPrimitive"),
LINE(1, 20, "Line"),
LINE_INV(2, -1, null),
- TRIANGLE(3, 5, "IsocelesTriangle"),
+ TRIANGLE(3, 5, "IsoscelesTriangle"),
RT_TRIANGLE(4, 6, "RightTriangle"),
RECT(5, 1, "Rectangle"),
DIAMOND(6, 4, "Diamond"),
From a94ed36a70905352234b24fa0a501bd2678aa897 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:00 -0400
Subject: [PATCH 168/323] spelling: justification
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/wp/usermodel/Paragraph.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/wp/usermodel/Paragraph.java b/poi/src/main/java/org/apache/poi/wp/usermodel/Paragraph.java
index be488a2ef8a..bce7da24361 100644
--- a/poi/src/main/java/org/apache/poi/wp/usermodel/Paragraph.java
+++ b/poi/src/main/java/org/apache/poi/wp/usermodel/Paragraph.java
@@ -27,7 +27,7 @@ public interface Paragraph {
// public boolean isTableRowEnd();
// public int getTableLevel();
- // TODO Implement justifaction in XWPF
+ // TODO Implement justification in XWPF
// public int getJustification();
// public void setJustification(byte jc);
From 880b1ab8c9ae05bc36654b8eb4e7ad633d4f0956 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:01 -0400
Subject: [PATCH 169/323] spelling: length
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/util/IOUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/util/IOUtils.java b/poi/src/main/java/org/apache/poi/util/IOUtils.java
index 51281d4bbaf..7bb89b43ab3 100644
--- a/poi/src/main/java/org/apache/poi/util/IOUtils.java
+++ b/poi/src/main/java/org/apache/poi/util/IOUtils.java
@@ -567,7 +567,7 @@ public static byte[] safelyClone(byte[] src, int offset, int length, int maxLeng
if (offset < 0 || length < 0 || maxLength < 0) {
throw new RecordFormatException("Invalid offset/length specified: "
- + "offset: " + offset + ", lenght: " + length + ", maxLength: " + maxLength);
+ + "offset: " + offset + ", length: " + length + ", maxLength: " + maxLength);
}
int realLength = Math.min(src.length - offset, length);
From 6e59e0191ca05c4798d9ba567730912039936409 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:02 -0400
Subject: [PATCH 170/323] spelling: lookup
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/xslf/usermodel/TestXSLFTextShape.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextShape.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextShape.java
index 397db98d12c..d4bba228720 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextShape.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTextShape.java
@@ -220,7 +220,7 @@ void verifySlide2(XSLFSlide slide){
assertNull(getSpPr(shape2).getXfrm());
XSLFTextShape masterShape2 = (XSLFTextShape)layout.getPlaceholder(ph2);
- // anchor of the body text is missing in the slide layout, llokup in the slide master
+ // anchor of the body text is missing in the slide layout, lookup in the slide master
assertNull(getSpPr(masterShape2).getXfrm());
masterShape2 = (XSLFTextShape)layout.getSlideMaster().getPlaceholder(ph2);
assertNotNull(getSpPr(masterShape2).getXfrm());
From a953c31f2ca7a244725a4cbeb92deb1ed2554f63 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:04 -0400
Subject: [PATCH 171/323] spelling: magnification
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/examples/hssf/usermodel/ZoomSheet.java | 2 +-
.../main/java/org/apache/poi/hssf/record/WindowTwoRecord.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/ZoomSheet.java b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/ZoomSheet.java
index a3ddcc2f5f5..aedb0f4a020 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/ZoomSheet.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/ZoomSheet.java
@@ -26,7 +26,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
/**
- * Sets the zoom magnication for a sheet.
+ * Sets the zoom magnification for a sheet.
*/
public class ZoomSheet
{
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 37ef9151cf8..c894a0691c6 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
@@ -415,7 +415,7 @@ public int getHeaderColor()
}
/**
- * zoom magification in page break view
+ * zoom magnification in page break view
* @return zoom
*/
public short getPageBreakZoom()
From 3bc7dda35557b55c6e2e8a3c1b61eca23e83af63 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:06 -0400
Subject: [PATCH 172/323] spelling: mandatory
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../test/java/org/apache/poi/hssf/usermodel/SanityChecker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
index 22d0676d511..0c8287f3043 100644
--- a/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
+++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
@@ -87,7 +87,7 @@ private int matchOptional(int firstRecord, List extends RecordBase> records, i
}
private int matchRequired(int firstRecord, List extends RecordBase> records, int recordIdx) {
- assertNotEquals(-1, firstRecord, "Manditory record missing or out of order: " + record);
+ assertNotEquals(-1, firstRecord, "Mandatory record missing or out of order: " + record);
return matchOneOrMany(records, firstRecord);
}
From dbf1d47aeb67a81a2579e0ac5a10d21c6ac70ea4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 10:21:35 -0400
Subject: [PATCH 173/323] spelling: margin
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hssf/record/TopMarginRecord.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/TopMarginRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/TopMarginRecord.java
index 05aaab3f8e5..3fa2dc4f6ef 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/TopMarginRecord.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/TopMarginRecord.java
@@ -79,6 +79,6 @@ public HSSFRecordTypes getGenericRecordType() {
@Override
public Map> getGenericProperties() {
- return GenericRecordUtil.getGenericProperties("magin", this::getMargin);
+ return GenericRecordUtil.getGenericProperties("margin", this::getMargin);
}
}
\ No newline at end of file
From db21c105abb9ef26fbb6186ec81bfdb104a6dcbc Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:08 -0400
Subject: [PATCH 174/323] spelling: margins
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/xwpf/usermodel/XWPFSettings.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 696935db164..2f365da237a 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
@@ -464,7 +464,7 @@ public boolean getMirrorMargins() {
* Turn mirrored margins on or off
*
* @param enable {@code true} to turn on mirrored margins,
- * {@code false} to turn off mirrored marginss.
+ * {@code false} to turn off mirrored margins.
*/
public void setMirrorMargins(boolean enable) {
CTOnOff onOff = CTOnOff.Factory.newInstance();
From a479368d5cf7bf8c57a4879fefa5cac0a76e2f9d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:09 -0400
Subject: [PATCH 175/323] spelling: maximum
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/hssf/record/common/TestUnicodeString.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/hssf/record/common/TestUnicodeString.java b/poi/src/test/java/org/apache/poi/hssf/record/common/TestUnicodeString.java
index 8abd514c6cd..0ab322f4e35 100644
--- a/poi/src/test/java/org/apache/poi/hssf/record/common/TestUnicodeString.java
+++ b/poi/src/test/java/org/apache/poi/hssf/record/common/TestUnicodeString.java
@@ -131,7 +131,7 @@ void perfectStringSize() {
confirmSize(MAX_DATA_SIZE, s);
//Test an uncompressed string
- //Note that we can only ever get to a maximim size of 8227 since an uncompressed
+ //Note that we can only ever get to a maximum size of 8227 since an uncompressed
//string is writing double bytes.
s = makeUnicodeString((MAX_DATA_SIZE-2-1)/2, true);
s.setOptionFlags((byte)0x1);
From fc54d42b16385c44a9c99be1aa017e8b7d19a5ee Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:10 -0400
Subject: [PATCH 176/323] spelling: millisec
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java b/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
index bead9cef3c1..e4b5f1ee754 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
@@ -58,7 +58,7 @@ private DateUtil() {
private static final BigDecimal BD_NANOSEC_DAY = BigDecimal.valueOf(SECONDS_PER_DAY * 1e9);
- private static final BigDecimal BD_MILISEC_RND = BigDecimal.valueOf(0.5 * 1e6);
+ private static final BigDecimal BD_MILLISEC_RND = BigDecimal.valueOf(0.5 * 1e6);
private static final BigDecimal BD_SECOND_RND = BigDecimal.valueOf(0.5 * 1e9);
private static final Pattern TIME_SEPARATOR_PATTERN = Pattern.compile(":");
@@ -433,7 +433,7 @@ else if (wholeDays < 61) {
long nanosTime =
bd.subtract(BigDecimal.valueOf(wholeDays))
.multiply(BD_NANOSEC_DAY)
- .add(roundSeconds ? BD_SECOND_RND : BD_MILISEC_RND)
+ .add(roundSeconds ? BD_SECOND_RND : BD_MILLISEC_RND)
.longValue();
ldt = ldt.plusNanos(nanosTime);
From e14a13ce8d94bc834fa9bd5839f1ae52d8ad128b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:11 -0400
Subject: [PATCH 177/323] spelling: minimum
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java | 2 +-
.../main/java/org/apache/poi/hssf/record/DimensionsRecord.java | 2 +-
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +-
.../main/java/org/apache/poi/ss/util/CellRangeAddressBase.java | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
index f7db5c755d1..e96084e97a5 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
@@ -191,7 +191,7 @@ protected void setDefaultPivotTableDefinition() {
pivotTableDefinition.setIndent(0);
//The pivot version which created the pivot cache set to default value
pivotTableDefinition.setCreatedVersion(CREATED_VERSION);
- //Minimun version required to update the pivot cache
+ //Minimum version required to update the pivot cache
pivotTableDefinition.setMinRefreshableVersion(MIN_REFRESHABLE_VERSION);
//Version of the application which "updated the spreadsheet last"
pivotTableDefinition.setUpdatedVersion(UPDATED_VERSION);
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/DimensionsRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/DimensionsRecord.java
index b12d0087860..9dec628eb85 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/DimensionsRecord.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/DimensionsRecord.java
@@ -28,7 +28,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
import org.apache.poi.util.LittleEndianOutput;
/**
- * Provides the minumum and maximum bounds of a sheet.
+ * Provides the minimum and maximum bounds of a sheet.
*
* @version 2.0-pre
*/
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 10357822531..858927732d2 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
@@ -2088,7 +2088,7 @@ public void removeColumnBreak(int column) {
protected void validateRow(int row) {
int maxrow = SpreadsheetVersion.EXCEL97.getLastRowIndex();
if (row > maxrow) throw new IllegalArgumentException("Maximum row number is " + maxrow);
- if (row < 0) throw new IllegalArgumentException("Minumum row number is 0");
+ if (row < 0) throw new IllegalArgumentException("Minimum row number is 0");
}
/**
diff --git a/poi/src/main/java/org/apache/poi/ss/util/CellRangeAddressBase.java b/poi/src/main/java/org/apache/poi/ss/util/CellRangeAddressBase.java
index d8852221c47..e3a3b0049f0 100644
--- a/poi/src/main/java/org/apache/poi/ss/util/CellRangeAddressBase.java
+++ b/poi/src/main/java/org/apache/poi/ss/util/CellRangeAddressBase.java
@@ -86,7 +86,7 @@ public void validate(SpreadsheetVersion ssVersion) {
private static void validateRow(int row, SpreadsheetVersion ssVersion) {
int maxrow = ssVersion.getLastRowIndex();
if (row > maxrow) throw new IllegalArgumentException("Maximum row number is " + maxrow);
- if (row < 0) throw new IllegalArgumentException("Minumum row number is 0");
+ if (row < 0) throw new IllegalArgumentException("Minimum row number is 0");
}
/**
From 515b4c595b17afa700f56940ee57afefcec4e2d2 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:14 -0400
Subject: [PATCH 178/323] spelling: modified
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/ss/usermodel/BaseTestCellComment.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCellComment.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCellComment.java
index 4dde615f648..8629ecd7a3a 100644
--- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCellComment.java
+++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestCellComment.java
@@ -197,7 +197,7 @@ public final void modifyComments() throws IOException {
row = sheet.getRow(rownum);
cell = row.getCell(1);
comment = cell.getCellComment();
- comment.setAuthor("Mofified[" + rownum + "] by Yegor");
+ comment.setAuthor("Modified[" + rownum + "] by Yegor");
comment.setString(factory.createRichTextString("Modified comment at row " + rownum));
}
@@ -210,7 +210,7 @@ public final void modifyComments() throws IOException {
cell = row.getCell(1);
comment = cell.getCellComment();
- assertEquals("Mofified[" + rownum + "] by Yegor", comment.getAuthor());
+ assertEquals("Modified[" + rownum + "] by Yegor", comment.getAuthor());
assertEquals("Modified comment at row " + rownum, comment.getString().getString());
}
From 3a753e01fa092a53b17a900421287e42d30e8136 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:33:22 -0400
Subject: [PATCH 179/323] spelling: more
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/hssf/usermodel/HSSFPalette.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPalette.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPalette.java
index 4089ebcd8a1..02d0875217e 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPalette.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPalette.java
@@ -159,7 +159,7 @@ public void setColorAtIndex(short index, byte red, byte green, byte blue)
*
* @return The new custom color.
*
- * @throws IllegalStateException if there are more more free color indexes.
+ * @throws IllegalStateException if there are more free color indexes.
*/
public HSSFColor addColor( byte red, byte green, byte blue )
{
From de1656ce4a36524b28b95173334f4045f51549f5 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 07:02:54 -0400
Subject: [PATCH 180/323] spelling: multi
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/examples/hssf/usermodel/InCellLists.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java
index 28c03a9bc4a..e58ee49e43f 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/hssf/usermodel/InCellLists.java
@@ -45,7 +45,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
* Though different methods are provided to construct single and multi-level
* plain, numbered and bulleted lists, close examination will reveal that they
* are not strictly necessary. If the inputs to the listInCell() and
- * multilLevelListInCell() methods are constructed to include the bullet
+ * multiLevelListInCell() methods are constructed to include the bullet
* character or the item numbers then these methods alone may be sufficient.
*/
@SuppressWarnings({"java:S106","java:S4823"})
From 7ab44a70fadc31a0187553d84cc3401d82bef2cf Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:17 -0400
Subject: [PATCH 181/323] spelling: multiple
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/hsmf/extractor/TestOutlookTextExtractor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 489b94c8594..abbc73e4c26 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
@@ -122,7 +122,7 @@ void testConstructors() throws Exception {
* recipients in an email we sent.
*/
@Test
- void testSentWithMulipleRecipients() throws Exception {
+ void testSentWithMultipleRecipients() throws Exception {
// To: 'Ashutosh Dandavate' ,
// 'Paul Holmes-Higgin' ,
// 'Mike Farman'
From e495b179e6ca797da7ce05a970d9b9082a7f459f Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:18 -0400
Subject: [PATCH 182/323] spelling: multiplied
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
index cadcfc8de13..d5ec5385f59 100644
--- a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
+++ b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
@@ -598,7 +598,7 @@ private static short rotateLeftBase15Bit(short verifier) {
*/
short intermediate1 = (short)(((verifier & 0x4000) == 0) ? 0 : 1);
/*
- * SET Intermediate2 TO Verifier MULTIPLED BY 2
+ * SET Intermediate2 TO Verifier MULTIPLIED BY 2
* SET most significant bit of Intermediate2 TO 0
*/
short intermediate2 = (short)((verifier<<1) & 0x7FFF);
From 9006908b337c5166a7126c7e7302ed66390cf2d8 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:20 -0400
Subject: [PATCH 183/323] spelling: multiplier
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hssf/usermodel/EscherGraphics2d.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/EscherGraphics2d.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/EscherGraphics2d.java
index 6fdfdbf9e6d..7935ad5d8ea 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/EscherGraphics2d.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/EscherGraphics2d.java
@@ -60,7 +60,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
* you issue commands such as drawString(). A good way to calculate this
* is to use the follow formula:
* {@code
- * multipler = groupHeightInPoints / heightOfGroup
+ * multiplier = groupHeightInPoints / heightOfGroup
* }
*
* The height of the group is calculated fairly simply by calculating the
From d138ac8ee8b060c101a791d92ca5a42c41052f80 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:21 -0400
Subject: [PATCH 184/323] spelling: multiply
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 836ed32bae3..ec2d1d9d978 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
@@ -84,7 +84,7 @@ void testAddIntegers() throws IOException {
* Multiply various integers
*/
@Test
- void testMultplyIntegers() throws IOException {
+ void testMultiplyIntegers() throws IOException {
binomialOperator("*");
}
From 60540c83056c97db328a1839e046d2688bef77b8 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:24 -0400
Subject: [PATCH 185/323] spelling: necessarily
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/hssf/util/package-info.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/util/package-info.java b/poi/src/main/java/org/apache/poi/hssf/util/package-info.java
index 4ac9c8f6f61..52c8fb77a75 100644
--- a/poi/src/main/java/org/apache/poi/hssf/util/package-info.java
+++ b/poi/src/main/java/org/apache/poi/hssf/util/package-info.java
@@ -16,6 +16,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more
==================================================================== */
/**
- * The util package contains tools needed for writing HSSF files that are not necesarily "real" HSSF concepts.
+ * The util package contains tools needed for writing HSSF files that are not necessarily "real" HSSF concepts.
*/
package org.apache.poi.hssf.util;
From 6c3aff4a3de366e88c3d4e5a5596307b8aca450e Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 19 Jun 2023 14:44:57 -0400
Subject: [PATCH 186/323] spelling: nonexistent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../poi/ss/excelant/util/TestExcelAntWorkbookUtil.java | 8 ++++----
.../java/org/apache/poi/xssf/usermodel/TestXSSFFont.java | 2 +-
.../org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java | 2 +-
.../apache/poi/hssf/extractor/TestOldExcelExtractor.java | 2 +-
poi/src/test/java/org/apache/poi/util/TestIOUtils.java | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java
index 545801c7229..db9aa44ac0f 100644
--- a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java
+++ b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java
@@ -62,8 +62,8 @@ void testStringConstructor() {
@Test
void testLoadNotExistingFile() {
- BuildException e = assertThrows(BuildException.class, () -> new ExcelAntWorkbookUtilTestHelper("notexistingFile"));
- assertTrue(e.getMessage().contains("notexistingFile"));
+ BuildException e = assertThrows(BuildException.class, () -> new ExcelAntWorkbookUtilTestHelper("nonexistentFile"));
+ assertTrue(e.getMessage().contains("nonexistentFile"));
}
@Test
@@ -295,11 +295,11 @@ void testSetString() {
@Test
void testSetNotExistingSheet() {
- String cell = "'NotexistingSheet'!C14" ;
+ String cell = "'NonexistentSheet'!C14" ;
fixture = new ExcelAntWorkbookUtilTestHelper(mortgageCalculatorFileName);
BuildException e = assertThrows(BuildException.class, () -> fixture.setStringValue(cell, "some"));
- assertTrue(e.getMessage().contains("NotexistingSheet"));
+ assertTrue(e.getMessage().contains("NonexistentSheet"));
}
@Test
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFFont.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFFont.java
index 6c62954cc73..afbeda95bb5 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFFont.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFFont.java
@@ -377,7 +377,7 @@ void testCanComputeWidthXSSF() throws IOException {
@Test
void testCanComputeWidthInvalidFont() {
Font font = new XSSFFont(CTFont.Factory.newInstance());
- font.setFontName("some non existing font name");
+ font.setFontName("some nonexistent font name");
// Even with invalid fonts we still get back useful data most of the time...
assertDoesNotThrow(() -> SheetUtil.canComputeColumnWidth(font));
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
index 0c736add192..a5253f06a02 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
@@ -1119,7 +1119,7 @@ void getTable() throws IOException {
// If workbook does not contain any data tables matching the provided name, getTable should return null
assertNull(wb.getTable(null), "Null table name should not throw NPE");
- assertNull(wb.getTable("Foglio1"), "Should not be able to find non-existent table");
+ assertNull(wb.getTable("Foglio1"), "Should not be able to find nonexistent table");
// If a table is added after getTable is called it should still be reachable by XSSFWorkbook.getTable
// This test makes sure that if any caching is done that getTable never uses a stale cache
diff --git a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
index 91c7a36513c..3e63bd5db3b 100644
--- a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
+++ b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
@@ -252,7 +252,7 @@ void testOpenInvalidFile1() throws IOException {
@Test
void testOpenNonExistingFile() {
// a file that exists, but is a different format
- assertThrows(EmptyFileException.class, () -> new OldExcelExtractor(new File("notexistingfile.xls")).close());
+ assertThrows(EmptyFileException.class, () -> new OldExcelExtractor(new File("nonexistentfile.xls")).close());
}
@Test
diff --git a/poi/src/test/java/org/apache/poi/util/TestIOUtils.java b/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
index bb12f9932e4..c005a68aefa 100644
--- a/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
+++ b/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
@@ -274,7 +274,7 @@ void testCopyToInvalidFile() throws IOException {
assertThrows(RuntimeException.class,
() -> {
// try with two different paths so we fail on both Unix and Windows
- IOUtils.copy(is, new File("/notexisting/directory/structure"));
+ IOUtils.copy(is, new File("/nonexistent/directory/structure"));
IOUtils.copy(is, new File("c:\\note&/()\"§=§%&!§$81§0_:;,.-'#*+~`?ß´ß0´ß9243xisting\\directory\\structure"));
});
}
From 27bd555d141741794e238e0c88f720265a6b8edc Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 10:44:32 -0400
Subject: [PATCH 187/323] spelling: numbering
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
index 4e9c89dd376..27a414d9e07 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
@@ -584,7 +584,7 @@ public void setBulletStyle(Object... styles) {
} else if (ostyle instanceof String) {
setBulletFont((String)ostyle);
} else if (ostyle instanceof AutoNumberingScheme) {
- throw new HSLFException("setting bullet auto-numberin scheme for HSLF not supported ... yet");
+ throw new HSLFException("setting bullet auto-numbering scheme for HSLF not supported ... yet");
}
}
}
From 953f6af67fc43da11f64de4a1100c232f30575d3 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:28 -0400
Subject: [PATCH 188/323] spelling: numeric
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java b/poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java
index 87567743e49..fd53a1482b5 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java
@@ -46,7 +46,7 @@ void setup() {
}
@Test
- void testNumbericArgsWorkCorrectly() {
+ void testNumericArgsWorkCorrectly() {
confirmResult(fe, cell, "IFNA(-1,42)", new CellValue(-1.0));
confirmResult(fe, cell, "IFNA(NA(),42)", new CellValue(42.0));
}
From c0cfe1e9f53d690f5f42df42e3d743784206d7b6 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 10:46:25 -0400
Subject: [PATCH 189/323] spelling: object
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hwpf/model/types/CHPAbstractType.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/CHPAbstractType.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/CHPAbstractType.java
index 4e9c83f585d..b19b469f6a4 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/CHPAbstractType.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/types/CHPAbstractType.java
@@ -2181,7 +2181,7 @@ public boolean isFStrike()
/**
* Sets the fObj field value.
- * Embedded objec
+ * Embedded object
*/
@Internal
public void setFObj( boolean value )
@@ -2190,7 +2190,7 @@ public void setFObj( boolean value )
}
/**
- * Embedded objec
+ * Embedded object
* @return the fObj field value.
*/
@Internal
From fceb855ca1626cd21bb58c4166f32d7642e88da4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:29 -0400
Subject: [PATCH 190/323] spelling: occurred
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hwpf/usermodel/Picture.java | 2 +-
poi/src/main/java/org/apache/poi/hpsf/UnicodeString.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
index 7ba7892b283..dda4f590077 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
@@ -592,7 +592,7 @@ public PictureType suggestPictureType() {
* @param out
* a stream to write to
* @throws IOException
- * if some exception is occured while writing to specified out
+ * if some exception is occurred while writing to specified out
*/
public void writeImageContent( OutputStream out ) throws IOException
{
diff --git a/poi/src/main/java/org/apache/poi/hpsf/UnicodeString.java b/poi/src/main/java/org/apache/poi/hpsf/UnicodeString.java
index e89e47e5a03..5641596714d 100644
--- a/poi/src/main/java/org/apache/poi/hpsf/UnicodeString.java
+++ b/poi/src/main/java/org/apache/poi/hpsf/UnicodeString.java
@@ -81,7 +81,7 @@ public String toJavaString() {
}
if ( terminator != result.length() - 1 ) {
- LOG.atWarn().log("String terminator (\\0) for UnicodeString property value occured before the end of " +
+ LOG.atWarn().log("String terminator (\\0) for UnicodeString property value occurred before the end of " +
"string. Trimming and hope for the best.");
}
return result.substring( 0, terminator );
From 12f3d608dcebd316c6972446223aa0028d307616 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:30 -0400
Subject: [PATCH 191/323] spelling: occurrence
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../poi/hssf/model/InternalWorkbook.java | 4 ++--
.../poi/hssf/usermodel/SanityChecker.java | 22 +++++++++----------
2 files changed, 13 insertions(+), 13 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 a8bdac196ee..53e2a84351f 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
@@ -1735,7 +1735,7 @@ public int createFormat(String formatString) {
/**
- * Returns the first occurance of a record matching a particular sid.
+ * Returns the first occurrence of a record matching a particular sid.
*
* @param sid the sid
*
@@ -1767,7 +1767,7 @@ public int findFirstRecordLocBySid(short sid) {
}
/**
- * Returns the next occurance of a record matching a particular sid.
+ * Returns the next occurrence of a record matching a particular sid.
*
* @param sid the sid
* @param pos specifies the n-th matching sid
diff --git a/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java b/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
index 0c8287f3043..9cb7772854b 100644
--- a/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
+++ b/poi/src/test/java/org/apache/poi/hssf/usermodel/SanityChecker.java
@@ -36,21 +36,21 @@ Licensed to the Apache Software Foundation (ASF) under one or more
public class SanityChecker {
static class CheckRecord {
Class extends RecordBase> record;
- char occurance; // 1 = one time, M = 1..many times, * = 0..many, 0 = optional
+ char occurrence; // 1 = one time, M = 1..many times, * = 0..many, 0 = optional
private final boolean together;
- public CheckRecord(Class extends RecordBase> record, char occurance) {
- this(record, occurance, true);
+ public CheckRecord(Class extends RecordBase> record, char occurrence) {
+ this(record, occurrence, true);
}
/**
* @param record The record type to check
- * @param occurance The occurance 1 = occurs once, M = occurs many times
+ * @param occurrence The occurrence 1 = occurs once, M = occurs many times
* @param together
*/
- public CheckRecord(Class extends RecordBase> record, char occurance, boolean together) {
+ public CheckRecord(Class extends RecordBase> record, char occurrence, boolean together) {
this.record = record;
- this.occurance = occurance;
+ this.occurrence = occurrence;
this.together = together;
}
@@ -59,15 +59,15 @@ public Class extends RecordBase> getRecord() {
}
public boolean isRequired() {
- return occurance == '1' || occurance == 'M';
+ return occurrence == '1' || occurrence == 'M';
}
public boolean isOptional() {
- return occurance == '0' || occurance == '*';
+ return occurrence == '0' || occurrence == '*';
}
public boolean isMany() {
- return occurance == '*' || occurance == 'M';
+ return occurrence == '*' || occurrence == 'M';
}
public int match(List extends RecordBase> records, int recordIdx) {
@@ -111,11 +111,11 @@ private int matchOneOrMany(List extends RecordBase> records, int recordIdx) {
}
private boolean isZeroToMany() {
- return occurance == '*' || occurance == 'M';
+ return occurrence == '*' || occurrence == 'M';
}
private boolean isZeroOrOne() {
- return occurance == '0' || occurance == '1';
+ return occurrence == '0' || occurrence == '1';
}
}
From 94a22c179ebddcd8aea2dbd6ae02a9edc53e837c Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:31 -0400
Subject: [PATCH 192/323] spelling: occurring
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 32a78d5491a..3ce4000a94a 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
@@ -669,7 +669,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet,
// When the required size is very close indeed to the column size,
// the calculation above can produce a negative value. To prevent
- // problems occuring in later calculations, this is simply removed
+ // problems occurring in later calculations, this is simply removed
// be setting the overlapMM value to zero.
if (overlapMM < 0) {
overlapMM = 0.0D;
From 62329831bf5510f4202c7381b97454d969f2d8e3 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:32 -0400
Subject: [PATCH 193/323] spelling: occurs
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java
index ec60fdfae3e..7a4c01dc664 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java
@@ -73,7 +73,7 @@ public void setEscapementType(short escapementType){
}
/**
- * XMLBeans and the XSD make this look like it can have multiple values, but it is maxOccurrs=1.
+ * XMLBeans and the XSD make this look like it can have multiple values, but it is maxOccurs=1.
* Use get*Array(), it is much faster than get*List().
*
* @see org.apache.poi.ss.usermodel.FontFormatting#isStruckout()
From 4ebba9298c95a4931fed8a78388ea21faac8a1aa Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 14:05:05 -0400
Subject: [PATCH 194/323] spelling: office binary file format
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/test/java/org/apache/poi/hwpf/usermodel/TestBugs.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBugs.java b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBugs.java
index be98329282c..8cd3ab517aa 100644
--- a/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBugs.java
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hwpf/usermodel/TestBugs.java
@@ -592,7 +592,7 @@ void testBug51944() throws Exception {
@CsvSource({
// Bug 51834 - Opening and Writing .doc file results in corrupt document
// we don't have Java test for this file - it should be checked using
- // Microsoft BFF Validator. But check read-write-read anyway. -- sergey
+ // Microsoft Office Binary File Format Validator. But check read-write-read anyway. -- sergey
"Bug51834.doc, true",
// Bug 52032 - ArrayIndexOutOfBoundsException with no stack trace (broken after revision 1178063)
"Bug52032_1.doc, true",
From 5f8c7ee4970dfe38d4d8166e23af6a1bc600d66b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:34 -0400
Subject: [PATCH 195/323] spelling: offset
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hwpf/usermodel/Picture.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
index dda4f590077..280776eaeae 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
@@ -93,7 +93,7 @@ private static boolean matchSignature( byte[] pictureData,
private final List extends EscherRecord> _blipRecords;
private byte[] content;
- private int dataBlockStartOfsset;
+ private int dataBlockStartOffset;
private int height = -1;
private int width = -1;
@@ -112,11 +112,11 @@ public Picture( EscherBlipRecord blipRecord )
* Builds a Picture object for a Picture stored in the
* DataStream
*/
- public Picture( int dataBlockStartOfsset, byte[] _dataStream, boolean fillBytes ) { // NOSONAR
- _picfAndOfficeArtData = new PICFAndOfficeArtData( _dataStream, dataBlockStartOfsset );
+ public Picture( int dataBlockStartOffset, byte[] _dataStream, boolean fillBytes ) { // NOSONAR
+ _picfAndOfficeArtData = new PICFAndOfficeArtData( _dataStream, dataBlockStartOffset );
_picf = _picfAndOfficeArtData.getPicf();
- this.dataBlockStartOfsset = dataBlockStartOfsset;
+ this.dataBlockStartOffset = dataBlockStartOffset;
_blipRecords = _picfAndOfficeArtData.getBlipRecords();
@@ -457,7 +457,7 @@ public int getSize()
*/
public int getStartOffset()
{
- return dataBlockStartOfsset;
+ return dataBlockStartOffset;
}
/**
@@ -524,7 +524,7 @@ public String suggestFileExtension()
public String suggestFullFileName()
{
String fileExt = suggestFileExtension();
- return Integer.toHexString( dataBlockStartOfsset )
+ return Integer.toHexString( dataBlockStartOffset )
+ ( fileExt.length() > 0 ? "." + fileExt : "" );
}
From be8523bffe6b6834c6dbf0f059da4b337b3b3f28 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:35 -0400
Subject: [PATCH 196/323] spelling: operation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java
index 372393945e9..513beb9ac70 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java
@@ -148,7 +148,7 @@ private static Integer getIstd( byte[] grpprl, int offset )
*
* @param oldCHP The base CharacterProperties.
* @param newCHP The current CharacterProperties.
- * @param sprm an SPRM opearation
+ * @param sprm an SPRM operation
*/
static void unCompressCHPOperation (CharacterProperties oldCHP,
CharacterProperties newCHP,
From ac2b1450a912f643252befc3b44dee3dd9cfc09b Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:36 -0400
Subject: [PATCH 197/323] spelling: optional
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/ss/formula/functions/TestDec2Hex.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDec2Hex.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDec2Hex.java
index be11a2b8012..072abee6a12 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDec2Hex.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDec2Hex.java
@@ -79,7 +79,7 @@ void testBasic() {
confirmValue("If argument places contains a decimal value, dec2hex ignores the numbers to the right side of the decimal point.", "100","10.0", "0000000064");
confirmValue("Converts decimal -54 to hexadecimal, 2 is ignored","-54", "2", "FFFFFFFFCA");
- confirmValue("places is optionnal","-54", "FFFFFFFFCA");
+ confirmValue("places is optional","-54", "FFFFFFFFCA");
confirmValue("Converts normal decimal number to hexadecimal", "100", "64");
From 4e82b09e8a237fe02063a7f1c9ebf2d93cabe410 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:37 -0400
Subject: [PATCH 198/323] spelling: original
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/hslf/usermodel/HSLFPictureShape.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFPictureShape.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFPictureShape.java
index 416fe4147bc..0cad2fae9b8 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFPictureShape.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFPictureShape.java
@@ -181,7 +181,7 @@ public void setPictureName(String name){
}
/**
- * By default set the orininal image size
+ * By default set the original image size
*/
@Override
protected void afterInsert(HSLFSheet sh){
From dd1455427aefa97d226aa2b08091954058240d9d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:38 -0400
Subject: [PATCH 199/323] spelling: outline
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java b/poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java
index a570b9f892c..180c17669b2 100644
--- a/poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java
+++ b/poi/src/main/java/org/apache/poi/sl/draw/SLGraphics.java
@@ -1516,7 +1516,7 @@ public void drawString(AttributedCharacterIterator iterator, float x, float y) {
* @param s the Shape
to check for a hit
* @param onStroke flag used to choose between testing the
* stroked or the filled shape. If the flag is true
, the
- * Stroke
oultine is tested. If the flag is
+ * Stroke
outline is tested. If the flag is
* false
, the filled Shape
is tested.
* @return true
if there is a hit; false
* otherwise.
From 0b150f1c730d1aca41b5819668357eaafe95d94d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:40 -0400
Subject: [PATCH 200/323] spelling: output
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hslf/dev/PPTXMLDump.java | 2 +-
.../main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/dev/PPTXMLDump.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/dev/PPTXMLDump.java
index 7940dae77d4..db38c841c33 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/dev/PPTXMLDump.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/dev/PPTXMLDump.java
@@ -200,7 +200,7 @@ public static void main(String[] args) throws Exception {
if (arg.startsWith("-")) {
if ("-f".equals(arg)) {
- //write ouput to a file
+ //write output to a file
outFile = true;
}
} else {
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
index c2fc8d4264e..ca5978943ef 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
@@ -374,7 +374,7 @@ static ValueEval getValueFromNonFormulaCell(EvaluationCell cell) {
String dbgIndentStr = ""; // always init. to non-null just for defensive avoiding NPE
if (dbgEvaluationOutputForNextEval) {
- // first evaluation call when ouput is desired, so init. this evaluator instance
+ // first evaluation call when output is desired, so init. this evaluator instance
dbgEvaluationOutputIndent = 1;
dbgEvaluationOutputForNextEval = true;
}
From 9cc737995fb6a4d087259d61861336bca1cafbf1 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:42 -0400
Subject: [PATCH 201/323] spelling: overwritten
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/ss/usermodel/BaseTestSheet.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheet.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheet.java
index 61aceb97cba..cd2af1e7bb5 100644
--- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheet.java
+++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheet.java
@@ -96,20 +96,20 @@ protected void createRow() throws IOException {
assertEquals(3, sheet.getPhysicalNumberOfRows());
// Test overwriting an existing row
- Row row2_ovrewritten = sheet.createRow(1);
- Cell cell = row2_ovrewritten.createCell(0);
+ Row row2_overwritten = sheet.createRow(1);
+ Cell cell = row2_overwritten.createCell(0);
cell.setCellValue(100);
Iterator it2 = sheet.rowIterator();
assertTrue(it2.hasNext());
assertSame(row1, it2.next());
assertTrue(it2.hasNext());
- Row row2_ovrewritten_ref = it2.next();
- assertSame(row2_ovrewritten, row2_ovrewritten_ref);
- assertEquals(100.0, row2_ovrewritten_ref.getCell(0).getNumericCellValue(), 0.0);
+ Row row2_overwritten_ref = it2.next();
+ assertSame(row2_overwritten, row2_overwritten_ref);
+ assertEquals(100.0, row2_overwritten_ref.getCell(0).getNumericCellValue(), 0.0);
Spliterator split2 = sheet.spliterator();
assertTrue(split2.tryAdvance(row -> assertSame(row1, row)));
assertTrue(split2.tryAdvance(row -> {
- assertSame(row2_ovrewritten, row);
+ assertSame(row2_overwritten, row);
assertEquals(100.0, row.getCell(0).getNumericCellValue(), 0.0);
}));
}
From ac762b2c7ba529dd125bfd94a33bbd6ada9e22cb Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:44 -0400
Subject: [PATCH 202/323] spelling: palette
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hwmf/record/HwmfPalette.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPalette.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPalette.java
index efaa774497f..d2cd8d70dbc 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPalette.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPalette.java
@@ -167,7 +167,7 @@ int getPaletteStart() {
public Map> getGenericProperties() {
return GenericRecordUtil.getGenericProperties(
"paletteStart", this::getPaletteStart,
- "pallete", this::getPaletteCopy
+ "palette", this::getPaletteCopy
);
}
}
From 66a6c5099287fe0f08869a6780bf36b1c04f9ec4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:45 -0400
Subject: [PATCH 203/323] spelling: paragraph
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../java/org/apache/poi/xwpf/usermodel/PositionInParagraph.java | 2 +-
.../src/main/java/org/apache/poi/hwpf/model/StyleSheet.java | 2 +-
.../java/org/apache/poi/hslf/record/TestStyleTextPropAtom.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/PositionInParagraph.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/PositionInParagraph.java
index 4cd688c2055..e07d9b07379 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/PositionInParagraph.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/PositionInParagraph.java
@@ -19,7 +19,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
/**
- * postion of a character in a paragrapho
+ * postion of a character in a paragraph
* 1st RunPositon
* 2nd TextPosition
* 3rd CharacterPosition
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/StyleSheet.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/StyleSheet.java
index 348c23677fd..7813f2b5b76 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/StyleSheet.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/model/StyleSheet.java
@@ -193,7 +193,7 @@ public int hashCode() {
}
/**
- * Creates a PartagraphProperties object from a papx stored in the
+ * Creates a ParagraphProperties object from a papx stored in the
* StyleDescription at the index istd in the StyleDescription array. The PAP
* is placed in the StyleDescription at istd after its been created. Not
* every StyleDescription will contain a papx. In these cases this function
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 1f6f185935a..3880b6a2b25 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
@@ -72,7 +72,7 @@ public final class TestStyleTextPropAtom {
0, 0x18, 0, 0, // mask is 0x1800
0, 0, // left aligned
0x50, 0, // line spacing 80
- 0x1C, 0, 0, 0, // paragprah is 28 long
+ 0x1C, 0, 0, 0, // paragraph is 28 long
0, 0, // paragraph reserved field
0, 0x10, 0, 0, // mask is 0x1000
0x50, 0, // line spacing 80
From de492cd81babec4d5b5aee18c21ba28607b50edc Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:48 -0400
Subject: [PATCH 204/323] spelling: paragraphs
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../apache/poi/hwpf/converter/AbstractWordConverter.java | 2 +-
.../org/apache/poi/hwpf/converter/WordToFoConverter.java | 4 ++--
.../org/apache/poi/hwpf/converter/WordToHtmlConverter.java | 6 +++---
.../org/apache/poi/hwpf/converter/WordToTextConverter.java | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/AbstractWordConverter.java
index d6f410d2865..41595393b99 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/AbstractWordConverter.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/AbstractWordConverter.java
@@ -911,7 +911,7 @@ protected abstract void processParagraph(HWPFDocumentCore wordDocument,
Element parentElement, int currentTableLevel, Paragraph paragraph,
String bulletText);
- protected void processParagraphes(HWPFDocumentCore wordDocument, Element flow, Range range, int currentTableLevel) {
+ protected void processParagraphs(HWPFDocumentCore wordDocument, Element flow, Range range, int currentTableLevel) {
final int paragraphs = range.numParagraphs();
for (int p = 0; p < paragraphs; p++) {
Paragraph paragraph = range.getParagraph(p);
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToFoConverter.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToFoConverter.java
index fb96e1eb363..4ae0b12d9ca 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToFoConverter.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToFoConverter.java
@@ -463,7 +463,7 @@ protected void processSection( HWPFDocumentCore wordDocument,
Element flow = foDocumentFacade.addFlowToPageSequence( pageSequence,
"xsl-region-body" );
- processParagraphes( wordDocument, flow, section, Integer.MIN_VALUE );
+ processParagraphs( wordDocument, flow, section, Integer.MIN_VALUE );
if ( endnotes != null && !endnotes.isEmpty() )
{
@@ -532,7 +532,7 @@ protected void processTable( HWPFDocumentCore wordDocument, Element flow,
tableCellElement.setAttribute( "number-rows-spanned",
String.valueOf( rowSpan ) );
- processParagraphes( wordDocument, tableCellElement, tableCell,
+ processParagraphs( wordDocument, tableCellElement, tableCell,
table.getTableLevel() );
if ( !tableCellElement.hasChildNodes() )
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToHtmlConverter.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToHtmlConverter.java
index e829a997ece..b738cb3b56a 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToHtmlConverter.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToHtmlConverter.java
@@ -599,7 +599,7 @@ protected void processSection( HWPFDocumentCore wordDocument,
htmlDocumentFacade.addStyleClass( div, "d", getSectionStyle( section ) );
htmlDocumentFacade.getBody().appendChild( div );
- processParagraphes( wordDocument, div, section, Integer.MIN_VALUE );
+ processParagraphs( wordDocument, div, section, Integer.MIN_VALUE );
}
@Override
@@ -609,7 +609,7 @@ protected void processSingleSection( HWPFDocumentCore wordDocument,
htmlDocumentFacade.addStyleClass( htmlDocumentFacade.getBody(), "b",
getSectionStyle( section ) );
- processParagraphes( wordDocument, htmlDocumentFacade.getBody(), section,
+ processParagraphs( wordDocument, htmlDocumentFacade.getBody(), section,
Integer.MIN_VALUE );
}
@@ -688,7 +688,7 @@ protected void processTable( HWPFDocumentCore hwpfDocument, Element flow,
String.valueOf( rowSpan ) );
}
- processParagraphes( hwpfDocument, tableCellElement, tableCell,
+ processParagraphs( hwpfDocument, tableCellElement, tableCell,
table.getTableLevel() );
if ( !tableCellElement.hasChildNodes() )
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java
index ddd7ff68d58..d0618c8a2a5 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java
@@ -407,7 +407,7 @@ protected void processSection( HWPFDocumentCore wordDocument,
Section section, int s )
{
Element sectionElement = textDocumentFacade.createBlock();
- processParagraphes( wordDocument, sectionElement, section,
+ processParagraphs( wordDocument, sectionElement, section,
Integer.MIN_VALUE );
sectionElement.appendChild( textDocumentFacade.createText( "\n" ) );
textDocumentFacade.body.appendChild( sectionElement );
From a750ca8ee954c232080e30d59a434d283b77265a Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:49 -0400
Subject: [PATCH 205/323] spelling: parameter
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/examples/ss/AddDimensionedImage.java | 2 +-
.../src/main/java/org/apache/poi/examples/ss/ToCSV.java | 6 +++---
2 files changed, 4 insertions(+), 4 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 3ce4000a94a..8603e5ec628 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
@@ -648,7 +648,7 @@ private ClientAnchorDetail calculateColumnLocation(Sheet sheet,
// more columns. If that occurs, the value in the toColumn variable
// will be in error. To overcome this, there are two options, to
// increment the toColumn variable's value by one or to pass the
- // total number of co-ordinate positions to the third paramater
+ // total number of co-ordinate positions to the third parameter
// of the ClientAnchorDetail constructor. For no sepcific reason,
// the latter option is used below.
if (sheet instanceof HSSFSheet) {
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 f85d1089799..aeafbb55ef8 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
@@ -183,7 +183,7 @@ public class ToCSV {
* problems during processing.
* @throws java.lang.IllegalArgumentException Thrown if the values passed
* to the strSource parameter refers to a file or folder that does not
- * exist or if the value passed to the strDestination paramater refers
+ * exist or if the value passed to the strDestination parameter refers
* to a folder that does not exist or simply does not refer to a
* folder.
*/
@@ -223,7 +223,7 @@ public void convertExcelToCSV(String strSource, String strDestination)
* problems during processing.
* @throws java.lang.IllegalArgumentException Thrown if the values passed
* to the strSource parameter refers to a file or folder that does not
- * exist or if the value passed to the strDestination paramater refers
+ * exist or if the value passed to the strDestination parameter refers
* to a folder that does not exist or simply does not refer to a
* folder.
*/
@@ -266,7 +266,7 @@ public void convertExcelToCSV(String strSource, String strDestination,
* problems during processing.
* @throws java.lang.IllegalArgumentException Thrown if the values passed
* to the strSource parameter refers to a file or folder that does not
- * exist, if the value passed to the strDestination paramater refers
+ * exist, if the value passed to the strDestination parameter refers
* to a folder that does not exist, if the value passed to the
* strDestination parameter does not refer to a folder or if the
* value passed to the formattingConvention parameter is other than
From 830321f5c826a78bde9d0cfa19a8f5956e1a1624 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 11:03:22 -0400
Subject: [PATCH 206/323] spelling: password
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
index d5ec5385f59..a0d82738d41 100644
--- a/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
+++ b/poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java
@@ -111,7 +111,7 @@ public static byte[] hashPassword(String password, HashAlgorithm hashAlgorithm,
* The difference is, read protection uses the order iterator then hash in the hash loop, whereas write protection
* uses first the last hash value and then the current iterator value
*
- * @param password the pasword
+ * @param password the password
* @param hashAlgorithm the hash algorithm
* @param salt the initial salt value
* @param spinCount the repetition count
From 73a7fd2a5ce52a7b7e1924a5520f66d2d8330927 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:50 -0400
Subject: [PATCH 207/323] spelling: patriarch
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 e4a7914b5c7..bc14e0b1453 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
@@ -1104,7 +1104,7 @@ public void afterRecordSerialize(int offset, short recordId, int size, EscherRec
spEndingOffsets.add(0, 0);
// Split escher records into separate MSODRAWING and OBJ, TXO records. (We don't break on
- // the first one because it's the patriach).
+ // the first one because it's the patriarch).
pos = offset;
int writtenEscherBytes = 0;
boolean isFirst = true;
From 489704cc1ea5460ef1d6960e1520a9dfe5451169 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:51 -0400
Subject: [PATCH 208/323] spelling: pattern
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../org/apache/poi/hsmf/datatypes/MessageSubmissionChunk.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MessageSubmissionChunk.java b/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MessageSubmissionChunk.java
index 482f8a941b3..e01a7ce5925 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MessageSubmissionChunk.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/MessageSubmissionChunk.java
@@ -41,7 +41,7 @@ public class MessageSubmissionChunk extends Chunk {
private String rawId;
private Calendar date;
- private static final Pattern datePatern = Pattern
+ private static final Pattern datePattern = Pattern
.compile("(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)Z?");
/**
@@ -87,7 +87,7 @@ public void readValue(InputStream value) throws IOException {
}
if (dateS != null) {
// Should be yymmddhhmmssZ
- Matcher m = datePatern.matcher(dateS);
+ Matcher m = datePattern.matcher(dateS);
if (m.matches()) {
date = LocaleUtil.getLocaleCalendar();
From 9c79259747e56056defd8b623f3c7ab2902bceb4 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:53 -0400
Subject: [PATCH 209/323] spelling: percentage
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/xslf/usermodel/XSLFColor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFColor.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFColor.java
index 796a072b9f0..d287cbb1830 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFColor.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFColor.java
@@ -268,7 +268,7 @@ private static int getRawValue(CTSchemeColor phClr, XmlObject xmlObject, String
}
/**
- * Read a perecentage value from the supplied xml bean.
+ * Read a percentage value from the supplied xml bean.
* Example:
*
*
From 50ca46b9541df025d353383e7e5d587741e6adf1 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 11:04:12 -0400
Subject: [PATCH 210/323] spelling: persist
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 b46ff0e026d..504c51873f9 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
@@ -104,7 +104,7 @@ enum LoadSavePhase {
// Pointers to the most recent versions of the core records
// (Document, Notes, Slide etc)
private Record[] _mostRecentCoreRecords;
- // Lookup between the PersitPtr "sheet" IDs, and the position
+ // Lookup between the PersistPtr "sheet" IDs, and the position
// in the mostRecentCoreRecords array
private Map _sheetIdToCoreRecordsLookup;
From 1e67e3d2fa6f51a4df66c6132c0f80c0a0a5f54a Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:54 -0400
Subject: [PATCH 211/323] spelling: phonetic
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 f6dcfe8185f..5527d1cfc23 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
@@ -234,7 +234,7 @@ public void setBottomBorder(boolean f) {
/**
* A bit that specifies whether the phonetic guide feature is enabled for
* any cell in this row.
- * @param f use phoenetic guide
+ * @param f use phonetic guide
*/
public void setPhoeneticGuide(boolean f) {
field_8_option_flags = phoneticGuide.setBoolean(field_8_option_flags, f);
@@ -377,7 +377,7 @@ public boolean getBottomBorder() {
/**
* A bit that specifies whether the phonetic guide feature is enabled for
* any cell in this row.
- * @return has phoentic guide
+ * @return has phonetic guide
*/
public boolean getPhoeneticGuide() {
return phoneticGuide.isSet(field_8_option_flags);
From 5c6352d654d87d5f47ed8a822460308d910a64ef Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:57 -0400
Subject: [PATCH 212/323] spelling: picture
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/hwpf/usermodel/Picture.java | 2 +-
.../java/org/apache/poi/hssf/record/ExternalNameRecord.java | 2 +-
.../org/apache/poi/hssf/record/TestExternalNameRecord.java | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
index 280776eaeae..45b40516b0a 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/usermodel/Picture.java
@@ -484,7 +484,7 @@ public int getWidth()
/**
* returns the description stored in the alternative text
*
- * @return pictue description
+ * @return picture description
*/
public String getDescription()
{
diff --git a/poi/src/main/java/org/apache/poi/hssf/record/ExternalNameRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/ExternalNameRecord.java
index 3b58817cecc..f5bec2e4ca1 100644
--- a/poi/src/main/java/org/apache/poi/hssf/record/ExternalNameRecord.java
+++ b/poi/src/main/java/org/apache/poi/hssf/record/ExternalNameRecord.java
@@ -137,7 +137,7 @@ public boolean isAutomaticLink() {
*
* @return {@code true} if this is a picture link
*/
- public boolean isPicureLink() {
+ public boolean isPictureLink() {
return (field_1_option_flag & OPT_PICTURE_LINK) != 0;
}
/**
diff --git a/poi/src/test/java/org/apache/poi/hssf/record/TestExternalNameRecord.java b/poi/src/test/java/org/apache/poi/hssf/record/TestExternalNameRecord.java
index d165764ea92..8241d793817 100644
--- a/poi/src/test/java/org/apache/poi/hssf/record/TestExternalNameRecord.java
+++ b/poi/src/test/java/org/apache/poi/hssf/record/TestExternalNameRecord.java
@@ -79,7 +79,7 @@ void testAutoStdDocName() {
assertFalse(enr.isBuiltInName());
assertFalse(enr.isIconifiedPictureLink());
assertFalse(enr.isOLELink());
- assertFalse(enr.isPicureLink());
+ assertFalse(enr.isPictureLink());
assertTrue(enr.isStdDocumentNameIdentifier());
confirmRecordEncoding(0x0023, dataAutoDocName, enr.serialize());
@@ -94,7 +94,7 @@ void testPlainName() {
assertFalse(enr.isBuiltInName());
assertFalse(enr.isIconifiedPictureLink());
assertFalse(enr.isOLELink());
- assertFalse(enr.isPicureLink());
+ assertFalse(enr.isPictureLink());
assertFalse(enr.isStdDocumentNameIdentifier());
confirmRecordEncoding(0x0023, dataPlainName, enr.serialize());
From 183ddc07209fd99edcab356d249ca20cdd2e1e88 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 06:53:59 -0400
Subject: [PATCH 213/323] spelling: placeholder
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../src/main/java/org/apache/poi/examples/xslf/Tutorial1.java | 2 +-
.../java/org/apache/poi/hslf/record/OEPlaceholderAtom.java | 4 ++--
.../java/org/apache/poi/sl/usermodel/PlaceholderDetails.java | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xslf/Tutorial1.java b/poi-examples/src/main/java/org/apache/poi/examples/xslf/Tutorial1.java
index d1b4768a1c9..8afbbb1085c 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/xslf/Tutorial1.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/xslf/Tutorial1.java
@@ -60,7 +60,7 @@ public static void main(String[] args) throws IOException{
XSLFTextShape titlePlaceholder2 = ph2[0];
titlePlaceholder2.setText("This is a title");
XSLFTextShape bodyPlaceholder = ph2[1];
- // we are going to add text by paragraphs. Clear the default placehoder text before that
+ // we are going to add text by paragraphs. Clear the default placeholder text before that
bodyPlaceholder.clearText();
XSLFTextParagraph p1 = bodyPlaceholder.addNewTextParagraph();
p1.setIndentLevel(0);
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OEPlaceholderAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OEPlaceholderAtom.java
index 28247886a77..cedf9081c36 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OEPlaceholderAtom.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/OEPlaceholderAtom.java
@@ -97,7 +97,7 @@ public OEPlaceholderAtom(){
* Returns the placement Id.
*
* The placement Id is a number assigned to the placeholder. It goes from -1 to the number of placeholders.
- * It SHOULD be unique among all PlacholderAtom records contained in the corresponding slide.
+ * It SHOULD be unique among all PlaceholderAtom records contained in the corresponding slide.
* The value 0xFFFFFFFF specifies that the corresponding shape is not a placeholder shape.
*
* @return the placement Id.
@@ -110,7 +110,7 @@ public int getPlacementId(){
* Sets the placement Id.
*
* The placement Id is a number assigned to the placeholder. It goes from -1 to the number of placeholders.
- * It SHOULD be unique among all PlacholderAtom records contained in the corresponding slide.
+ * It SHOULD be unique among all PlaceholderAtom records contained in the corresponding slide.
* The value 0xFFFFFFFF specifies that the corresponding shape is not a placeholder shape.
*
* @param id the placement Id.
diff --git a/poi/src/main/java/org/apache/poi/sl/usermodel/PlaceholderDetails.java b/poi/src/main/java/org/apache/poi/sl/usermodel/PlaceholderDetails.java
index 5a4a9478206..bf601214e3c 100644
--- a/poi/src/main/java/org/apache/poi/sl/usermodel/PlaceholderDetails.java
+++ b/poi/src/main/java/org/apache/poi/sl/usermodel/PlaceholderDetails.java
@@ -21,7 +21,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
import java.time.format.DateTimeFormatter;
/**
- * Extended details about placholders
+ * Extended details about placeholders
*
* @since POI 4.0.0
*/
From b5f50966e1018820244d1392aafc1a04338dd5ed Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Fri, 23 Jun 2023 11:04:45 -0400
Subject: [PATCH 214/323] spelling: platform
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java
index a589855795b..d56ca2c559d 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/util/PPTX2PNG.java
@@ -82,7 +82,7 @@ private static void usage(String error){
" -charset sets the default charset to be used, defaults to Windows-1252\n" +
" -emfHeaderBounds force the usage of the emf header bounds to calculate the bounding box\n" +
" -fontdir (PDF only) font directories separated by \";\" - use $HOME for current users home dir\n" +
- " defaults to the usual plattform directories\n" +
+ " defaults to the usual platform directories\n" +
" -fontTtf (PDF only) regex to match the .ttf filenames\n" +
" -fontMap
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