aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-06-27 19:33:13 +0000
committerPJ Fanning <fanningpj@apache.org>2023-06-27 19:33:13 +0000
commitb90935055dbbaeaac6b3f84df228d354a6fc55a8 (patch)
tree0a7bf7c2f812515fd9bf7adb144a641b2148968a /poi
parent99634d6af6559d280c2a8f61aa9f8230281defe6 (diff)
downloadpoi-b90935055dbbaeaac6b3f84df228d354a6fc55a8.tar.gz
poi-b90935055dbbaeaac6b3f84df228d354a6fc55a8.zip
apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/model/InternalWorkbook.java4
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java4
-rw-r--r--poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java2
-rw-r--r--poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestNamedRange.java2
-rw-r--r--poi/src/test/java/org/apache/poi/ss/util/TestSheetUtil.java8
5 files changed, 10 insertions, 10 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 424ab6eda8..39ea0530a4 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 final class InternalWorkbook {
}
/**
- * 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
@@ -2080,7 +2080,7 @@ public final class InternalWorkbook {
*
* @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) {
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 b5a1d3d94e..7ec61b190f 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 final class ExtendedFormatRecord extends StandardRecord {
}
// 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 final class ExtendedFormatRecord extends StandardRecord {
}
// 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..
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 b303d3d7da..aac44b1542 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 final class HSSFWorkbook extends POIDocument implements Workbook {
}
/**
- * 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
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 cdc514f3ab..c6936cec0b 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 abstract class BaseTestNamedRange {
}
@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());
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 816db091a2..288ded538d 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 @@ final class TestSheetUtil {
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 @@ final class TestSheetUtil {
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 @@ final class TestSheetUtil {
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 @@ final class TestSheetUtil {
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");
}
}
}