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
commit 4f41c2c84b9da5f9619eaf53467e0c7584e85ac9 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jun 4 08:38:50 2024 -0400 PMD UnusedFormalParameter --- .../java/org/apache/commons/compress/harmony/pack200/BandSet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/BandSet.java b/src/main/java/org/apache/commons/compress/harmony/pack200/BandSet.java index d905757e9..f75e28c58 100644 --- a/src/main/java/org/apache/commons/compress/harmony/pack200/BandSet.java +++ b/src/main/java/org/apache/commons/compress/harmony/pack200/BandSet.java @@ -239,7 +239,7 @@ public abstract class BandSet { // Note: these values have been tuned - please test carefully if changing them if (numDistinctValues < 100 || distinctValuesAsProportion < 0.02 || effort > 6 && distinctValuesAsProportion < 0.04) { // TODO: tweak - encodeWithPopulationCodec(name, band, defaultCodec, bandData, results); + encodeWithPopulationCodec(band, defaultCodec, bandData, results); if (timeToStop(results)) { return results; } @@ -504,8 +504,8 @@ public abstract class BandSet { return codec.encode(band); } - private void encodeWithPopulationCodec(final String name, final int[] band, final BHSDCodec defaultCodec, final BandData bandData, - final BandAnalysisResults results) throws Pack200Exception { + private void encodeWithPopulationCodec(final int[] band, final BHSDCodec defaultCodec, final BandData bandData, final BandAnalysisResults results) + throws Pack200Exception { results.numCodecsTried += 3; // quite a bit more effort to try this codec final Map<Integer, Integer> distinctValues = bandData.distinctValues;