Skip to content

Commit c01baa8

Browse files
committed
Use preferred spelling for "cannot"
1 parent 18648bb commit c01baa8

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

commons-vfs2-jackrabbit1/src/test/java/org/apache/commons/vfs2/provider/webdav/test/JcrUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ final class JcrUtils {
6262
* @param parent parent node
6363
* @param name name of the child node
6464
* @return the child node
65-
* @throws RepositoryException if the child node can not be accessed or created
65+
* @throws RepositoryException if the child node cannot be accessed or created
6666
*/
6767
public static Node getOrAddFolder(final Node parent, final String name) throws RepositoryException {
6868
return getOrAddNode(parent, name, NodeType_NT_FOLDER);
@@ -80,7 +80,7 @@ public static Node getOrAddFolder(final Node parent, final String name) throws R
8080
* @param name name of the child node
8181
* @param type type of the child node, ignored if the child already exists
8282
* @return the child node
83-
* @throws RepositoryException if the child node can not be accessed or created
83+
* @throws RepositoryException if the child node cannot be accessed or created
8484
*/
8585
public static Node getOrAddNode(final Node parent, final String name, final String type)
8686
throws RepositoryException {
@@ -119,7 +119,7 @@ public static Node getOrAddNode(final Node parent, final String name, final Stri
119119
* @param mime media type of the file
120120
* @param data binary content of the file
121121
* @return the child node
122-
* @throws RepositoryException if the child node can not be created or updated
122+
* @throws RepositoryException if the child node cannot be created or updated
123123
*/
124124
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data)
125125
throws RepositoryException {
@@ -156,7 +156,7 @@ public static Node putFile(final Node parent, final String name, final String mi
156156
* @param data binary content of the file
157157
* @param date date of last modification
158158
* @return the child node
159-
* @throws RepositoryException if the child node can not be created or updated
159+
* @throws RepositoryException if the child node cannot be created or updated
160160
*/
161161
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data,
162162
final Calendar date) throws RepositoryException {

commons-vfs2-jackrabbit2/src/test/java/org/apache/commons/vfs2/provider/webdav4/test/JcrUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ final class JcrUtils {
6262
* @param parent parent node
6363
* @param name name of the child node
6464
* @return the child node
65-
* @throws RepositoryException if the child node can not be accessed or created
65+
* @throws RepositoryException if the child node cannot be accessed or created
6666
*/
6767
public static Node getOrAddFolder(final Node parent, final String name) throws RepositoryException {
6868
return getOrAddNode(parent, name, NodeType_NT_FOLDER);
@@ -80,7 +80,7 @@ public static Node getOrAddFolder(final Node parent, final String name) throws R
8080
* @param name name of the child node
8181
* @param type type of the child node, ignored if the child already exists
8282
* @return the child node
83-
* @throws RepositoryException if the child node can not be accessed or created
83+
* @throws RepositoryException if the child node cannot be accessed or created
8484
*/
8585
public static Node getOrAddNode(final Node parent, final String name, final String type)
8686
throws RepositoryException {
@@ -119,7 +119,7 @@ public static Node getOrAddNode(final Node parent, final String name, final Stri
119119
* @param mime media type of the file
120120
* @param data binary content of the file
121121
* @return the child node
122-
* @throws RepositoryException if the child node can not be created or updated
122+
* @throws RepositoryException if the child node cannot be created or updated
123123
*/
124124
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data)
125125
throws RepositoryException {
@@ -156,7 +156,7 @@ public static Node putFile(final Node parent, final String name, final String mi
156156
* @param data binary content of the file
157157
* @param date date of last modification
158158
* @return the child node
159-
* @throws RepositoryException if the child node can not be created or updated
159+
* @throws RepositoryException if the child node cannot be created or updated
160160
*/
161161
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data,
162162
final Calendar date) throws RepositoryException {

commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/util/SharedRandomContentInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public synchronized int read(final byte[] b, final int off, int len) throws IOEx
150150
}
151151

152152
if (fileEnd > -1 && calcFilePosition(len) > fileEnd) {
153-
// we can not read past our end
153+
// we cannot read past our end
154154
len = (int) (fileEnd - getFilePosition());
155155
}
156156

@@ -174,7 +174,7 @@ public synchronized long skip(long n) throws IOException {
174174
}
175175

176176
if (fileEnd > -1 && calcFilePosition(n) > fileEnd) {
177-
// we can not skip past our end
177+
// we cannot skip past our end
178178
n = fileEnd - getFilePosition();
179179
}
180180

commons-vfs2/src/main/java/org/apache/commons/vfs2/FileName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public interface FileName extends Comparable<FileName> {
7474
/**
7575
* Gets a "friendly path", this is a path without a password.
7676
* <p>
77-
* This path can not be used to resolve the path again.
77+
* This path cannot be used to resolve the path again.
7878
* </p>
7979
*
8080
* @return the friendly URI as a String.

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ final class RamFileData implements Serializable {
7070
children = Collections.synchronizedCollection(new ArrayList<>());
7171
clear();
7272
if (name == null) {
73-
throw new IllegalArgumentException("name can not be null");
73+
throw new IllegalArgumentException("name cannot be null");
7474
}
7575
this.name = name;
7676
}

0 commit comments

Comments
 (0)