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 329125fc28..7f39c1b1cd 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 @@ -85,7 +85,7 @@ public final class SXSSFPicture implements Picture { *

* Please note, that this method works correctly only for workbooks * with the default font size (Calibri 11pt for .xlsx). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

*/ @Override @@ -98,7 +98,7 @@ public final class SXSSFPicture implements Picture { *

* Please note, that this method works correctly only for workbooks * with the default font size (Calibri 11pt for .xlsx). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

* * @param scale the amount by which image dimensions are multiplied relative to the original size. diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java index f976485556..42f719b52f 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFRow.java @@ -535,11 +535,11 @@ public class SXSSFRow implements Row, Comparable * equal to the row number of the argument SXSSFRow * *
  • - * a value less than 0 if the row number of this this SXSSFRow is + * a value less than 0 if the row number of this SXSSFRow is * numerically less than the row number of the argument SXSSFRow *
  • *
  • - * a value greater than 0 if the row number of this this SXSSFRow is + * a value greater than 0 if the row number of this SXSSFRow is * numerically greater than the row number of the argument SXSSFRow *
  • * diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java index 7d0964126f..ea1c7e1bfb 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java @@ -1145,7 +1145,7 @@ public class SXSSFSheet implements Sheet, OoxmlSheetExtensions { * Breaks occur above the specified row and left of the specified column inclusive. * * For example, {@code sheet.setColumnBreak(2);} breaks the sheet into two parts - * with columns A,B,C in the first and D,E,... in the second. Simuilar, {@code sheet.setRowBreak(2);} + * with columns A,B,C in the first and D,E,... in the second. Similar, {@code sheet.setRowBreak(2);} * breaks the sheet into two parts with first three rows (rownum=1...3) in the first part * and rows starting with rownum=4 in the second. * 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 eccbc02e22..c92579576c 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 class SXSSFWorkbook implements Workbook { } /** - * 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/XSSFChartSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFChartSheet.java index aeb7874a6c..b9944a58d9 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFChartSheet.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFChartSheet.java @@ -56,7 +56,7 @@ public class XSSFChartSheet extends XSSFSheet { @Override protected void read(InputStream is) throws IOException { - //initialize the supeclass with a blank worksheet + //initialize the superclass with a blank worksheet super.read(UnsynchronizedByteArrayInputStream.builder().setByteArray(BLANK_WORKSHEET).get()); try { 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 118fa793aa..ace7fd018a 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 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter; *

    * 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 45600cfc9d..87edf9136e 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 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter; *

    * 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 6902066b6f..8ef41646c6 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 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter; *

    * 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 a28a113523..0f964fa92c 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 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter; *

    * 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{ 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 ec60fdfae3..7a4c01dc66 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 class XSSFFontFormatting implements FontFormatting { } /** - * 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() diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPicture.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPicture.java index 3980a7cb00..9a3c4056f3 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPicture.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPicture.java @@ -161,7 +161,7 @@ public final class XSSFPicture extends XSSFShape implements Picture { *

    * Please note, that this method works correctly only for workbooks * with the default font size (Calibri 11pt for .xlsx). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

    * {@code resize(1.0,1.0)} keeps the original size,
    * {@code resize(0.5,0.5)} resize to 50% of the original,
    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 f7db5c755d..e96084e97a 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 @@ public class XSSFPivotTable extends POIXMLDocumentPart { 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-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 bceb6cddfa..5144729fa3 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 class XSSFRow implements Row, Comparable { * 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-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 73183eae85..6639a28e65 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 @@ -1942,7 +1942,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetEx * Breaks occur above the specified row and left of the specified column inclusive. * * For example, {@code sheet.setColumnBreak(2);} breaks the sheet into two parts - * with columns A,B,C in the first and D,E,... in the second. Simuilar, {@code sheet.setRowBreak(2);} + * with columns A,B,C in the first and D,E,... in the second. Similar, {@code sheet.setRowBreak(2);} * breaks the sheet into two parts with first three rows (rownum=1...3) in the first part * and rows starting with rownum=4 in the second. * @@ -2181,7 +2181,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetEx * Breaks occur above the specified row and left of the specified column inclusive. * * For example, {@code sheet.setColumnBreak(2);} breaks the sheet into two parts - * with columns A,B,C in the first and D,E,... in the second. Simuilar, {@code sheet.setRowBreak(2);} + * with columns A,B,C in the first and D,E,... in the second. Similar, {@code sheet.setRowBreak(2);} * breaks the sheet into two parts with first three rows (rownum=1...3) in the first part * and rows starting with rownum=4 in the second. * 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 cc7284e04b..dd4e5ec406 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 class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su } /** - * 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/ddf/EscherRecord.java b/poi/src/main/java/org/apache/poi/ddf/EscherRecord.java index eec8d49046..c817e7d060 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 abstract class EscherRecord implements Duplicatable, GenericRecord { } /** - * Set the options this this record. Container records should have the + * Set the options this record. Container records should have the * last nibble set to 0xF.

    * * Note that {@code options} is an internal field. diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPicture.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPicture.java index ccc8eef44e..d232c9bd2c 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPicture.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFPicture.java @@ -91,7 +91,7 @@ public class HSSFPicture extends HSSFSimpleShape implements Picture { *

    * Please note, that this method works correctly only for workbooks * with default font size (Arial 10pt for .xls). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

    */ @Override @@ -114,7 +114,7 @@ public class HSSFPicture extends HSSFSimpleShape implements Picture { *

    * Please note, that this method works correctly only for workbooks * with default font size (Arial 10pt for .xls). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

    *

    * resize(1.0,1.0) keeps the original size,
    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 a64840eed2..c0b7188409 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 @@ public final class HSSFRow implements Row, Comparable { * 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 *
  • * 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 f50e18edb9..b263001450 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 @@ -1995,7 +1995,7 @@ public final class HSSFSheet implements Sheet { * Breaks occur above the specified row and left of the specified column inclusive.

    * * For example, sheet.setColumnBreak(2); breaks the sheet into two parts - * with columns A,B,C in the first and D,E,... in the second. Simuilar, sheet.setRowBreak(2); + * with columns A,B,C in the first and D,E,... in the second. Similar, sheet.setRowBreak(2); * breaks the sheet into two parts with first three rows (rownum=1...3) in the first part * and rows starting with rownum=4 in the second. * @@ -2047,7 +2047,7 @@ public final class HSSFSheet implements Sheet { * Breaks occur above the specified row and left of the specified column inclusive.

    * * For example, sheet.setColumnBreak(2); breaks the sheet into two parts - * with columns A,B,C in the first and D,E,... in the second. Simuilar, {@code sheet.setRowBreak(2);} + * with columns A,B,C in the first and D,E,... in the second. Similar, {@code sheet.setRowBreak(2);} * breaks the sheet into two parts with first three rows (rownum=1...3) in the first part * and rows starting with rownum=4 in the second. * 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 aac44b1542..6c4c84b56e 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 final class HSSFWorkbook extends POIDocument implements Workbook { } /** - * 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 diff --git a/poi/src/main/java/org/apache/poi/sl/draw/DrawPaint.java b/poi/src/main/java/org/apache/poi/sl/draw/DrawPaint.java index aa2a27fb0a..ffff09db2f 100644 --- a/poi/src/main/java/org/apache/poi/sl/draw/DrawPaint.java +++ b/poi/src/main/java/org/apache/poi/sl/draw/DrawPaint.java @@ -264,7 +264,7 @@ public class DrawPaint { ImageRenderer renderer = DrawPictureShape.getImageRenderer(graphics, contentType); - // TODO: handle tile settings, currently the pattern is always streched 100% in height/width + // TODO: handle tile settings, currently the pattern is always stretched 100% in height/width Rectangle2D textAnchor = shape.getAnchor(); try (InputStream is = fill.getImageData()) { diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/Picture.java b/poi/src/main/java/org/apache/poi/ss/usermodel/Picture.java index ac7d33dd21..4b0ffa08c8 100644 --- a/poi/src/main/java/org/apache/poi/ss/usermodel/Picture.java +++ b/poi/src/main/java/org/apache/poi/ss/usermodel/Picture.java @@ -43,7 +43,7 @@ public interface Picture extends Shape { *

    * Please note, that this method works correctly only for workbooks * with the default font size (Arial 10pt for .xls and Calibri 11pt for .xlsx). - * If the default font is changed the resized image can be streched vertically or horizontally. + * If the default font is changed the resized image can be stretched vertically or horizontally. *

    *

    * resize(1.0,1.0) keeps the original size,