Skip to content

Commit d8bdae7

Browse files
committed
Use preferred spelling for "cannot"
1 parent cafbf32 commit d8bdae7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/java/org/apache/commons/io/input/AutoCloseInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected void afterRead(final int n) throws IOException {
136136
* first called.
137137
* </p>
138138
*
139-
* @throws IOException if the underlying input stream can not be closed
139+
* @throws IOException if the underlying input stream cannot be closed
140140
*/
141141
@Override
142142
public void close() throws IOException {

src/main/java/org/apache/commons/io/input/XmlStreamReaderException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* The XmlStreamReaderException is thrown by the XmlStreamReader constructors if
23-
* the charset encoding can not be determined according to the XML 1.0
23+
* the charset encoding cannot be determined according to the XML 1.0
2424
* specification and RFC 3023.
2525
* <p>
2626
* The exception returns the unconsumed InputStream to allow the application to

src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void testAlternateDefaultEncoding(final String contentType, final String
212212
private void testAlternateDefaultEncoding(final String streamEnc, final String alternateEnc, final XmlStreamReader xmlReader) {
213213
assertEquals(xmlReader.getDefaultEncoding(), alternateEnc);
214214
if (!streamEnc.equals(UTF_16)) {
215-
// we can not assert things here because UTF-8, US-ASCII and
215+
// we cannot assert things here because UTF-8, US-ASCII and
216216
// ISO-8859-1 look alike for the chars used for detection
217217
// (niallp 2010-10-06 - I re-instated the check below - the tests(6) passed)
218218
final String enc = alternateEnc != null ? alternateEnc : streamEnc;
@@ -449,7 +449,7 @@ public void testHttpValid(final String cT, final String bomEnc, final String str
449449
try (InputStream is = getXmlInputStream(bomEnc, prologEnc == null ? XML1 : XML3, streamEnc, prologEnc);
450450
XmlStreamReader xmlReader = new XmlStreamReader(is, cT, false)) {
451451
if (!streamEnc.equals(UTF_16)) {
452-
// we can not assert things here because UTF-8, US-ASCII and
452+
// we cannot assert things here because UTF-8, US-ASCII and
453453
// ISO-8859-1 look alike for the chars used for detection
454454
// (niallp 2010-10-06 - I re-instated the check below and removed the 2 tests that failed)
455455
assertEquals(xmlReader.getEncoding(), streamEnc);

src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReaderException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* The XmlStreamReaderException is thrown by the XmlStreamReader constructors if
23-
* the charset encoding can not be determined according to the XML 1.0
23+
* the charset encoding cannot be determined according to the XML 1.0
2424
* specification and RFC 3023.
2525
* <p>
2626
* The exception returns the unconsumed InputStream to allow the application to

0 commit comments

Comments
 (0)