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 f69e03be6d11ff8acd83f1a1dfe7bf99b75de735 Author: Gary Gregory <[email protected]> AuthorDate: Sun Feb 11 09:18:13 2024 -0500 Inline single use local variable --- .../java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java b/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java index 1c3f9ebdb..06dcc5936 100644 --- a/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java +++ b/src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java @@ -168,8 +168,7 @@ public final class BHSDCodec extends Codec { long result; // TODO This can probably be optimized into a better mathematical statement if (d == 1) { - final BHSDCodec bh0 = new BHSDCodec(b, h); - return bh0.largest(); + return new BHSDCodec(b, h).largest(); } switch (s) { case 0:
