You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2026/09/06 10:08:02 UTC

(poi) branch trunk updated: Fix typos in comments/javadoc (#1247)

This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new a4a31a96c5 Fix typos in comments/javadoc (#1247)
a4a31a96c5 is described below

commit a4a31a96c5c0cbcfdde69b133a3a61bbada2a470
Author: TianHengZhuang <39...@users.noreply.github.com>
AuthorDate: Sun Sep 6 18:07:55 2026 +0800

    Fix typos in comments/javadoc (#1247)
    
    Co-authored-by: TianHengZhuang <39...@users.noreply.github.com>
---
 .../java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java  | 2 +-
 poi/src/main/java/org/apache/poi/ss/formula/functions/DateFunc.java     | 2 +-
 poi/src/main/java/org/apache/poi/ss/usermodel/Table.java                | 2 +-
 poi/src/main/java/org/apache/poi/ss/util/cellwalk/CellHandler.java      | 2 +-
 .../java/org/apache/poi/ss/usermodel/BaseTestSheetAutosizeColumn.java   | 2 +-
 5 files changed, 5 insertions(+), 5 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 9d026f2775..a6be58ee46 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
@@ -52,7 +52,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
  *  not a file format one.</p>
  */
 public final class CFRecordsAggregate extends RecordAggregate implements GenericRecord {
-    /** Excel 97-2003 allows up to 3 conditional formating rules */
+    /** Excel 97-2003 allows up to 3 conditional formatting rules */
     private static final int MAX_97_2003_CONDTIONAL_FORMAT_RULES = 3;
     private static final Logger LOG = PoiLogManager.getLogger(CFRecordsAggregate.class);
 
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/DateFunc.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/DateFunc.java
index 72e233c02f..5d22f4fc26 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/DateFunc.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/DateFunc.java
@@ -68,7 +68,7 @@ public final class DateFunc extends Fixed3ArgFunction {
         // Negative days are handled by the Java Calendar
         
         // Excel has bugs around leap years in 1900, handle them
-        // Special case for the non-existant 1900 leap year
+        // Special case for the non-existent 1900 leap year
         if (year == 1900 && month == Calendar.FEBRUARY && pDay == 29) {
             return 60.0;
         }
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/Table.java b/poi/src/main/java/org/apache/poi/ss/usermodel/Table.java
index abfc810a16..0fc385bfbc 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/Table.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/Table.java
@@ -117,7 +117,7 @@ public interface Table {
      * checks if the given cell is part of the table.  Includes checking that they are on the same sheet.
      * @return true if the table and cell are on the same sheet and the cell is within the table range.
      * @since 3.17 beta 1
-     * @see #contains(CellReference) (prefered, faster execution and handles undefined cells)
+     * @see #contains(CellReference) (preferred, faster execution and handles undefined cells)
      */
     default boolean contains(Cell cell) {
         if (cell == null) return false;
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 25e8830434..c6703d84de 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);
 
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 35bb9fb4d7..ac61e52e3f 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
@@ -218,7 +218,7 @@ public abstract class BaseTestSheetAutosizeColumn {
         row.createCell(0).setCellValue("x");
         row.createCell(1).setCellValue("xxxx");
         row.createCell(2).setCellValue("xxxxxxxxxxxx");
-        row.createCell(3).setCellValue("Apache\nSoftware Foundation"); // the text is splitted into two lines
+        row.createCell(3).setCellValue("Apache\nSoftware Foundation"); // the text is split into two lines
         row.createCell(4).setCellValue("Software Foundation");
 
         Cell cell5 = row.createCell(5);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org