aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-06-27 11:48:38 +0000
committerPJ Fanning <fanningpj@apache.org>2023-06-27 11:48:38 +0000
commit99634d6af6559d280c2a8f61aa9f8230281defe6 (patch)
tree3f2a9b1ab118b7de77bd83cffd037f6fd69a8ec3 /poi
parentbfb6ec8e546ff409ad62b406e34eb3ee3cb76813 (diff)
downloadpoi-99634d6af6559d280c2a8f61aa9f8230281defe6.tar.gz
poi-99634d6af6559d280c2a8f61aa9f8230281defe6.zip
apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java2
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java4
-rw-r--r--poi/src/main/java/org/apache/poi/poifs/crypt/CryptoFunctions.java4
-rw-r--r--poi/src/main/java/org/apache/poi/sl/draw/DrawNothing.java2
-rw-r--r--poi/src/main/java/org/apache/poi/sl/draw/DrawShape.java2
-rw-r--r--poi/src/main/java/org/apache/poi/sl/draw/Drawable.java2
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/MatrixFunction.java4
-rw-r--r--poi/src/test/java/org/apache/poi/hssf/record/aggregates/TestFormulaRecordAggregate.java2
-rw-r--r--poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java2
-rw-r--r--poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestRow.java3
-rw-r--r--poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java4
11 files changed, 15 insertions, 16 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 003ad45c6b..424ab6eda8 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
@@ -1719,7 +1719,7 @@ public final class InternalWorkbook {
*/
public int createFormat(String formatString) {
- maxformatid = maxformatid >= 0xa4 ? maxformatid + 1 : 0xa4; //Starting value from M$ empircal study.
+ maxformatid = maxformatid >= 0xa4 ? maxformatid + 1 : 0xa4; //Starting value from M$ empirical study.
FormatRecord rec = new FormatRecord(maxformatid, formatString);
int pos = 0;
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java
index 2c2399445d..0badfb51d1 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java
@@ -136,9 +136,9 @@ public final class HSSFDataFormat implements DataFormat {
String fmt = _formats.size() > index ? _formats.get(index) : null;
if (_builtinFormats.length > index && _builtinFormats[index] != null) {
- // It's in the built in range
+ // It's in the built-in range
if (fmt != null) {
- // It's been overriden, use that value
+ // It's been overridden, use that value
return fmt;
} else {
// Standard built in format
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 28babc0c0f..587d72eca6 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
@@ -277,7 +277,7 @@ public final class CryptoFunctions {
/**
* Returns a new byte array with a truncated to the given size.
- * If the hash has less then size bytes, it will be filled with 0x36-bytes
+ * If the hash has less than size bytes, it will be filled with 0x36-bytes
*
* @param hash the to be truncated/filled hash byte array
* @param size the size of the returned byte array
@@ -289,7 +289,7 @@ public final class CryptoFunctions {
/**
* Returns a new byte array with a truncated to the given size.
- * If the hash has less then size bytes, it will be filled with 0-bytes
+ * If the hash has less than size bytes, it will be filled with 0-bytes
*
* @param hash the to be truncated/filled hash byte array
* @param size the size of the returned byte array
diff --git a/poi/src/main/java/org/apache/poi/sl/draw/DrawNothing.java b/poi/src/main/java/org/apache/poi/sl/draw/DrawNothing.java
index f875da7fc5..b0a0d23dbe 100644
--- a/poi/src/main/java/org/apache/poi/sl/draw/DrawNothing.java
+++ b/poi/src/main/java/org/apache/poi/sl/draw/DrawNothing.java
@@ -33,7 +33,7 @@ public class DrawNothing implements Drawable {
/**
* Apply 2-D transforms before drawing this shape. This includes rotation and flipping.
*
- * @param graphics the graphics whos transform matrix will be modified
+ * @param graphics the graphics whose transform matrix will be modified
*/
public void applyTransform(Graphics2D graphics) {
}
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 05407e6a78..e1ab3bf176 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
@@ -52,7 +52,7 @@ public class DrawShape implements Drawable {
/**
* Apply 2-D transforms before drawing this shape. This includes rotation and flipping.
*
- * @param graphics the graphics whos transform matrix will be modified
+ * @param graphics the graphics whose transform matrix will be modified
*/
@Override
public void applyTransform(Graphics2D graphics) {
diff --git a/poi/src/main/java/org/apache/poi/sl/draw/Drawable.java b/poi/src/main/java/org/apache/poi/sl/draw/Drawable.java
index 7f0a1a6c07..b11397ca4f 100644
--- a/poi/src/main/java/org/apache/poi/sl/draw/Drawable.java
+++ b/poi/src/main/java/org/apache/poi/sl/draw/Drawable.java
@@ -177,7 +177,7 @@ public interface Drawable {
/**
* Apply 2-D transforms before drawing this shape. This includes rotation and flipping.
*
- * @param graphics the graphics whos transform matrix will be modified
+ * @param graphics the graphics whose transform matrix will be modified
*/
void applyTransform(Graphics2D graphics);
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/MatrixFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/MatrixFunction.java
index db7380d9e9..e4bfc14e6d 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/MatrixFunction.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/MatrixFunction.java
@@ -253,7 +253,7 @@ public abstract class MatrixFunction implements Function{
protected double[] collectValues(ValueEval arg) throws EvaluationException {
double[] values = instance.collectValues(arg);
- /* handle case where MDETERM is operating on an array that that is not completely filled*/
+ /* handle case where MDETERM is operating on an array that is not completely filled*/
if (arg instanceof AreaEval && values.length == 1)
throw new EvaluationException(ErrorEval.VALUE_INVALID);
@@ -297,7 +297,7 @@ public abstract class MatrixFunction implements Function{
protected double[] collectValues(ValueEval arg) throws EvaluationException {
double[] values = instance.collectValues(arg);
- /* handle case where MDETERM is operating on an array that that is not completely filled*/
+ /* handle case where MDETERM is operating on an array that is not completely filled*/
if (arg instanceof AreaEval && values.length == 1)
throw new EvaluationException(ErrorEval.VALUE_INVALID);
diff --git a/poi/src/test/java/org/apache/poi/hssf/record/aggregates/TestFormulaRecordAggregate.java b/poi/src/test/java/org/apache/poi/hssf/record/aggregates/TestFormulaRecordAggregate.java
index fb3301e89f..f87fcb286b 100644
--- a/poi/src/test/java/org/apache/poi/hssf/record/aggregates/TestFormulaRecordAggregate.java
+++ b/poi/src/test/java/org/apache/poi/hssf/record/aggregates/TestFormulaRecordAggregate.java
@@ -62,7 +62,7 @@ final class TestFormulaRecordAggregate {
StringRecord sr = new StringRecord();
sr.setString("NA");
SharedValueManager svm = SharedValueManager.createEmpty();
- // bug 46213 -> String record was supplied but formula record flag is not set
+ // bug 46213 -> String record was supplied but formula record flag is not set
FormulaRecordAggregate fra = new FormulaRecordAggregate(fr, sr, svm);
List<org.apache.poi.hssf.record.Record> vraRecs = new ArrayList<>();
fra.visitContainedRecords(vraRecs::add);
diff --git a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java
index c7135da492..10e7759a06 100644
--- a/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java
+++ b/poi/src/test/java/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java
@@ -130,7 +130,7 @@ final class TestPOIFSFileSystem {
* multiple of 512 bytes)
*
* As yet, this problem remains. One school of thought is
- * not not issue an EOF when we discover the last block
+ * to not issue an EOF when we discover the last block
* is short, but this seems a bit wrong.
* The other is to fix the handling of the last block in
* POIFS, since it seems to be slight wrong
diff --git a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestRow.java b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestRow.java
index 878b5ab9e4..8ad953b6eb 100644
--- a/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestRow.java
+++ b/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestRow.java
@@ -282,8 +282,7 @@ public abstract class BaseTestRow {
assertEquals(5, row.getCell(5, MissingCellPolicy.CREATE_NULL_AS_BLANK).getColumnIndex());
- // Now change the cell policy on the workbook, check
- // that that is now used if no policy given
+ // Now change the cell policy on the workbook, check that is now used if no policy given
workbook.setMissingCellPolicy(MissingCellPolicy.RETURN_BLANK_AS_NULL);
assertEquals(CellType.STRING, row.getCell(0).getCellType());
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 5e8a41c1c4..35bb9fb4d7 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
@@ -85,7 +85,7 @@ public abstract class BaseTestSheetAutosizeColumn {
// autosize not-evaluated cells, formula cells are sized as if the result is 0
for (int i = 0; i < 6; i++) sheet.autoSizeColumn(i);
- assertTrue(sheet.getColumnWidth(0) < sheet.getColumnWidth(1)); // width of '0' is less then width of '10'
+ assertTrue(sheet.getColumnWidth(0) < sheet.getColumnWidth(1)); // width of '0' is less than width of '10'
assertEquals(sheet.getColumnWidth(1), sheet.getColumnWidth(2)); // 10 and '10' should be sized equally
assertEquals(sheet.getColumnWidth(3), sheet.getColumnWidth(0)); // formula result is unknown, the width is calculated for '0'
assertEquals(sheet.getColumnWidth(4), sheet.getColumnWidth(5)); // 10.0000 and '10.0000'
@@ -95,7 +95,7 @@ public abstract class BaseTestSheetAutosizeColumn {
for (int i = 0; i < 6; i++) sheet.autoSizeColumn(i);
- assertTrue(sheet.getColumnWidth(0) < sheet.getColumnWidth(1)); // width of '0' is less then width of '10'
+ assertTrue(sheet.getColumnWidth(0) < sheet.getColumnWidth(1)); // width of '0' is less than width of '10'
assertEquals(sheet.getColumnWidth(1), sheet.getColumnWidth(2)); // columns 1, 2 and 3 should have the same width
assertEquals(sheet.getColumnWidth(2), sheet.getColumnWidth(3)); // columns 1, 2 and 3 should have the same width
assertEquals(sheet.getColumnWidth(4), sheet.getColumnWidth(5)); // 10.0000 and '10.0000'