Skip to content

Commit

Permalink
Use preferred spelling for "cannot"
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 8, 2024
1 parent 18648bb commit c01baa8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class JcrUtils {
* @param parent parent node
* @param name name of the child node
* @return the child node
* @throws RepositoryException if the child node can not be accessed or created
* @throws RepositoryException if the child node cannot be accessed or created
*/
public static Node getOrAddFolder(final Node parent, final String name) throws RepositoryException {
return getOrAddNode(parent, name, NodeType_NT_FOLDER);
Expand All @@ -80,7 +80,7 @@ public static Node getOrAddFolder(final Node parent, final String name) throws R
* @param name name of the child node
* @param type type of the child node, ignored if the child already exists
* @return the child node
* @throws RepositoryException if the child node can not be accessed or created
* @throws RepositoryException if the child node cannot be accessed or created
*/
public static Node getOrAddNode(final Node parent, final String name, final String type)
throws RepositoryException {
Expand Down Expand Up @@ -119,7 +119,7 @@ public static Node getOrAddNode(final Node parent, final String name, final Stri
* @param mime media type of the file
* @param data binary content of the file
* @return the child node
* @throws RepositoryException if the child node can not be created or updated
* @throws RepositoryException if the child node cannot be created or updated
*/
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data)
throws RepositoryException {
Expand Down Expand Up @@ -156,7 +156,7 @@ public static Node putFile(final Node parent, final String name, final String mi
* @param data binary content of the file
* @param date date of last modification
* @return the child node
* @throws RepositoryException if the child node can not be created or updated
* @throws RepositoryException if the child node cannot be created or updated
*/
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data,
final Calendar date) throws RepositoryException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class JcrUtils {
* @param parent parent node
* @param name name of the child node
* @return the child node
* @throws RepositoryException if the child node can not be accessed or created
* @throws RepositoryException if the child node cannot be accessed or created
*/
public static Node getOrAddFolder(final Node parent, final String name) throws RepositoryException {
return getOrAddNode(parent, name, NodeType_NT_FOLDER);
Expand All @@ -80,7 +80,7 @@ public static Node getOrAddFolder(final Node parent, final String name) throws R
* @param name name of the child node
* @param type type of the child node, ignored if the child already exists
* @return the child node
* @throws RepositoryException if the child node can not be accessed or created
* @throws RepositoryException if the child node cannot be accessed or created
*/
public static Node getOrAddNode(final Node parent, final String name, final String type)
throws RepositoryException {
Expand Down Expand Up @@ -119,7 +119,7 @@ public static Node getOrAddNode(final Node parent, final String name, final Stri
* @param mime media type of the file
* @param data binary content of the file
* @return the child node
* @throws RepositoryException if the child node can not be created or updated
* @throws RepositoryException if the child node cannot be created or updated
*/
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data)
throws RepositoryException {
Expand Down Expand Up @@ -156,7 +156,7 @@ public static Node putFile(final Node parent, final String name, final String mi
* @param data binary content of the file
* @param date date of last modification
* @return the child node
* @throws RepositoryException if the child node can not be created or updated
* @throws RepositoryException if the child node cannot be created or updated
*/
public static Node putFile(final Node parent, final String name, final String mime, final InputStream data,
final Calendar date) throws RepositoryException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public synchronized int read(final byte[] b, final int off, int len) throws IOEx
}

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public interface FileName extends Comparable<FileName> {
/**
* Gets a "friendly path", this is a path without a password.
* <p>
* This path can not be used to resolve the path again.
* This path cannot be used to resolve the path again.
* </p>
*
* @return the friendly URI as a String.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ final class RamFileData implements Serializable {
children = Collections.synchronizedCollection(new ArrayList<>());
clear();
if (name == null) {
throw new IllegalArgumentException("name can not be null");
throw new IllegalArgumentException("name cannot be null");
}
this.name = name;
}
Expand Down

0 comments on commit c01baa8

Please sign in to comment.