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 dcd1adf69 Use Checkstyle WhitespaceAfter
dcd1adf69 is described below
commit dcd1adf69a29b00d7d67853bb100267a887f5ad7
Author: Gary Gregory <[email protected]>
AuthorDate: Sat May 4 15:37:46 2024 -0400
Use Checkstyle WhitespaceAfter
---
.../archivers/ar/ArArchiveInputStream.java | 2 +-
.../commons/compress/java/util/jar/Pack200.java | 44 +++++++++++-----------
.../commons/compress/utils/ArchiveUtils.java | 2 +-
3 files changed, 24 insertions(+), 24 deletions(-)
diff --git
a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
index d4607848a..d2e277dce 100644
---
a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
+++
b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
@@ -315,7 +315,7 @@ public class ArArchiveInputStream extends
ArchiveInputStream<ArArchiveEntry> {
if (temp.endsWith("/")) { // GNU terminator
temp = temp.substring(0, temp.length() - 1);
} else if (isGNULongName(temp)) {
- final int off = ParsingUtils.parseIntValue(temp.substring(1));//
get the offset
+ final int off = ParsingUtils.parseIntValue(temp.substring(1)); //
get the offset
temp = getExtendedName(off); // convert to the long name
} else if (isBSDLongName(temp)) {
temp = getBSDLongName(temp);
diff --git
a/src/main/java/org/apache/commons/compress/java/util/jar/Pack200.java
b/src/main/java/org/apache/commons/compress/java/util/jar/Pack200.java
index 1055503bc..f8e8aac00 100644
--- a/src/main/java/org/apache/commons/compress/java/util/jar/Pack200.java
+++ b/src/main/java/org/apache/commons/compress/java/util/jar/Pack200.java
@@ -55,87 +55,87 @@ public abstract class Pack200 {
/**
* The deflation hint to set in the output archive.
*/
- String DEFLATE_HINT = "pack.deflate.hint";//$NON-NLS-1$
+ String DEFLATE_HINT = "pack.deflate.hint"; //$NON-NLS-1$
/**
* The indicated amount of effort to use in compressing the archive.
*/
- String EFFORT = "pack.effort";//$NON-NLS-1$
+ String EFFORT = "pack.effort"; //$NON-NLS-1$
/**
* a String representation for {@code error}.
*/
- String ERROR = "error";//$NON-NLS-1$
+ String ERROR = "error"; //$NON-NLS-1$
/**
* a String representation of {@code false}.
*/
- String FALSE = "false";//$NON-NLS-1$
+ String FALSE = "false"; //$NON-NLS-1$
/**
* The format of a field attribute name.
*/
- String FIELD_ATTRIBUTE_PFX = "pack.field.attribute.";//$NON-NLS-1$
+ String FIELD_ATTRIBUTE_PFX = "pack.field.attribute."; //$NON-NLS-1$
/**
* The String representation for {@code keep}.
*/
- String KEEP = "keep";//$NON-NLS-1$
+ String KEEP = "keep"; //$NON-NLS-1$
/**
* Decide if all elements shall transmit in their original order.
*/
- String KEEP_FILE_ORDER = "pack.keep.file.order";//$NON-NLS-1$
+ String KEEP_FILE_ORDER = "pack.keep.file.order"; //$NON-NLS-1$
/**
* The String representation for {@code latest}.
*/
- String LATEST = "latest";//$NON-NLS-1$
+ String LATEST = "latest"; //$NON-NLS-1$
/**
* The format of a method attribute name.
*/
- String METHOD_ATTRIBUTE_PFX = "pack.method.attribute.";//$NON-NLS-1$
+ String METHOD_ATTRIBUTE_PFX = "pack.method.attribute."; //$NON-NLS-1$
/**
* If it shall attempt to determine the latest modification time if
this is set to {@code LATEST}.
*/
- String MODIFICATION_TIME = "pack.modification.time";//$NON-NLS-1$
+ String MODIFICATION_TIME = "pack.modification.time"; //$NON-NLS-1$
/**
* The String representation of {@code pass}.
*/
- String PASS = "pass";//$NON-NLS-1$
+ String PASS = "pass"; //$NON-NLS-1$
/**
* The file that will not be compressed.
*/
- String PASS_FILE_PFX = "pack.pass.file.";//$NON-NLS-1$
+ String PASS_FILE_PFX = "pack.pass.file."; //$NON-NLS-1$
/**
* Packer progress as a percentage.
*/
- String PROGRESS = "pack.progress";//$NON-NLS-1$
+ String PROGRESS = "pack.progress"; //$NON-NLS-1$
/**
* The number of bytes of each archive segment.
*/
- String SEGMENT_LIMIT = "pack.segment.limit";//$NON-NLS-1$
+ String SEGMENT_LIMIT = "pack.segment.limit"; //$NON-NLS-1$
/**
* The String representation of {@code strip}.
*/
- String STRIP = "strip";//$NON-NLS-1$
+ String STRIP = "strip"; //$NON-NLS-1$
/**
* The String representation of {@code true}.
*/
- String TRUE = "true";//$NON-NLS-1$
+ String TRUE = "true"; //$NON-NLS-1$
/**
* The action to take if an unknown attribute is encountered.
*/
- String UNKNOWN_ATTRIBUTE = "pack.unknown.attribute";//$NON-NLS-1$
+ String UNKNOWN_ATTRIBUTE = "pack.unknown.attribute"; //$NON-NLS-1$
/**
* Adds a listener for PropertyChange events
@@ -185,27 +185,27 @@ public abstract class Pack200 {
/**
* The String indicating if the unpacker should ignore all transmitted
values, can be replaced by either {@code true} or {@code false}.
*/
- String DEFLATE_HINT = "unpack.deflate.hint";//$NON-NLS-1$
+ String DEFLATE_HINT = "unpack.deflate.hint"; //$NON-NLS-1$
/**
* a String representation of {@code false}.
*/
- String FALSE = "false";//$NON-NLS-1$
+ String FALSE = "false"; //$NON-NLS-1$
/**
* a String representation of {@code keep}.
*/
- String KEEP = "keep";//$NON-NLS-1$
+ String KEEP = "keep"; //$NON-NLS-1$
/**
* The progress as a {@code percentage}.
*/
- String PROGRESS = "unpack.progress";//$NON-NLS-1$
+ String PROGRESS = "unpack.progress"; //$NON-NLS-1$
/**
* a String representation of {@code true}.
*/
- String TRUE = "true";//$NON-NLS-1$
+ String TRUE = "true"; //$NON-NLS-1$
/**
* Adds a listener for {@code PropertyChange} events.
diff --git a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
index ea866c6fc..652d2d22d 100644
--- a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
@@ -250,7 +250,7 @@ public class ArchiveUtils {
*/
public static String toString(final ArchiveEntry entry) {
final StringBuilder sb = new StringBuilder();
- sb.append(entry.isDirectory() ? 'd' : '-');// c.f. "ls -l" output
+ sb.append(entry.isDirectory() ? 'd' : '-'); // c.f. "ls -l" output
final String size = Long.toString(entry.getSize());
sb.append(' ');
// Pad output to 7 places, leading spaces