aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-03-18 11:35:26 +0000
committerPJ Fanning <fanningpj@apache.org>2023-03-18 11:35:26 +0000
commit27344ca66169f2c99fc418eae3217ab1f613fbd4 (patch)
treebdeca533543125d6b9abe12f4222eec0745d5113 /poi-ooxml/src
parent6f36cab7585eb377a2df3b350d6f1b8ed80f335f (diff)
downloadpoi-27344ca66169f2c99fc418eae3217ab1f613fbd4.tar.gz
poi-27344ca66169f2c99fc418eae3217ab1f613fbd4.zip
use 'an'
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908483 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java4
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java6
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java2
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java4
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java2
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java2
14 files changed, 18 insertions, 18 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java
index d418a2dc61..f95aad6a30 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ContentType.java
@@ -28,7 +28,7 @@ import java.util.regex.Pattern;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
/**
- * Represents a immutable MIME ContentType value (RFC 2616 &#167;3.7)
+ * Represents an immutable MIME ContentType value (RFC 2616 &#167;3.7)
* <p>
* media-type = type "/" subtype *( ";" parameter ) type = token<br>
* subtype = token<br>
diff --git a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
index 0941621d61..cfb9c6c83d 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java
@@ -93,7 +93,7 @@ import org.w3c.dom.events.MutationEvent;
/**
* <p>This class is the default entry point for XML signatures and can be used for
- * validating an existing signed office document and signing a office document.</p>
+ * validating an existing signed office document and signing an office document.</p>
*
* <p><b>Validating a signed office document</b></p>
*
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
index 67397d6c50..9346338275 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
@@ -47,7 +47,7 @@ public class XSLFBackground extends XSLFSimpleShape
}
/**
- * background does not have a associated transform, therefore we return null
+ * background does not have an associated transform, therefore we return null
*
* @param create ignored
*
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java
index ef88000e8d..6c468f3c8a 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCell.java
@@ -481,7 +481,7 @@ public class SXSSFCell extends CellBase {
}
/**
- * Set a error value for the cell
+ * Set an error value for the cell
*
* @param value the error value to set this cell to. For formulas, we'll set the
* precalculated value , for errors we'll set
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 d454fc1082..7d0964126f 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
@@ -142,7 +142,7 @@ public class SXSSFSheet implements Sheet, OoxmlSheetExtensions {
"in the range [0," + _writer.getLastFlushedRow() + "] that is already written to disk.");
}
- // attempt to overwrite a existing row in the input template
+ // attempt to overwrite an existing row in the input template
if(_sh.getPhysicalNumberOfRows() > 0 && rownum <= _sh.getLastRowNum() ) {
throw new IllegalArgumentException(
"Attempting to write a row["+rownum+"] " +
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
index 4493c55962..07f4d6d314 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
@@ -817,7 +817,7 @@ public final class XSSFCell extends CellBase {
}
/**
- * Set a error value for the cell
+ * Set an error value for the cell
*
* @param errorCode the error value to set this cell to. For formulas, we'll set the
* precalculated value , for errors we'll set
@@ -832,7 +832,7 @@ public final class XSSFCell extends CellBase {
}
/**
- * Set a error value for the cell
+ * Set an error value for the cell
*
* @param error the error value to set this cell to. For formulas, we'll set the
* precalculated value , for errors we'll set
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java
index 9fea94baff..02bb6bc66a 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java
@@ -846,7 +846,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
}
/**
- * Set the background fill color represented as a indexed color value.
+ * Set the background fill color represented as an indexed color value.
* <p>
* For example:
* <pre>
@@ -916,7 +916,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
}
/**
- * Set the foreground fill color as a indexed color value
+ * Set the foreground fill color as an indexed color value
* <br>
* <i>Note: Ensure Foreground color is set prior to background color.</i>
* @param fg the color to use
@@ -1044,7 +1044,7 @@ public class XSSFCellStyle implements CellStyle, Duplicatable {
}
/**
- * Set the color to use for the left border as a indexed color value
+ * Set the color to use for the left border as an indexed color value
*
* @param color the index of the color definition
* @see org.apache.poi.ss.usermodel.IndexedColors
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java
index ad65465671..d7324431ba 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java
@@ -145,7 +145,7 @@ public class XSSFColor extends ExtendedColor {
}
/**
- * @return true if the ctColor has a alpha
+ * @return true if the ctColor has an alpha
*/
public boolean hasAlpha() {
return ctColor.isSetRgb() && ctColor.getRgb().length == 4;
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 a31f669b26..c15b21ebf6 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
@@ -1823,7 +1823,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su
}
/**
- * Return a object representing a collection of shared objects used for styling content,
+ * Return an object representing a collection of shared objects used for styling content,
* e.g. fonts, cell styles, colors, etc.
*/
public StylesTable getStylesSource() {
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java
index dd9dca7d16..dc93a429b0 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.java
@@ -67,7 +67,7 @@ public final class XSSFCellFill {
}
/**
- * Set the background fill color represented as a indexed color value.
+ * Set the background fill color represented as an indexed color value.
*
* @param index - the color to use
*/
@@ -105,7 +105,7 @@ public final class XSSFCellFill {
}
/**
- * Set the foreground fill color as a indexed color value
+ * Set the foreground fill color as an indexed color value
*
* @param index - the color to use
*/
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java
index 6ab0ae9907..0e2d09dc91 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java
@@ -1123,7 +1123,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
}
/**
- * copies content of a paragraph to a existing paragraph in the list paragraphs at position pos
+ * copies content of a paragraph to an existing paragraph in the list paragraphs at position pos
*/
public void setParagraph(XWPFParagraph paragraph, int pos) {
paragraphs.set(pos, paragraph);
diff --git a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java
index 9b21bb7db0..a22ad42d19 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/ZipFileAssert.java
@@ -105,7 +105,7 @@ public final class ZipFileAssert {
ArchiveEntry entree;
while ((entree = zis.getNextEntry()) != null) {
- /* Create a array for the current entry */
+ /* Create an array for the current entry */
UnsynchronizedByteArrayOutputStream byteArray = new UnsynchronizedByteArrayOutputStream();
IOUtils.copy(zis, byteArray);
zipContent.put(entree.getName(), byteArray);
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
index 6ba6751052..44de570a88 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
@@ -142,7 +142,7 @@ class TestXSLFSlide {
XSLFTextShape sh2 = (XSLFTextShape)shapes1.get(1);
assertEquals(
- "Text in a autoshape is white\n" +
+ "Text in an autoshape is white\n" +
"Fill: RGB(148, 198,0)", sh2.getText());
XSLFTextRun r2 = sh2.getTextParagraphs().get(0).getTextRuns().get(0);
assertEquals("Century Gothic", r2.getFontFamily());
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java
index a97ca36e94..8e4bec3b61 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFChartSheet.java
@@ -50,7 +50,7 @@ public final class TestXSSFChartSheet {
assertFalse(sheet.iterator().hasNext(), "Row iterator for charts sheets should return zero rows");
- //access to a arbitrary row
+ //access to an arbitrary row
assertNull(sheet.getRow(1));
//some basic get* accessors