From 273067b10390b40d1ebb09f9092f68a73ee171d8 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 28 Jun 2023 11:55:29 +0000 Subject: [PATCH] apply some spelling fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910659 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xddf/usermodel/text/XDDFTextParagraph.java | 2 +- .../java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- .../main/java/org/apache/poi/hwpf/usermodel/Section.java | 4 ++-- .../java/org/apache/poi/extractor/ExtractorFactory.java | 4 ++-- .../java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- .../main/java/org/apache/poi/sl/usermodel/TextRun.java | 8 ++++---- .../java/org/apache/poi/ss/formula/SharedFormula.java | 2 +- .../org/apache/poi/ss/formula/functions/FinanceLib.java | 2 +- .../java/org/apache/poi/ss/usermodel/FormulaError.java | 2 +- poi/src/main/java/org/apache/poi/ss/usermodel/Sheet.java | 2 +- .../poi/hssf/record/chart/TestLinkedDataRecord.java | 2 +- .../function/ExcelFileFormatDocFunctionExtractor.java | 6 +++--- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java index 021228247a..2fad9ddbbe 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java @@ -575,7 +575,7 @@ public class XDDFTextParagraph implements Iterable { /** * * @return the font of bullet characters within a given paragraph. A - * null value means to use the text font font. + * null value means to use the text font. */ public XDDFFont getBulletFont() { return findDefinedParagraphProperty(props -> props.isSetBuFont() || props.isSetBuFontTx(), 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 6639a28e65..9fe2ea71f0 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 class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetEx * 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-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 ac0e6f25af..2b2790848e 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 final class Section extends Range implements Duplicatable { *

{@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 final class Section extends Range implements Duplicatable { *
{@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(); 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 5c94c4c892..b3c6ef0514 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 @@ public final class 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 final class ExtractorFactory { * (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; 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 b263001450..fe1c703ba3 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 final class HSSFSheet implements Sheet { * 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/sl/usermodel/TextRun.java b/poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java index 85a7679c30..2c8f4b6df5 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 @@ public interface TextRun { /** * 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 @@ public interface TextRun { * * @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 @@ public interface TextRun { /** * 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 @@ public interface TextRun { * * @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 */ 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 aca085565e..65aef2b6b4 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 @@ import org.apache.poi.ss.formula.ptg.*; 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/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/FinanceLib.java index c5920cd039..915fb9af23 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 @@ 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: *
*