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-compress.git
The following commit(s) were added to refs/heads/master by this push:
new 68cd2e7fb Uppercase acronym in comment
68cd2e7fb is described below
commit 68cd2e7fb488b4ad8a9fdc81cae97ae6e8248ea5
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Mar 23 17:58:53 2024 -0400
Uppercase acronym in comment
---
.../org/apache/commons/compress/archivers/ArchiveStreamFactory.java | 2 +-
.../org/apache/commons/compress/archivers/arj/ArjArchiveEntry.java | 6 +++---
.../apache/commons/compress/archivers/dump/DumpArchiveEntry.java | 2 +-
.../org/apache/commons/compress/archivers/dump/package-info.java | 2 +-
.../org/apache/commons/compress/archivers/zip/AsiExtraField.java | 4 ++--
.../java/org/apache/commons/compress/archivers/zip/UnixStat.java | 2 +-
.../commons/compress/archivers/zip/X5455_ExtendedTimestamp.java | 6 +++---
.../org/apache/commons/compress/archivers/zip/X7875_NewUnix.java | 4 ++--
.../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java | 4 ++--
.../java/org/apache/commons/compress/archivers/zip/ZipUtil.java | 2 +-
.../commons/compress/compressors/CompressorStreamFactory.java | 2 +-
.../commons/compress/compressors/z/ZCompressorInputStream.java | 4 ++--
src/main/java/org/apache/commons/compress/utils/TimeUtils.java | 6 +++---
13 files changed, 23 insertions(+), 23 deletions(-)
diff --git
a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
index 99ea2acf0..c0ef53333 100644
---
a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
+++
b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
@@ -162,7 +162,7 @@ public class ArchiveStreamFactory implements
ArchiveStreamProvider {
public static final String CPIO = "cpio";
/**
- * Constant (value {@value}) used to identify the Unix DUMP archive
format. Not supported as an output stream type.
+ * Constant (value {@value}) used to identify the UNIX DUMP archive
format. Not supported as an output stream type.
*
* @since 1.3
*/
diff --git
a/src/main/java/org/apache/commons/compress/archivers/arj/ArjArchiveEntry.java
b/src/main/java/org/apache/commons/compress/archivers/arj/ArjArchiveEntry.java
index 6591f406a..37456398f 100644
---
a/src/main/java/org/apache/commons/compress/archivers/arj/ArjArchiveEntry.java
+++
b/src/main/java/org/apache/commons/compress/archivers/arj/ArjArchiveEntry.java
@@ -134,7 +134,7 @@ public class ArjArchiveEntry implements ArchiveEntry {
* <p>
* Note the interpretation of time is different depending on the HostOS
that has created the archive. While an OS that is {@link #isHostOsUnix
considered to
* be Unix} stores time in a time zone independent manner, other platforms
only use the local time. I.e. if an archive has been created at midnight UTC on
a
- * machine in time zone UTC this method will return midnight regardless of
time zone if the archive has been created on a non-Unix system and a time taking
+ * machine in time zone UTC this method will return midnight regardless of
time zone if the archive has been created on a non-UNIX system and a time taking
* the current time zone into account if the archive has been created on
Unix.
* </p>
*
@@ -191,12 +191,12 @@ public class ArjArchiveEntry implements ArchiveEntry {
}
/**
- * File mode of this entry as Unix stat value.
+ * File mode of this entry as UNIX stat value.
*
* <p>
* Will only be non-zero of the host os was UNIX.
*
- * @return the Unix mode
+ * @return the UNIX mode
*/
public int getUnixMode() {
return isHostOsUnix() ? getMode() : 0;
diff --git
a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
index a659e2695..2e83956a2 100644
---
a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
+++
b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
@@ -130,7 +130,7 @@ import org.apache.commons.compress.archivers.ArchiveEntry;
* // copied from the FreeBSD 2.0 <ufs/ufs/dinode.h> include file
* //
* struct new_bsd_inode {
- * __u16 di_mode; // file type, standard Unix permissions
+ * __u16 di_mode; // file type, standard UNIX permissions
* __s16 di_nlink; // number of hard links to file.
* union {
* __u16 oldids[2];
diff --git
a/src/main/java/org/apache/commons/compress/archivers/dump/package-info.java
b/src/main/java/org/apache/commons/compress/archivers/dump/package-info.java
index 95494521c..e72284309 100644
--- a/src/main/java/org/apache/commons/compress/archivers/dump/package-info.java
+++ b/src/main/java/org/apache/commons/compress/archivers/dump/package-info.java
@@ -18,7 +18,7 @@
*/
/**
- * This package provides stream classes for reading archives using the Unix
DUMP format.
+ * This package provides stream classes for reading archives using the UNIX
DUMP format.
* <p>
* This format is similar to (and contemporary with) TAR but reads the raw
filesystem directly. This means that writers are filesystem-specific even
though the
* created archives are filesystem-agnostic.
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java
b/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java
index 57c7a7b8f..34c232f47 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/AsiExtraField.java
@@ -26,7 +26,7 @@ import java.util.zip.CRC32;
import java.util.zip.ZipException;
/**
- * Adds Unix file permission and UID/GID fields as well as symbolic link
handling.
+ * Adds UNIX file permission and UID/GID fields as well as symbolic link
handling.
*
* <p>
* This class uses the ASi extra field in the format:
@@ -65,7 +65,7 @@ public class AsiExtraField implements ZipExtraField,
UnixStat, Cloneable {
private static final int MIN_SIZE = WORD + SHORT + WORD + SHORT + SHORT;
/**
- * Standard Unix stat(2) file mode.
+ * Standard UNIX stat(2) file mode.
*/
private int mode;
/**
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/UnixStat.java
b/src/main/java/org/apache/commons/compress/archivers/zip/UnixStat.java
index 695a24dbb..098d89417 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/UnixStat.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/UnixStat.java
@@ -19,7 +19,7 @@
package org.apache.commons.compress.archivers.zip;
/**
- * Constants from stat.h on Unix systems.
+ * Constants from stat.h on UNIX systems.
*/
// CheckStyle:InterfaceIsTypeCheck OFF - backward compatible
public interface UnixStat {
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.java
b/src/main/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.java
index 56471ae52..4c1a4448e 100644
---
a/src/main/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.java
+++
b/src/main/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.java
@@ -42,7 +42,7 @@ import org.apache.commons.compress.utils.TimeUtils;
* <li><b>accessTime:</b> most recent time file/directory was opened (e.g.,
read from disk). Many people disable their operating systems from updating this
* value using the NOATIME mount option to optimize disk behavior, and thus
it's not always reliable. In those cases it's always equal to modifyTime.</li>
* <li><b>*createTime:</b> modern Linux file systems (e.g., ext2 and newer) do
not appear to store a value like this, and so it's usually omitted altogether in
- * the ZIP extra field. Perhaps other Unix systems track this.</li>
+ * the ZIP extra field. Perhaps other UNIX systems track this.</li>
* </ul>
* <p>
* We're using the field definition given in Info-Zip's source archive:
zip-3.0.tar.gz/proginfo/extrafld.txt
@@ -251,7 +251,7 @@ public class X5455_ExtendedTimestamp implements
ZipExtraField, Cloneable, Serial
* </p>
* <p>
* Note: modern Linux file systems (e.g., ext2) do not appear to store a
"create time" value, and so it's usually omitted altogether in the ZIP extra
field.
- * Perhaps other Unix systems track this.
+ * Perhaps other UNIX systems track this.
* </p>
*
* @return create time as java.util.Date or null.
@@ -266,7 +266,7 @@ public class X5455_ExtendedTimestamp implements
ZipExtraField, Cloneable, Serial
* </p>
* <p>
* Note: modern Linux file systems (e.g., ext2) do not appear to store a
"create time" value, and so it's usually omitted altogether in the ZIP extra
field.
- * Perhaps other Unix systems track this.
+ * Perhaps other UNIX systems track this.
* </p>
*
* @return create time (seconds since epoch) or null.
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/X7875_NewUnix.java
b/src/main/java/org/apache/commons/compress/archivers/zip/X7875_NewUnix.java
index fee17e57c..43a02ab3a 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/X7875_NewUnix.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/X7875_NewUnix.java
@@ -97,7 +97,7 @@ public class X7875_NewUnix implements ZipExtraField,
Cloneable, Serializable {
* 3.) Of all the people creating ZIP files using commons- compress,
how many care about UNIX UID/GID attributes of the files they store? (e.g., I am
* probably thinking way too hard about this and no one cares!)
*
- * 4.) InfoZip's tool, even though it carefully stores every UID/GID
for every file zipped on a Unix machine (by default) currently appears unable to
+ * 4.) InfoZip's tool, even though it carefully stores every UID/GID
for every file zipped on a UNIX machine (by default) currently appears unable to
* ever restore UID/GID. unzip -X has no effect on my machine, even
when run as root!!!!
*
* And thus it is decided: MIN_LENGTH=1.
@@ -313,7 +313,7 @@ public class X7875_NewUnix implements ZipExtraField,
Cloneable, Serializable {
* Reset state back to newly constructed state. Helps us make sure parse()
calls always generate clean results.
*/
private void reset() {
- // Typical UID/GID of the first non-root user created on a Unix system.
+ // Typical UID/GID of the first non-root user created on a UNIX system.
uid = ONE_THOUSAND;
gid = ONE_THOUSAND;
}
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
index 17e7383a0..aa12c61db 100644
---
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
+++
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
@@ -937,7 +937,7 @@ public class ZipArchiveEntry extends java.util.zip.ZipEntry
implements ArchiveEn
}
/**
- * Gets the Unix permission.
+ * Gets the UNIX permission.
*
* @return the unix permissions
*/
@@ -1476,7 +1476,7 @@ public class ZipArchiveEntry extends
java.util.zip.ZipEntry implements ArchiveEn
}
/**
- * Sets Unix permissions in a way that is understood by Info-Zip's unzip
command.
+ * Sets UNIX permissions in a way that is understood by Info-Zip's unzip
command.
*
* @param mode an {@code int} value
*/
diff --git
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
index 19caa0d30..f0802e52f 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
@@ -267,7 +267,7 @@ public abstract class ZipUtil {
}
if (l < 0 && l >= Integer.MIN_VALUE) {
// If someone passes in a -2, they probably mean 4294967294
- // (For example, Unix UID/GID's are 32 bit unsigned.)
+ // (For example, UNIX UID/GID's are 32 bit unsigned.)
l = ZipUtil.adjustToLong((int) l);
}
return BigInteger.valueOf(l);
diff --git
a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
index ca0973095..8453b6704 100644
---
a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
+++
b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
@@ -149,7 +149,7 @@ public class CompressorStreamFactory implements
CompressorStreamProvider {
public static final String SNAPPY_RAW = "snappy-raw";
/**
- * Constant (value {@value}) used to identify the traditional Unix
compress method. Not supported as an output stream type.
+ * Constant (value {@value}) used to identify the traditional UNIX
compress method. Not supported as an output stream type.
*
* @since 1.7
*/
diff --git
a/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
b/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
index 4d5bdf441..83ef89e0c 100644
---
a/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
+++
b/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
@@ -37,11 +37,11 @@ public class ZCompressorInputStream extends LZWInputStream {
private static final int MAX_CODE_SIZE_MASK = 0x1f;
/**
- * Checks if the signature matches what is expected for a Unix compress
file.
+ * Checks if the signature matches what is expected for a UNIX compress
file.
*
* @param signature the bytes to check
* @param length the number of bytes to check
- * @return true, if this stream is a Unix compress compressed stream,
false otherwise
+ * @return true, if this stream is a UNIX compress compressed stream,
false otherwise
*
* @since 1.9
*/
diff --git a/src/main/java/org/apache/commons/compress/utils/TimeUtils.java
b/src/main/java/org/apache/commons/compress/utils/TimeUtils.java
index 4d5917bcf..43ae9051f 100644
--- a/src/main/java/org/apache/commons/compress/utils/TimeUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/TimeUtils.java
@@ -26,10 +26,10 @@ import org.apache.commons.io.file.attribute.FileTimes;
/**
* Utility class for handling time-related types and conversions.
* <p>
- * Understanding Unix vs NTFS timestamps:
+ * Understanding UNIX vs NTFS timestamps:
* </p>
* <ul>
- * <li>A <a href="https://en.wikipedia.org/wiki/Unix_time">Unix timestamp</a>
is a primitive long starting at the Unix Epoch on January 1st, 1970 at
Coordinated
+ * <li>A <a href="https://en.wikipedia.org/wiki/Unix_time">UNIX timestamp</a>
is a primitive long starting at the UNIX Epoch on January 1st, 1970 at
Coordinated
* Universal Time (UTC)</li>
* <li>An <a
href="https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times">NTFS
timestamp</a> is a file time is a 64-bit value that represents the
* number of 100-nanosecond intervals that have elapsed since 12:00 A.M.
January 1, 1601 Coordinated Universal Time (UTC).</li>
@@ -46,7 +46,7 @@ public final class TimeUtils {
* <a
href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms724290%28v=vs.85%29.aspx">Windows
File Times</a>
* <p>
* A file time is a 64-bit value that represents the number of
100-nanosecond intervals that have elapsed since 12:00 A.M. January 1, 1601
Coordinated
- * Universal Time (UTC). This is the offset of Windows time 0 to Unix
epoch in 100-nanosecond intervals.
+ * Universal Time (UTC). This is the offset of Windows time 0 to UNIX
epoch in 100-nanosecond intervals.
* </p>
*/
static final long WINDOWS_EPOCH_OFFSET = -116444736000000000L;