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 9a6bb61b5 Javadoc
9a6bb61b5 is described below
commit 9a6bb61b5cefed0b7bd225f8af25e15ba1b4f622
Author: Gary D. Gregory <[email protected]>
AuthorDate: Fri Aug 8 08:54:42 2025 -0400
Javadoc
---
.../org/apache/commons/compress/compressors/gzip/ExtraField.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/compress/compressors/gzip/ExtraField.java
b/src/main/java/org/apache/commons/compress/compressors/gzip/ExtraField.java
index 84f202d08..860a9c0e4 100644
--- a/src/main/java/org/apache/commons/compress/compressors/gzip/ExtraField.java
+++ b/src/main/java/org/apache/commons/compress/compressors/gzip/ExtraField.java
@@ -141,7 +141,14 @@ public int hashCode() {
private static final byte[] ZERO_BYTES = {};
- static ExtraField fromBytes(final byte[] bytes) throws IOException {
+ /**
+ * Converts {@code XLEN} length bytes of "extra field" into an new
instance.
+ *
+ * @param bytes without the {@code XLEN} field.
+ * @return a new instance.
+ * @throws CompressorException Thrown for a formatting problem.
+ */
+ static ExtraField fromBytes(final byte[] bytes) throws CompressorException
{
if (bytes == null) {
return null;
}