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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new d8bdae7ab Use preferred spelling for "cannot"
d8bdae7ab is described below

commit d8bdae7ab8f837a4d3aff966e044871ac5e4a82f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Nov 5 05:55:20 2024 -0500

    Use preferred spelling for "cannot"
---
 src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java   | 2 +-
 .../java/org/apache/commons/io/input/XmlStreamReaderException.java    | 2 +-
 src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java    | 4 ++--
 .../commons/io/input/compatibility/XmlStreamReaderException.java      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java 
b/src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java
index 16276f909..aad0fd5e7 100644
--- a/src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java
@@ -136,7 +136,7 @@ public class AutoCloseInputStream extends ProxyInputStream {
      * first called.
      * </p>
      *
-     * @throws IOException if the underlying input stream can not be closed
+     * @throws IOException if the underlying input stream cannot be closed
      */
     @Override
     public void close() throws IOException {
diff --git 
a/src/main/java/org/apache/commons/io/input/XmlStreamReaderException.java 
b/src/main/java/org/apache/commons/io/input/XmlStreamReaderException.java
index cbaa844a2..bc506509a 100644
--- a/src/main/java/org/apache/commons/io/input/XmlStreamReaderException.java
+++ b/src/main/java/org/apache/commons/io/input/XmlStreamReaderException.java
@@ -20,7 +20,7 @@ import java.io.IOException;
 
 /**
  * The XmlStreamReaderException is thrown by the XmlStreamReader constructors 
if
- * the charset encoding can not be determined according to the XML 1.0
+ * the charset encoding cannot be determined according to the XML 1.0
  * specification and RFC 3023.
  * <p>
  * The exception returns the unconsumed InputStream to allow the application to
diff --git a/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java 
b/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
index 4260a1aa6..385a12b78 100644
--- a/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
+++ b/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
@@ -212,7 +212,7 @@ public class XmlStreamReaderTest {
     private void testAlternateDefaultEncoding(final String streamEnc, final 
String alternateEnc, final XmlStreamReader xmlReader) {
         assertEquals(xmlReader.getDefaultEncoding(), alternateEnc);
         if (!streamEnc.equals(UTF_16)) {
-            // we can not assert things here because UTF-8, US-ASCII and
+            // we cannot assert things here because UTF-8, US-ASCII and
             // ISO-8859-1 look alike for the chars used for detection
             // (niallp 2010-10-06 - I re-instated the check below - the 
tests(6) passed)
             final String enc = alternateEnc != null ? alternateEnc : streamEnc;
@@ -449,7 +449,7 @@ public class XmlStreamReaderTest {
         try (InputStream is = getXmlInputStream(bomEnc, prologEnc == null ? 
XML1 : XML3, streamEnc, prologEnc);
             XmlStreamReader xmlReader = new XmlStreamReader(is, cT, false)) {
             if (!streamEnc.equals(UTF_16)) {
-                // we can not assert things here because UTF-8, US-ASCII and
+                // we cannot assert things here because UTF-8, US-ASCII and
                 // ISO-8859-1 look alike for the chars used for detection
                 // (niallp 2010-10-06 - I re-instated the check below and 
removed the 2 tests that failed)
                 assertEquals(xmlReader.getEncoding(), streamEnc);
diff --git 
a/src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReaderException.java
 
b/src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReaderException.java
index 97e377b36..3391423e5 100644
--- 
a/src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReaderException.java
+++ 
b/src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReaderException.java
@@ -20,7 +20,7 @@ import java.io.InputStream;
 
 /**
  * The XmlStreamReaderException is thrown by the XmlStreamReader constructors 
if
- * the charset encoding can not be determined according to the XML 1.0
+ * the charset encoding cannot be determined according to the XML 1.0
  * specification and RFC 3023.
  * <p>
  * The exception returns the unconsumed InputStream to allow the application to

Reply via email to