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 5, 2024
1 parent 863be80 commit 9849d9f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ public String getDefaultName() {
/**
* Gets a copy of meta-data of all archive entries.
* <p>
* This method only provides meta-data, the entries can not be used to read the contents, you still need to process all entries in order using
* This method only provides meta-data, the entries cannot be used to read the contents, you still need to process all entries in order using
* {@link #getNextEntry} for that.
* </p>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ public void setCreationTime(final FileTime time) {
*/
public void setDataOffset(final long dataOffset) {
if (dataOffset < 0) {
throw new IllegalArgumentException("The offset can not be smaller than 0");
throw new IllegalArgumentException("The offset cannot be smaller than 0");
}
this.dataOffset = dataOffset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public final void submitStreamAwareCallable(final Callable<? extends ScatterZipO
* </p>
* <p>
* Calling this method will shut down the {@link ExecutorService} used by this class. If any of the {@link Callable}s {@link #submitStreamAwareCallable
* submit}ted to this instance throws an exception, the archive can not be created properly and this method will throw an exception.
* submit}ted to this instance throws an exception, the archive cannot be created properly and this method will throw an exception.
* </p>
*
* @param targetStream The {@link ZipArchiveOutputStream} to receive the contents of the scatter streams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public ZipExtraField[] getExtraFields(final boolean includeUnparseable) {
*
* @param parsingBehavior controls parsing of extra fields.
* @return an array of the extra fields
* @throws ZipException if parsing fails, can not happen if {@code
* @throws ZipException if parsing fails, cannot happen if {@code
* parsingBehavior} is {@link ExtraFieldParsingMode#BEST_EFFORT}.
* @since 1.19
*/
Expand Down Expand Up @@ -1365,7 +1365,7 @@ protected void setLocalHeaderOffset(final long localHeaderOffset) {
@Override
public void setMethod(final int method) {
if (method < 0) {
throw new IllegalArgumentException("ZIP compression method can not be negative: " + method);
throw new IllegalArgumentException("ZIP compression method cannot be negative: " + method);
}
this.method = method;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private <T extends InputStream> T checkInputStream() {
private static final long TWO_EXP_32 = ZIP64_MAGIC + 1;

private static final String USE_ZIPFILE_INSTEAD_OF_STREAM_DISCLAIMER = " while reading a stored entry using data descriptor. Either the archive is broken"
+ " or it can not be read using ZipArchiveInputStream and you must use ZipFile."
+ " or it cannot be read using ZipArchiveInputStream and you must use ZipFile."
+ " A common cause for this is a ZIP archive containing a ZIP archive."
+ " See https://commons.apache.org/proper/commons-compress/zip.html#ZipArchiveInputStream_vs_ZipFile";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* </p>
* <p>
* As of Apache Commons Compress 1.3, the class transparently supports Zip64 extensions and thus individual entries and archives larger than 4 GB or with more
* than 65,536 entries in most cases but explicit control is provided via {@link #setUseZip64}. If the stream can not use SeekableByteChannel and you try to
* than 65,536 entries in most cases but explicit control is provided via {@link #setUseZip64}. If the stream cannot use SeekableByteChannel and you try to
* write a ZipArchiveEntry of unknown size, then Zip64 extensions will be disabled by default.
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public long position() {
}

/**
* Some data can not be written to different split segments, for example:
* Some data cannot be written to different split segments, for example:
* <p>
* 4.4.1.5 The end of central directory record and the Zip64 end of central directory locator record MUST reside on the same disk when splitting or spanning
* an archive.
Expand Down

0 comments on commit 9849d9f

Please sign in to comment.